h5ai/test/styles.less

207 lines
4 KiB
Text
Raw Normal View History

2015-04-27 17:04:34 -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 17:04:34 -04:00
@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;
2015-04-27 06:51:25 -04:00
@col-medium: @col-amber-800;
@col-slow: @col-red-800;
2015-04-27 17:04:34 -04:00
@col-progress: rgba(255,255,255,0.2);
2015-04-22 11:12:45 -04:00
2015-04-27 19:04:51 -04:00
#mocha {
2015-04-22 11:12:45 -04:00
position: fixed;
left: 0;
top: 0;
right: 0;
2015-04-27 19:04:51 -04:00
bottom: 0;
z-index: 10000;
2015-04-27 17:04:34 -04:00
font-family: Roboto, Helvetica, Arial, sans-serif;
2015-04-27 19:04:51 -04:00
background: @col-white;
2015-04-23 07:41:20 -04:00
2015-04-28 07:03:52 -04:00
#mocha-bar {
2015-04-26 14:02:23 -04:00
position: absolute;
2015-04-27 19:04:51 -04:00
left: 0;
2015-04-26 14:02:23 -04:00
top: 0;
right: 0;
2015-04-27 19:04:51 -04:00
height: 32px;
color: @col-white;
background: @col-pending;
font-size: 14px;
font-weight: bold;
line-height: 32px;
padding: 0 8px;
2015-04-22 11:12:45 -04:00
2015-04-27 19:04:51 -04:00
&.pass {
background: @col-pass;
}
&.fail {
background: @col-fail;
}
.stats {
display: block;
position: absolute;
right: 8px;
top: 0;
cursor: pointer;
}
.progress {
display: block;
position: absolute;
right: 0;
top: 0;
height: 100%;
background: @col-progress;
}
}
2015-04-23 07:41:20 -04:00
2015-04-27 06:51:25 -04:00
#mocha-stats {
display: none;
}
#mocha-report {
2015-04-27 19:04:51 -04:00
position: absolute;
left: 0;
top: 32px;
right: 0;
bottom: 0;
overflow-x: auto;
overflow-y: scroll;
2015-04-27 06:51:25 -04:00
> .suite {
2015-04-27 19:04:51 -04:00
margin: 0 auto;
padding: 32px;
max-width: 900px;
2015-04-27 06:51:25 -04:00
}
}
2015-04-22 11:12:45 -04:00
2015-04-27 19:04:51 -04:00
a, a:active, a:visited, a:hover {
display: block;
color: inherit;
text-decoration: none;
}
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;
}
2015-04-27 17:04:34 -04:00
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 {
padding: 0 8px;
}
.count {
font-size: 0.85em;
}
.passed {
color: @col-pass;
margin-left: 1em;
}
.failed {
color: @col-fail;
margin-left: 0.5em;
}
}
2015-04-22 20:33:40 -04:00
h2 {
font-size: 12px;
font-weight: normal;
cursor: pointer;
}
2015-04-27 17:04:34 -04:00
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;
2015-04-22 20:33:40 -04:00
2015-04-27 17:04:34 -04:00
&.error {
color: @col-text-fail;
2015-04-27 06:51:25 -04:00
}
2015-04-22 20:33:40 -04:00
}
2015-04-27 17:04:34 -04:00
.suite {
margin: 16px 0 8px 24px;
}
2015-04-22 20:33:40 -04:00
.test {
margin-left: 15px;
padding: 2px 4px;
overflow: hidden;
&:hover {
2015-04-27 17:04:34 -04:00
background: @col-back-hover;
2015-04-22 20:33:40 -04:00
}
2015-04-23 07:41:20 -04:00
&.fail {
2015-04-27 17:04:34 -04:00
color: @col-text-fail;
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-27 17:04:34 -04:00
background: @col-pending;
2015-04-23 07:41:20 -04:00
border-radius: 20px;
position: relative;
top: 3px;
}
&.pass::before {
2015-04-27 17:04:34 -04:00
background: @col-pass;
2015-04-23 07:41:20 -04:00
}
&.fail::before {
2015-04-27 17:04:34 -04:00
background: @col-fail;
2015-04-23 07:41:20 -04:00
}
&.pending::before {
2015-04-27 17:04:34 -04:00
background: @col-pending;
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-27 17:04:34 -04:00
color: @col-text;
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-27 17:04:34 -04:00
.replay {
2015-04-27 06:05:22 -04:00
display: none;
}
2015-04-22 11:12:45 -04:00
}