jest-stare
Version:
jest html reporter (results processor) to view HTML jest results, save raw JSON, and invoke multiple reporters
207 lines (176 loc) • 4.14 kB
CSS
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}
body > .container {
padding: 60px 15px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}
.text-white-50 { color: rgba(255, 255, 255, .5); }
.bg-green { background-color: var(--green); }
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
.overflow-auto { overflow: auto; /* Fixes long line breaking flow */ }
.lh-100 { line-height: 1; }
.lh-125 { line-height: 1.25; }
.lh-150 { line-height: 1.5; }
.onoff-switch {
position: relative; width: 120px;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoff-switch-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #999999; border-radius: 20px;
}
/* need to reuse more of this */
.off-switch-checkbox {
display: none;
}
.off-switch-inner {
display: block; width: 200%; margin-left: -100%;
transition: margin 0.3s ease-in 0s;
}
.off-switch-inner:before, .off-switch-inner:after {
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
box-sizing: border-box;
}
.off-switch-switch {
display: block; width: 18px; margin: 6px;
background: #FFFFFF;
position: absolute; top: 0; bottom: 0;
right: 86px;
border: 2px solid #999999; border-radius: 20px;
transition: all 0.3s ease-in 0s;
}
.off-switch-checkbox:checked + .onoff-switch-label .off-switch-inner {
margin-left: 0;
}
.off-switch-checkbox:checked + .onoff-switch-label .off-switch-switch {
right: 0px;
}
.pass.off-switch-inner:before {
content: "PASS";
padding-left: 10px;
background-color: #28a745; color: #FFFFFF;
}
.pass.off-switch-inner:after {
content: "PASS";
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.fail.off-switch-inner:before {
content: "FAIL";
padding-left: 10px;
background-color: #dc3545; color: #FFFFFF;
}
.fail.off-switch-inner:after {
content: "FAIL";
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.pending.off-switch-inner:before {
content: "PENDING";
padding-left: 10px;
background-color: #ffc107; color: #FFFFFF;
}
.pending.off-switch-inner:after {
content: "PENDING";
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.todo.off-switch-inner:before {
content: "TODO";
padding-left: 10px;
background-color: #17a2b8; color: #FFFFFF;
}
.todo.off-switch-inner:after {
content: "TODO";
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.summary a {
}
.summary a:link {
color: black;
}
/* visited link */
.summary a:visited {
color: black;
}
/* mouse over link */
.summary a:hover {
color: black;
}
/* selected link */
.summary a:active {
color: black;
}
.summary-test-suite {
margin-top: 10px;
}
.summary-test-count {
display: inline-block;
width: 8%;
text-align: right;
}
.summary-test-label {
display: inline-block;
width: 8%;
}
.summary-test-label.test{
text-align: right;
margin: 0 10px 0 0;
}
.summary-test-label.path{
align-self: left;
width: 74%;
display: inline-block;
}
.summary-test-label.pass {
color: #28a745;
}
.summary-test-label.fail {
color: #dc3545;
}
.summary-test-label.pending {
color: #ffc107;
}
.summary-test-label.todo {
color: #17a2b8;
}
.image-snapshot-diff {
border: 1px solid #ddd;
background-color: #f7f7f7;
padding: 5px 10px;
}
.image-snapshot-diff span {
display: block;
margin-bottom: 10px;
font-size: 15px;
}
.image-snapshot-diff img {
max-width: 100%;
max-height: 300px;
}