|
1 | | -/*! nouislider - 10.1.0 - 2017-07-28 13:09:54 */ |
| 1 | +/*! nouislider - 11.0.0 - 2018-01-12 20:37:52 */ |
2 | 2 | /* Functional styling; |
3 | 3 | * These styles are required for noUiSlider to function. |
4 | 4 | * You don't need to change these rules to apply your design. |
|
20 | 20 | position: relative; |
21 | 21 | direction: ltr; |
22 | 22 | } |
23 | | -.noUi-base { |
| 23 | +.noUi-base, |
| 24 | +.noUi-connects { |
24 | 25 | width: 100%; |
25 | 26 | height: 100%; |
26 | 27 | position: relative; |
27 | 28 | z-index: 1; |
28 | | - /* Fix 401 */ |
29 | 29 | } |
30 | | -.noUi-connect { |
| 30 | +/* Wrapper for all connect elements. |
| 31 | + */ |
| 32 | +.noUi-connects { |
| 33 | + overflow: hidden; |
| 34 | + z-index: 0; |
| 35 | +} |
| 36 | +.noUi-connect, |
| 37 | +.noUi-origin { |
| 38 | + will-change: transform; |
31 | 39 | position: absolute; |
32 | | - right: 0; |
| 40 | + z-index: 1; |
33 | 41 | top: 0; |
34 | 42 | left: 0; |
35 | | - bottom: 0; |
| 43 | + height: 100%; |
| 44 | + width: 100%; |
| 45 | + -webkit-transform-origin: 0 0; |
| 46 | + transform-origin: 0 0; |
36 | 47 | } |
37 | | -.noUi-origin { |
38 | | - position: absolute; |
39 | | - height: 0; |
| 48 | +/* Give origins 0 height/width so they don't interfere with clicking the |
| 49 | + * connect elements. |
| 50 | + */ |
| 51 | +.noUi-vertical .noUi-origin { |
40 | 52 | width: 0; |
41 | 53 | } |
| 54 | +.noUi-horizontal .noUi-origin { |
| 55 | + height: 0; |
| 56 | +} |
42 | 57 | .noUi-handle { |
43 | 58 | position: relative; |
44 | | - z-index: 1; |
45 | 59 | } |
46 | 60 | .noUi-state-tap .noUi-connect, |
47 | 61 | .noUi-state-tap .noUi-origin { |
48 | | - -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s; |
49 | | - transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s; |
| 62 | + -webkit-transition: transform 0.3s; |
| 63 | + transition: transform 0.3s; |
50 | 64 | } |
51 | 65 | .noUi-state-drag * { |
52 | 66 | cursor: inherit !important; |
53 | 67 | } |
54 | | -/* Painting and performance; |
55 | | - * Browsers can paint handles in their own layer. |
56 | | - */ |
57 | | -.noUi-base, |
58 | | -.noUi-handle { |
59 | | - -webkit-transform: translate3d(0, 0, 0); |
60 | | - transform: translate3d(0, 0, 0); |
61 | | -} |
62 | 68 | /* Slider size and handle placement; |
63 | 69 | */ |
64 | 70 | .noUi-horizontal { |
|
80 | 86 | top: -17px; |
81 | 87 | } |
82 | 88 | /* Styling; |
| 89 | + * Giving the connect element a border radius causes issues with using transform: scale |
83 | 90 | */ |
84 | 91 | .noUi-target { |
85 | 92 | background: #FAFAFA; |
86 | 93 | border-radius: 4px; |
87 | 94 | border: 1px solid #D3D3D3; |
88 | 95 | box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB; |
89 | 96 | } |
| 97 | +.noUi-connects { |
| 98 | + border-radius: 3px; |
| 99 | +} |
90 | 100 | .noUi-connect { |
91 | 101 | background: #3FB8AF; |
92 | | - border-radius: 4px; |
93 | | - box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45); |
94 | | - -webkit-transition: background 450ms; |
95 | | - transition: background 450ms; |
96 | 102 | } |
97 | 103 | /* Handles and cursors; |
98 | 104 | */ |
|
196 | 202 | width: 100%; |
197 | 203 | } |
198 | 204 | .noUi-value-horizontal { |
199 | | - -webkit-transform: translate3d(-50%, 50%, 0); |
200 | | - transform: translate3d(-50%, 50%, 0); |
| 205 | + -webkit-transform: translate(-50%, 50%); |
| 206 | + transform: translate(-50%, 50%); |
| 207 | +} |
| 208 | +.noUi-rtl .noUi-value-horizontal { |
| 209 | + -webkit-transform: translate(50%, 50%); |
| 210 | + transform: translate(50%, 50%); |
201 | 211 | } |
202 | 212 | .noUi-marker-horizontal.noUi-marker { |
203 | 213 | margin-left: -1px; |
|
220 | 230 | left: 100%; |
221 | 231 | } |
222 | 232 | .noUi-value-vertical { |
223 | | - -webkit-transform: translate3d(0, 50%, 0); |
224 | | - transform: translate3d(0, 50%, 0); |
| 233 | + -webkit-transform: translate(0, -50%); |
| 234 | + transform: translate(0, -50%, 0); |
225 | 235 | padding-left: 25px; |
226 | 236 | } |
| 237 | +.noUi-rtl .noUi-value-vertical { |
| 238 | + -webkit-transform: translate(0, 50%); |
| 239 | + transform: translate(0, 50%); |
| 240 | +} |
227 | 241 | .noUi-marker-vertical.noUi-marker { |
228 | 242 | width: 5px; |
229 | 243 | height: 2px; |
|
0 commit comments