MOBILE-4081 quiz: Fix timer red color
parent
f2af5c72b3
commit
665f3a4495
|
@ -13,15 +13,17 @@ $quiz-timer-iterations: 15 !default;
|
|||
border-bottom: 1px solid var(--stroke);
|
||||
}
|
||||
|
||||
core-timer .core-timer {
|
||||
// Make the timer go red when it's reaching 0.
|
||||
@for $i from 0 through $quiz-timer-iterations {
|
||||
&.core-timer-timeleft-#{$i} {
|
||||
background-color: rgba($quiz-timer-warn-color, 1 - ($i / $quiz-timer-iterations)) !important;
|
||||
core-timer ::ng-deep {
|
||||
.core-timer {
|
||||
// Make the timer go red when it's reaching 0.
|
||||
@for $i from 0 through $quiz-timer-iterations {
|
||||
&.core-timer-timeleft-#{$i} {
|
||||
background-color: rgba($quiz-timer-warn-color, 1 - ($i / $quiz-timer-iterations)) !important;
|
||||
|
||||
@if $i <= $quiz-timer-iterations / 2 {
|
||||
label, span, ion-icon {
|
||||
color: var(--white);
|
||||
@if $i <= $quiz-timer-iterations / 2 {
|
||||
label, span, ion-icon {
|
||||
color: var(--white);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue