| 1 |
.irs.irs--shiny { |
| 2 |
$irs-shiny-space: 3px !default; |
| 3 |
|
| 4 |
margin-top: $irs-shiny-space; |
| 5 |
|
| 6 |
.irs-min, |
| 7 |
.irs-max, |
| 8 |
.irs-from, |
| 9 |
.irs-to, |
| 10 |
.irs-single { |
| 11 |
padding: $irs-shiny-space $irs-shiny-space * 2; |
| 12 |
top: -$irs-shiny-space; |
| 13 |
} |
| 14 |
|
| 15 |
.irs-handle { |
| 16 |
top: $top - ($handle_height / 2) + ($line_height / 2); |
| 17 |
} |
| 18 |
|
| 19 |
.irs-bar { |
| 20 |
top: 31px; |
| 21 |
height: $irs-shiny-space; |
| 22 |
border: none; |
| 23 |
} |
| 24 |
|
| 25 |
.irs-line { |
| 26 |
// NOTE: not sure we need this border radius |
| 27 |
border-radius: 8px; |
| 28 |
} |
| 29 |
|
| 30 |
.irs-grid-pol { |
| 31 |
height: 6px; |
| 32 |
} |
| 33 |
|
| 34 |
.irs-grid-text { |
| 35 |
bottom: 8px; |
| 36 |
} |
| 37 |
|
| 38 |
// make handles keyboard accessible |
| 39 |
// |
| 40 |
// We might need some javascript shenanigans to make the handles on the slider |
| 41 |
// keyboard accessible. I think we can do this by assigning it a role and and |
| 42 |
// a tabindex? check out this article: |
| 43 |
// https://www.456bereastreet.com/archive/201302/making_elements_keyboard_focusable_and_clickable/ |
| 44 |
.irs-handle:focus-visible, |
| 45 |
.irs-handle:active { |
| 46 |
// FIXME |
| 47 |
color: shade-color($handle_color, 30%); |
| 48 |
background-color: shade-color($handle_color, 30%); |
| 49 |
border-color: shade-color($handle_color, 30); |
| 50 |
outline: 0; |
| 51 |
box-shadow: $btn-focus-box-shadow; |
| 52 |
} |
| 53 |
|
| 54 |
& ~ .slider-animate-container { |
| 55 |
text-align: left; |
| 56 |
|
| 57 |
.slider-animate-button { |
| 58 |
opacity: 1; |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
&.irs-with-grid ~ .slider-animate-container { |
| 63 |
margin-top: -5px; |
| 64 |
} |
| 65 |
&:not(.irs-with-grid) ~ .slider-animate-container { |
| 66 |
margin-top: 5px; |
| 67 |
} |
| 68 |
} |