@applicvision/js-toolbox
Version:
A collection of tools for modern JavaScript development
200 lines (163 loc) • 3.34 kB
CSS
body {
background: #eee;
color: #333;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--fail-color: red;
--success-color: green;
}
@media (prefers-color-scheme: dark) {
body {
background: #111;
color: #ddd;
--text-color: #eee;
--background-color: #111;
--loader-color: #aaa;
--fail-color: red;
--success-color: lime;
}
}
#master-progress {
position: fixed;
--color: grey;
width: 100px;
height: 100px;
right: 10px;
top: 10px;
}
#test-container {
margin: 15px;
}
#watch-indicator {
position: fixed;
right: 10px;
bottom: 10px;
background: rgb(29, 29, 255);
padding: 10px;
border-radius: 20px;
height: 20px;
opacity: 0.5;
min-width: 20px;
transition: opacity 0.4s 0.3s;
}
#watch-indicator.inactive {
display: none;
}
#watch-indicator div {
max-width: 0;
left: 20px;
color: white;
position: relative;
transition: max-width 0.3s 0.2s, opacity 0.3s, left 0.3s;
overflow: hidden;
opacity: 0;
padding: 0 10px;
white-space: nowrap;
}
#watch-indicator:hover {
opacity: 1;
transition: opacity 0.3s;
}
#watch-indicator:hover div {
transition: max-width 0.3s, opacity 0.3s 0.2s, left 0.3s 0.2s;
left: 0;
opacity: 1;
max-width: 300px;
}
details.suite {
margin-top: 10px;
margin-bottom: 10px;
}
details.suite>summary {
margin: 5px 0;
font-weight: bold;
list-style-position: outside;
}
details>summary>span {
display: inline-flex;
align-items: center;
}
.details-disclosure {
border-right: 3px solid;
border-top: 3px solid;
width: 8px;
height: 8px;
margin-left: 8px;
transform: rotate(45deg);
transition: transform 0.2s;
}
details[open]>summary .details-disclosure {
transform: rotate(135deg);
}
details.suite.running>summary av-progress {
width: 18px;
margin-left: 10px;
--color: var(--loader-color, grey);
}
details.suite.running>summary .details-disclosure {
display: none;
}
details.suite>summary av-progress.failed {
--color: var(--fail-color, red);
}
details.test-unit summary {
list-style: none;
}
details.test-unit.fail>summary {
font-weight: bold;
}
details.test-unit.fail .message {
margin-bottom: 5px;
}
details.test-unit.fail .error-location {
opacity: 0.6;
}
details.test-unit>section {
margin: 10px;
}
details.test-unit .artifacts-list {
padding: 0;
list-style: inside;
}
details.test-unit .named-artifacts>dt {
font-weight: bold;
color: grey;
}
details.test-unit .named-artifacts>dd {
margin-top: 5px;
margin-inline-start: 15px;
}
details.suite.fail>summary {
list-style-type: "\2716";
}
details.pass>summary::marker {
color: var(--success-color, green);
}
summary {
padding-left: 5px;
}
details.test-unit.running summary {
list-style: url(/public/loader.svg)
}
details.test-unit.running summary::marker {
font-size: 1.7rem;
line-height: 0;
}
details.fail>summary::marker {
color: var(--fail-color, red);
}
details.test-unit.fail summary {
list-style-type: "\2716";
}
details.pass summary {
list-style-type: "\2713";
}
details.test-unit>summary:only-child .details-disclosure {
display: none;
}
details.suite>ul {
padding-inline-start: 24px;
list-style: none;
}
summary:focus-visible {
outline: 1px dotted;
}