mocha-simple-html-reporter
Version:
HTML reporter for Mocha
85 lines (70 loc) • 1.35 kB
CSS
#mocha .test.pass pre {
display: none;
}
#mocha .test.fail pre {
display: none;
}
#mocha .test pre.error {
display: block;
}
#mocha .test .html-error pre.error {
box-shadow: none;
}
#mocha .test:hover h2:after {
color: #888888;
content: "(view source)";
font-family: arial;
font-size: 12px;
position: relative;
right: -10px;
top: 0;
}
#mocha .test.pass.pending h2 {
cursor: auto;
}
#mocha .mocha-header {
right: 30px;
position: fixed;
top: 15px;
font-size: 14px;
margin: 0;
color: #888;
z-index: 1;
}
#mocha .mocha-header em {
font-style: normal;
color: black;
}
#mocha .mocha-header ul {
display: inline-block;
}
#mocha .mocha-stats li {
display: inline-block;
margin: 0 5px;
list-style: none;
padding-top: 11px;
}
#mocha .mocha-menu {
margin-right: 10px;
}
#mocha .mocha-menu li {
display: inline-block;
margin-left: 10px;
list-style: none;
}
#mocha .mocha-menu li span {
display: inline-block;
cursor: pointer;
color: #fff;
font-size: 14px;
padding: 3px 7px 2px;
box-shadow: 1px 1px 3px rgba(0,0,0,.2);
border-radius: 5px;
user-select: none;
}
#mocha .mocha-menu li span.checked {
box-shadow: inset 1px 1px 3px rgba(0,0,0,.2);
}
#mocha .toggle-passes {
background: #b94a48;
}