Update test styles.

This commit is contained in:
Lars Jung 2015-04-27 23:04:34 +02:00
parent 1e00e2b733
commit df76ca0807

View file

@ -1,4 +1,4 @@
@charset "utf-8"; @charset 'utf-8';
@col-white: #ffffff; @col-white: #ffffff;
@col-red-500: #f44336; @col-red-500: #f44336;
@ -8,18 +8,25 @@
@col-grey-200: #eeeeee; @col-grey-200: #eeeeee;
@col-grey-800: #424242; @col-grey-800: #424242;
@col-text: @col-grey-800;
@col-text-fail: @col-red-800;
@col-back-hover: @col-grey-200;
@col-pending: @col-grey-800;
@col-pass: @col-green-500;
@col-fail: @col-red-500;
@col-medium: @col-amber-800; @col-medium: @col-amber-800;
@col-slow: @col-red-800; @col-slow: @col-red-800;
@col-progress: rgba(255,255,255,0.2);
#mocha-custom { #mocha-custom {
font-family: Roboto, Helvetica, Arial, sans-serif;
position: fixed; position: fixed;
z-index: 10000;
left: 0; left: 0;
top: 0; top: 0;
right: 0; right: 0;
background: @col-grey-800;
z-index: 10000;
color: @col-white; color: @col-white;
background: @col-pending;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
line-height: 32px; line-height: 32px;
@ -28,14 +35,14 @@
a, a:active, a:visited, a:hover { a, a:active, a:visited, a:hover {
display: block; display: block;
color: @col-white; color: inherit;
text-decoration: none; text-decoration: none;
} }
&.pass { &.pass {
background: @col-green-500; background: @col-pass;
} }
&.fail { &.fail {
background: @col-red-500; background: @col-fail;
} }
.stats { .stats {
display: block; display: block;
@ -50,21 +57,21 @@
right: 0; right: 0;
top: 0; top: 0;
height: 100%; height: 100%;
background: rgba(255,255,255,0.2); background: @col-progress;
} }
} }
#mocha { #mocha {
font-family: Roboto, Helvetica, Arial, sans-serif;
position: fixed; position: fixed;
z-index: 10000;
left: 0; left: 0;
top: 32px; top: 32px;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: @col-white; background: @col-white;
z-index: 10000;
overflow-x: auto; overflow-x: auto;
overflow-y: scroll; overflow-y: scroll;
font-family: Roboto, Helvetica, Arial, sans-serif;
#mocha-stats { #mocha-stats {
display: none; display: none;
@ -89,50 +96,57 @@
list-style: none; list-style: none;
} }
h1 {
color: @col-text;
height: 24px;
line-height: 24px;
font-size: 16px;
font-weight: bold;
&:hover {
background: @col-back-hover;
}
a, a:active, a:visited, a:hover {
display: block;
padding: 0 8px;
color: inherit;
text-decoration: none;
}
.count {
font-size: 0.85em;
}
.passed {
color: @col-pass;
margin-left: 1em;
}
.failed {
color: @col-fail;
margin-left: 0.5em;
}
}
h2 { h2 {
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
cursor: pointer; cursor: pointer;
} }
pre {
display: block;
font-family: monospace;
font-size: 12px;
margin: 4px 0 16px 18px;
padding: 0 8px;
word-wrap: break-word;
border-left: 2px solid @col-text;
&.error {
color: @col-text-fail;
}
}
.suite { .suite {
margin: 16px 0 8px 24px; margin: 16px 0 8px 24px;
> h1 {
color: @col-grey-800;
height: 24px;
line-height: 24px;
font-size: 16px;
font-weight: bold;
a, a:active, a:visited, a:hover {
display: block;
padding: 0 8px;
font-size: inherit;
font-weight: inherit;
color: inherit;
background: inherit;
text-decoration: none;
cursor: pointer;
}
a:hover {
background: @col-grey-200;
}
.count {
font-size: 0.85em;
.passed {
color: @col-green-500;
margin-left: 1em;
}
.failed {
color: @col-red-500;
margin-left: 0.5em;
}
}
}
} }
.test { .test {
@ -141,11 +155,10 @@
overflow: hidden; overflow: hidden;
&:hover { &:hover {
background: @col-grey-200; background: @col-back-hover;
} }
&.fail { &.fail {
color: @col-red-800; color: @col-text-fail;
} }
&::before { &::before {
@ -155,24 +168,24 @@
height: 10px; height: 10px;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
background: @col-grey-800; background: @col-pending;
border-radius: 20px; border-radius: 20px;
position: relative; position: relative;
top: 3px; top: 3px;
} }
&.pass::before { &.pass::before {
background: @col-green-500; background: @col-pass;
} }
&.fail::before { &.fail::before {
background: @col-red-500; background: @col-fail;
} }
&.pending::before { &.pending::before {
background: @col-grey-800; background: @col-pending;
} }
.duration { .duration {
display: inline-block; display: inline-block;
color: @col-grey-800; color: @col-text;
border: none; border: none;
box-shadow: none; box-shadow: none;
font-size: 10px; font-size: 10px;
@ -185,23 +198,9 @@
&.slow .duration { &.slow .duration {
color: @col-slow; color: @col-slow;
} }
pre {
display: block;
font-family: monospace;
font-size: 12px;
margin: 4px 0 16px 18px;
padding: 0 8px;
word-wrap: break-word;
border-left: 2px solid @col-grey-800;
&.error {
color: @col-red-800;
}
}
} }
.hidden, .replay { .replay {
display: none; display: none;
} }
} }