|
| 1 | +@slider-handle-width: 2rem; |
| 2 | +@slider-handle-height: 2rem; |
| 3 | + |
| 4 | +@slider-track-height: .375rem; |
| 5 | + |
1 | 6 | .slider { |
2 | 7 | // Numbers |
3 | | - // -------------------------------------------------- |
4 | 8 | &__number-container { |
5 | 9 | min-height: 2.5rem; |
6 | 10 | } |
|
32 | 36 | } |
33 | 37 |
|
34 | 38 | // Scale |
35 | | - // -------------------------------------------------- |
36 | 39 | &__scale-container { |
37 | | - margin-top: @item-margin * 2; |
38 | | - margin-bottom: @item-margin * 4; |
39 | 40 | background-color: lighten(@black, 75%); |
40 | 41 | } |
41 | 42 |
|
|
44 | 45 | } |
45 | 46 |
|
46 | 47 | // Slider bar |
47 | | - // -------------------------------------------------- |
48 | | - &__item { |
49 | | - margin-bottom: @item-margin * 4; |
| 48 | + &__item-input-track { |
| 49 | + background-color: darken(@background-inverted, 20%); |
| 50 | + border-radius: 10px; |
| 51 | + overflow: hidden; |
| 52 | + } |
| 53 | + |
| 54 | + &__item-input-fill { |
| 55 | + background-color: @item-color; |
| 56 | + } |
| 57 | + |
| 58 | + // Class to show whether the users selection is in/correct |
| 59 | + &__widget.show-user-answer.is-correct &__number-selection { |
| 60 | + background-color: @validation-success; |
| 61 | + color: @validation-success-inverted; |
| 62 | + } |
| 63 | + |
| 64 | + &__widget.show-user-answer.is-correct &__item-input-fill { |
| 65 | + background-color: @validation-success; |
| 66 | + } |
| 67 | + |
| 68 | + &__widget.show-user-answer.is-incorrect &__number-selection { |
| 69 | + background-color: @validation-error; |
| 70 | + color: @validation-error-inverted; |
| 71 | + } |
| 72 | + |
| 73 | + &__widget.show-user-answer.is-incorrect &__item-input-fill { |
| 74 | + background-color: @validation-error; |
| 75 | + } |
| 76 | + |
| 77 | + &__widget.show-correct-answer.is-correct &__item-input-fill, |
| 78 | + &__widget.show-correct-answer.is-incorrect &__item-input-fill { |
| 79 | + background-color: @validation-success; |
| 80 | + } |
| 81 | + |
| 82 | + &__widget.show-correct-answer.is-correct &__number-model-answer, |
| 83 | + &__widget.show-correct-answer.is-incorrect &__number-model-answer { |
| 84 | + background-color: @validation-success; |
| 85 | + color: @validation-success-inverted; |
50 | 86 | } |
51 | 87 | } |
0 commit comments