h5ai/test/styles.less

208 lines
4.2 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
2015-04-25 20:59:49 -04:00
@col-white: #ffffff;
@col-red-500: #f44336;
@col-red-800: #c62828;
2015-04-27 06:51:25 -04:00
@col-amber-800: #ff8f00;
2015-04-25 20:59:49 -04:00
@col-green-500: #4caf50;
@col-grey-200: #eeeeee;
@col-grey-800: #424242;
2015-04-27 06:51:25 -04:00
@col-medium: @col-amber-800;
@col-slow: @col-red-800;
2015-04-22 11:12:45 -04:00
2015-04-27 06:51:25 -04:00
#mocha-custom {
2015-04-25 19:12:58 -04:00
font-family: Roboto, Helvetica, Arial, sans-serif;
2015-04-22 11:12:45 -04:00
position: fixed;
left: 0;
top: 0;
right: 0;
2015-04-25 20:59:49 -04:00
background: @col-grey-800;
2015-04-22 11:12:45 -04:00
z-index: 10000;
2015-04-25 20:59:49 -04:00
color: @col-white;
2015-04-23 07:41:20 -04:00
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-25 20:59:49 -04:00
color: @col-white;
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-25 20:59:49 -04:00
background: @col-green-500;
2015-04-22 11:12:45 -04:00
}
2015-04-23 07:41:20 -04:00
&.fail {
2015-04-25 20:59:49 -04:00
background: @col-red-500;
2015-04-22 11:12:45 -04:00
}
2015-04-26 14:02:23 -04:00
.stats {
display: block;
position: absolute;
right: 8px;
top: 0;
cursor: pointer;
}
.progress {
display: block;
position: absolute;
right: 0;
2015-04-27 06:51:25 -04:00
top: 0;
2015-04-26 14:02:23 -04:00
height: 100%;
background: rgba(255,255,255,0.2);
}
2015-04-22 11:12:45 -04:00
}
2015-04-27 06:51:25 -04:00
#mocha {
2015-04-25 19:12:58 -04:00
font-family: Roboto, Helvetica, Arial, sans-serif;
2015-04-23 07:41:20 -04:00
position: fixed;
left: 0;
top: 32px;
right: 0;
bottom: 0;
2015-04-25 20:59:49 -04:00
background: @col-white;
2015-04-23 07:41:20 -04:00
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-27 06:51:25 -04:00
#mocha-stats {
display: none;
}
#mocha-report {
max-width: 900px;
margin: 0 auto;
padding: 32px;
> .suite {
margin: 0;
}
}
2015-04-22 11:12:45 -04:00
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;
}
2015-04-27 06:51:25 -04:00
.suite {
margin: 16px 0 8px 24px;
2015-04-22 20:33:40 -04:00
2015-04-27 06:51:25 -04:00
> 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;
}
}
}
2015-04-22 20:33:40 -04:00
}
.test {
margin-left: 15px;
padding: 2px 4px;
overflow: hidden;
&:hover {
2015-04-25 20:59:49 -04:00
background: @col-grey-200;
2015-04-22 20:33:40 -04:00
}
2015-04-22 11:12:45 -04:00
2015-04-23 07:41:20 -04:00
&.fail {
2015-04-25 20:59:49 -04:00
color: @col-red-800;
2015-04-23 07:41:20 -04:00
}
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;
2015-04-25 20:59:49 -04:00
background: @col-grey-800;
2015-04-23 07:41:20 -04:00
border-radius: 20px;
position: relative;
top: 3px;
}
&.pass::before {
2015-04-25 20:59:49 -04:00
background: @col-green-500;
2015-04-23 07:41:20 -04:00
}
&.fail::before {
2015-04-25 20:59:49 -04:00
background: @col-red-500;
2015-04-23 07:41:20 -04:00
}
&.pending::before {
2015-04-25 20:59:49 -04:00
background: @col-grey-800;
2015-04-23 07:41:20 -04:00
}
2015-04-22 20:33:40 -04:00
2015-04-23 07:41:20 -04:00
.duration {
display: inline-block;
2015-04-25 20:59:49 -04:00
color: @col-grey-800;
2015-04-23 07:41:20 -04:00
border: none;
box-shadow: none;
2015-04-27 06:51:25 -04:00
font-size: 10px;
2015-04-23 07:41:20 -04:00
margin-left: 12px;
2015-04-27 06:51:25 -04:00
float: right;
2015-04-23 07:41:20 -04:00
}
&.medium .duration {
2015-04-27 06:51:25 -04:00
color: @col-medium;
2015-04-23 07:41:20 -04:00
}
&.slow .duration {
2015-04-27 06:51:25 -04:00
color: @col-slow;
2015-04-23 07:41:20 -04:00
}
2015-04-22 20:33:40 -04:00
2015-04-23 07:41:20 -04:00
pre {
display: block;
2015-04-27 15:48:56 -04:00
font-family: monospace;
font-size: 12px;
2015-04-23 07:41:20 -04:00
margin: 4px 0 16px 18px;
padding: 0 8px;
word-wrap: break-word;
2015-04-25 20:59:49 -04:00
border-left: 2px solid @col-grey-800;
2015-04-23 07:41:20 -04:00
&.error {
2015-04-25 20:59:49 -04:00
color: @col-red-800;
2015-04-23 07:41:20 -04:00
}
}
2015-04-22 20:33:40 -04:00
}
2015-04-27 06:51:25 -04:00
.hidden, .replay {
2015-04-27 06:05:22 -04:00
display: none;
}
2015-04-22 11:12:45 -04:00
}