@oat-sa/tao-test-runner-qti
Version:
TAO Test Runner QTI implementation
97 lines • 2.63 kB
CSS
/*
Usage:
- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,
if 3 colors used then the position of each will be 33,33%
- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,
first param - color, second - position. Also you can use px or other valid units for set position.
*/
/* based on "visually-hidden" mixin in LDS for accessibility goals */
/*
* Every style defined here must be mirrored with `writing-mode-horizontal-tb` mixin.
Because writing-mode can be defined on 2 levels: a) item, b) text block or interaction;
so if there's a horizontal block inside vertical item, vertical styles should *not* be used for it.
*/
/* Do not edit */
.timer-box {
opacity: 0;
padding-top: 0;
white-space: nowrap;
/*flex item of control-box */
flex: 1 0 auto;
/* is also a flex container for .qti-timer */
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-end;
}
.timer-box.rendered {
opacity: 1;
transition: opacity, 300ms, linear, 0s;
}
.timer-box .timer-toggler {
text-decoration: none;
color: white;
line-height: 1.3;
opacity: 0.68;
padding: 8px 20px;
position: relative;
top: -1px;
left: 20px;
z-index: 2;
transition: opacity, 0.5s, ease-out, 0s;
}
.timer-box .timer-toggler:hover, .timer-box .timer-toggler:active, .timer-box .timer-toggler:focus {
outline: unset;
}
.timer-box .timer-toggler:active, .timer-box .timer-toggler:focus {
border: 2px solid white;
}
.timer-box .timer-toggler:hover {
opacity: 0.93;
transition: opacity, 0.5s, ease-out, 0s;
}
.timer-box.zen .timer-toggler {
opacity: 0.93;
transition: opacity, 0.5s, ease-out, 0s;
}
.timer-box.zen .countdown .time {
opacity: 0;
transition: opacity, 1s, ease-out, 0s;
}
.timer-box .countdown::before {
content: " ";
background: rgba(255, 255, 255, 0.3);
width: 1px;
height: 20px;
position: absolute;
left: 0;
top: 5px;
}
.timer-box .countdown:first-child::before {
content: none;
}
.timer-box .countdown[data-scope=test][data-type=min] {
order: 5;
}
.timer-box .countdown[data-scope=test] {
order: 10;
}
.timer-box .countdown[data-scope=testPart][data-type=min] {
order: 15;
}
.timer-box .countdown[data-scope=testPart] {
order: 20;
}
.timer-box .countdown[data-scope=section][data-type=min] {
order: 25;
}
.timer-box .countdown[data-scope=section] {
order: 30;
}
.timer-box .countdown[data-scope=item][data-type=min] {
order: 35;
}
.timer-box .countdown[data-scope=item] {
order: 40;
}
/*# sourceMappingURL=timerbox.css.map */