h5ai/test/styles.less

224 lines
4.1 KiB
Text
Raw Normal View History

2015-04-22 20:33:40 -04:00
@charset "utf-8";
2015-04-22 11:12:45 -04:00
@col-red: #f44336;
@col-red-text: #c62828;
@col-green: #4caf50;
@col-grey: #555;
2015-04-23 07:41:20 -04:00
#report {
font-family: arial, sans;
2015-04-22 11:12:45 -04:00
position: fixed;
left: 0;
top: 0;
right: 0;
2015-04-23 07:41:20 -04:00
background: @col-grey;
2015-04-22 11:12:45 -04:00
z-index: 10000;
2015-04-23 07:41:20 -04:00
color: #fff;
font-size: 14px;
font-weight: bold;
line-height: 32px;
height: 32px;
padding: 0 8px;
a, a:active, a:visited, a:hover {
display: block;
2015-04-22 11:12:45 -04:00
color: #fff;
2015-04-23 07:41:20 -04:00
text-decoration: none;
2015-04-22 11:12:45 -04:00
}
2015-04-23 07:41:20 -04:00
&.pass {
2015-04-22 11:12:45 -04:00
background: @col-green;
}
2015-04-23 07:41:20 -04:00
&.fail {
2015-04-22 11:12:45 -04:00
background: @col-red;
}
}
2015-04-23 07:41:20 -04:00
#mocha-overlay {
font-family: arial, sans;
position: fixed;
left: 0;
top: 32px;
right: 0;
bottom: 0;
background: #fff;
z-index: 10000;
2015-04-24 09:39:59 -04:00
overflow-x: auto;
overflow-y: scroll;
2015-04-23 07:41:20 -04:00
}
2015-04-22 11:12:45 -04:00
#mocha {
max-width: 900px;
margin: 80px auto;
2015-04-23 07:41:20 -04:00
ul, li, h1, h2 {
2015-04-22 20:33:40 -04:00
margin: 0;
padding: 0;
}
ul {
list-style: none;
}
h2 {
font-size: 12px;
font-weight: normal;
cursor: pointer;
}
.hidden {
display: none;
}
.replay {
display: none;
}
.test {
margin-left: 15px;
padding: 2px 4px;
overflow: hidden;
&:hover {
background: #eee;
}
2015-04-22 11:12:45 -04:00
2015-04-23 07:41:20 -04:00
&.fail {
color: @col-red-text;
}
2015-04-22 11:12:45 -04:00
2015-04-23 07:41:20 -04:00
&::before {
content: ' ';
display: block;
width: 10px;
height: 10px;
float: left;
margin-right: 8px;
background: @col-grey;
border-radius: 20px;
position: relative;
top: 3px;
}
&.pass::before {
background: @col-green;
}
&.fail::before {
background: @col-red;
}
&.pending::before {
background: @col-grey;
}
2015-04-22 20:33:40 -04:00
2015-04-23 07:41:20 -04:00
.duration {
display: inline-block;
color: @col-grey;
border: none;
box-shadow: none;
font-size: 9px;
margin-left: 12px;
}
&.medium .duration {
background: #c09853;
}
&.slow .duration {
background: #b94a48;
}
2015-04-22 20:33:40 -04:00
2015-04-23 07:41:20 -04:00
pre {
display: block;
float: left;
clear: left;
font: 12px monospace;
margin: 4px 0 16px 18px;
padding: 0 8px;
max-width: 80%;
word-wrap: break-word;
border-left: 2px solid @col-grey;
&.error {
color: @col-red-text;
}
}
2015-04-22 20:33:40 -04:00
}
2015-04-22 11:12:45 -04:00
.suite {
2015-04-24 09:17:54 -04:00
margin: 16px 0 8px 24px;
2015-04-22 11:12:45 -04:00
> h1 {
color: @col-grey;
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;
}
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;
}
}
}
}
2015-04-24 09:17:54 -04:00
#mocha-report > .suite {
margin: 0;
2015-04-22 11:12:45 -04:00
}
2015-04-23 07:41:20 -04:00
}
2015-04-22 11:12:45 -04:00
2015-04-23 07:41:20 -04:00
#mocha-stats {
position: fixed;
top: 40px;
right: 20px;
margin: 0;
color: @col-grey;
z-index: 1;
font-size: 13px;
2015-04-22 11:12:45 -04:00
2015-04-23 07:41:20 -04:00
em {
font-style: normal;
font-size: 14px;
}
a {
text-decoration: none;
color: inherit;
2015-04-22 11:12:45 -04:00
}
2015-04-23 07:41:20 -04:00
li {
display: inline-block;
margin: 0 5px;
list-style: none;
padding-top: 11px;
}
canvas {
width: 40px;
height: 40px;
}
.progress {
float: right;
padding-top: 0;
}
2015-04-24 09:17:54 -04:00
.passes, .failures {
cursor: pointer;
}
2015-04-22 11:12:45 -04:00
}