2015-04-23 02:33:40 +02:00
|
|
|
@charset "utf-8";
|
2015-04-22 17:12:45 +02:00
|
|
|
|
|
|
|
@col-red: #f44336;
|
|
|
|
@col-red-text: #c62828;
|
|
|
|
@col-green: #4caf50;
|
|
|
|
@col-grey: #555;
|
|
|
|
|
|
|
|
#mocha-overlay {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: #fff;
|
|
|
|
z-index: 10000;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
#report {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
background: @col-grey;
|
|
|
|
z-index: 1;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 32px;
|
|
|
|
padding: 0 8px;
|
|
|
|
|
|
|
|
a, a:active, a:visited, a:hover {
|
|
|
|
display: block;
|
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.pass #report {
|
|
|
|
background: @col-green;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fail #report {
|
|
|
|
background: @col-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#mocha {
|
|
|
|
max-width: 900px;
|
|
|
|
margin: 80px auto;
|
|
|
|
|
2015-04-23 02:33:40 +02:00
|
|
|
ul, li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
.comment {
|
|
|
|
color: #ddd;
|
|
|
|
}
|
|
|
|
.init {
|
|
|
|
color: #2f6fad;
|
|
|
|
}
|
|
|
|
.string {
|
|
|
|
color: #5890ad;
|
|
|
|
}
|
|
|
|
.keyword {
|
|
|
|
color: #8a6343;
|
|
|
|
}
|
|
|
|
.number {
|
|
|
|
color: #2f6fad;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.replay {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.test {
|
|
|
|
margin-left: 15px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: #eee;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-22 17:12:45 +02:00
|
|
|
.test.fail, .test pre.error {
|
|
|
|
color: @col-red-text;
|
|
|
|
}
|
|
|
|
|
2015-04-23 02:33:40 +02:00
|
|
|
.test .duration {
|
2015-04-22 17:12:45 +02:00
|
|
|
display: inline-block;
|
|
|
|
color: @col-grey;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2015-04-23 02:33:40 +02:00
|
|
|
font-size: 9px;
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.test.medium .duration {
|
|
|
|
background: #c09853;
|
|
|
|
}
|
|
|
|
|
|
|
|
.test.slow .duration {
|
|
|
|
background: #b94a48;
|
2015-04-22 17:12:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.test::before {
|
2015-04-23 02:33:40 +02:00
|
|
|
content: ' ';
|
2015-04-22 17:12:45 +02:00
|
|
|
display: block;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
float: left;
|
2015-04-23 02:33:40 +02:00
|
|
|
margin-right: 8px;
|
2015-04-22 17:12:45 +02:00
|
|
|
background: @col-grey;
|
|
|
|
border-radius: 20px;
|
|
|
|
position: relative;
|
2015-04-23 02:33:40 +02:00
|
|
|
top: 3px;
|
2015-04-22 17:12:45 +02:00
|
|
|
}
|
|
|
|
.test.pass::before {
|
|
|
|
background: @col-green;
|
|
|
|
}
|
|
|
|
.test.fail::before {
|
|
|
|
background: @col-red;
|
|
|
|
}
|
2015-04-23 02:33:40 +02:00
|
|
|
.test.pending::before {
|
|
|
|
background: @col-grey;
|
|
|
|
}
|
|
|
|
|
|
|
|
.test pre {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
clear: left;
|
|
|
|
font: 12px monaco, monospace;
|
|
|
|
margin: 4px 0 16px 16px;
|
|
|
|
padding: 4px;
|
|
|
|
max-width: 80%;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2015-04-22 17:12:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#mocha-stats {
|
2015-04-23 02:33:40 +02:00
|
|
|
position: fixed;
|
2015-04-22 17:12:45 +02:00
|
|
|
top: 40px;
|
|
|
|
right: 20px;
|
2015-04-23 02:33:40 +02:00
|
|
|
margin: 0;
|
|
|
|
color: @col-grey;
|
|
|
|
z-index: 1;
|
2015-04-22 17:12:45 +02:00
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: normal;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
2015-04-23 02:33:40 +02:00
|
|
|
.progress {
|
|
|
|
float: right;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 5px;
|
|
|
|
list-style: none;
|
|
|
|
padding-top: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
canvas {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
2015-04-22 17:12:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#mocha-report {
|
|
|
|
|
2015-04-23 02:33:40 +02:00
|
|
|
&.pass .test.fail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fail .test.pass {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.pending .test.pass,
|
|
|
|
&.pending .test.fail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&.pending .test.pass.pending {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2015-04-22 17:12:45 +02:00
|
|
|
.suite {
|
|
|
|
margin: 8px 0 8px 16px;
|
|
|
|
|
|
|
|
> h1 {
|
|
|
|
color: @col-grey;
|
|
|
|
height: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0 0 4px 0;
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
background: #eee;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.count {
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
|
|
|
.passed {
|
|
|
|
color: @col-green;
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
.failed {
|
|
|
|
color: @col-red;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .suite {
|
|
|
|
margin: 24px 0;
|
|
|
|
|
|
|
|
> h1 {
|
|
|
|
height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 24px 0 8px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .suite > ul > .suite {
|
|
|
|
margin: 12px 0;
|
|
|
|
|
|
|
|
> h1 {
|
|
|
|
height: 26px;
|
|
|
|
line-height: 26px;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 16px 0 8px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|