UNPKG

5.72 kBCSSView Raw
1/* Functional styling;
2 * These styles are required for noUiSlider to function.
3 * You don't need to change these rules to apply your design.
4 */
5.noUi-target,
6.noUi-target * {
7 -webkit-touch-callout: none;
8 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
9 -webkit-user-select: none;
10 -ms-touch-action: none;
11 touch-action: none;
12 -ms-user-select: none;
13 -moz-user-select: none;
14 user-select: none;
15 -moz-box-sizing: border-box;
16 box-sizing: border-box;
17}
18.noUi-target {
19 position: relative;
20}
21.noUi-base,
22.noUi-connects {
23 width: 100%;
24 height: 100%;
25 position: relative;
26 z-index: 1;
27}
28/* Wrapper for all connect elements.
29 */
30.noUi-connects {
31 overflow: hidden;
32 z-index: 0;
33}
34.noUi-connect,
35.noUi-origin {
36 will-change: transform;
37 position: absolute;
38 z-index: 1;
39 top: 0;
40 right: 0;
41 height: 100%;
42 width: 100%;
43 -ms-transform-origin: 0 0;
44 -webkit-transform-origin: 0 0;
45 -webkit-transform-style: preserve-3d;
46 transform-origin: 0 0;
47 transform-style: flat;
48}
49/* Offset direction
50 */
51.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
52 left: 0;
53 right: auto;
54}
55/* Give origins 0 height/width so they don't interfere with clicking the
56 * connect elements.
57 */
58.noUi-vertical .noUi-origin {
59 top: -100%;
60 width: 0;
61}
62.noUi-horizontal .noUi-origin {
63 height: 0;
64}
65.noUi-handle {
66 -webkit-backface-visibility: hidden;
67 backface-visibility: hidden;
68 position: absolute;
69}
70.noUi-touch-area {
71 height: 100%;
72 width: 100%;
73}
74.noUi-state-tap .noUi-connect,
75.noUi-state-tap .noUi-origin {
76 -webkit-transition: transform 0.3s;
77 transition: transform 0.3s;
78}
79.noUi-state-drag * {
80 cursor: inherit !important;
81}
82/* Slider size and handle placement;
83 */
84.noUi-horizontal {
85 height: 18px;
86}
87.noUi-horizontal .noUi-handle {
88 width: 34px;
89 height: 28px;
90 right: -17px;
91 top: -6px;
92}
93.noUi-vertical {
94 width: 18px;
95}
96.noUi-vertical .noUi-handle {
97 width: 28px;
98 height: 34px;
99 right: -6px;
100 bottom: -17px;
101}
102.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
103 left: -17px;
104 right: auto;
105}
106/* Styling;
107 * Giving the connect element a border radius causes issues with using transform: scale
108 */
109.noUi-target {
110 background: #FAFAFA;
111 border-radius: 4px;
112 border: 1px solid #D3D3D3;
113 box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
114}
115.noUi-connects {
116 border-radius: 3px;
117}
118.noUi-connect {
119 background: #3FB8AF;
120}
121/* Handles and cursors;
122 */
123.noUi-draggable {
124 cursor: ew-resize;
125}
126.noUi-vertical .noUi-draggable {
127 cursor: ns-resize;
128}
129.noUi-handle {
130 border: 1px solid #D9D9D9;
131 border-radius: 3px;
132 background: #FFF;
133 cursor: default;
134 box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
135}
136.noUi-active {
137 box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
138}
139/* Handle stripes;
140 */
141.noUi-handle:before,
142.noUi-handle:after {
143 content: "";
144 display: block;
145 position: absolute;
146 height: 14px;
147 width: 1px;
148 background: #E8E7E6;
149 left: 14px;
150 top: 6px;
151}
152.noUi-handle:after {
153 left: 17px;
154}
155.noUi-vertical .noUi-handle:before,
156.noUi-vertical .noUi-handle:after {
157 width: 14px;
158 height: 1px;
159 left: 6px;
160 top: 14px;
161}
162.noUi-vertical .noUi-handle:after {
163 top: 17px;
164}
165/* Disabled state;
166 */
167[disabled] .noUi-connect {
168 background: #B8B8B8;
169}
170[disabled].noUi-target,
171[disabled].noUi-handle,
172[disabled] .noUi-handle {
173 cursor: not-allowed;
174}
175/* Base;
176 *
177 */
178.noUi-pips,
179.noUi-pips * {
180 -moz-box-sizing: border-box;
181 box-sizing: border-box;
182}
183.noUi-pips {
184 position: absolute;
185 color: #999;
186}
187/* Values;
188 *
189 */
190.noUi-value {
191 position: absolute;
192 white-space: nowrap;
193 text-align: center;
194}
195.noUi-value-sub {
196 color: #ccc;
197 font-size: 10px;
198}
199/* Markings;
200 *
201 */
202.noUi-marker {
203 position: absolute;
204 background: #CCC;
205}
206.noUi-marker-sub {
207 background: #AAA;
208}
209.noUi-marker-large {
210 background: #AAA;
211}
212/* Horizontal layout;
213 *
214 */
215.noUi-pips-horizontal {
216 padding: 10px 0;
217 height: 80px;
218 top: 100%;
219 left: 0;
220 width: 100%;
221}
222.noUi-value-horizontal {
223 -webkit-transform: translate(-50%, 50%);
224 transform: translate(-50%, 50%);
225}
226.noUi-rtl .noUi-value-horizontal {
227 -webkit-transform: translate(50%, 50%);
228 transform: translate(50%, 50%);
229}
230.noUi-marker-horizontal.noUi-marker {
231 margin-left: -1px;
232 width: 2px;
233 height: 5px;
234}
235.noUi-marker-horizontal.noUi-marker-sub {
236 height: 10px;
237}
238.noUi-marker-horizontal.noUi-marker-large {
239 height: 15px;
240}
241/* Vertical layout;
242 *
243 */
244.noUi-pips-vertical {
245 padding: 0 10px;
246 height: 100%;
247 top: 0;
248 left: 100%;
249}
250.noUi-value-vertical {
251 -webkit-transform: translate(0, -50%);
252 transform: translate(0, -50%);
253 padding-left: 25px;
254}
255.noUi-rtl .noUi-value-vertical {
256 -webkit-transform: translate(0, 50%);
257 transform: translate(0, 50%);
258}
259.noUi-marker-vertical.noUi-marker {
260 width: 5px;
261 height: 2px;
262 margin-top: -1px;
263}
264.noUi-marker-vertical.noUi-marker-sub {
265 width: 10px;
266}
267.noUi-marker-vertical.noUi-marker-large {
268 width: 15px;
269}
270.noUi-tooltip {
271 display: block;
272 position: absolute;
273 border: 1px solid #D9D9D9;
274 border-radius: 3px;
275 background: #fff;
276 color: #000;
277 padding: 5px;
278 text-align: center;
279 white-space: nowrap;
280}
281.noUi-horizontal .noUi-tooltip {
282 -webkit-transform: translate(-50%, 0);
283 transform: translate(-50%, 0);
284 left: 50%;
285 bottom: 120%;
286}
287.noUi-vertical .noUi-tooltip {
288 -webkit-transform: translate(0, -50%);
289 transform: translate(0, -50%);
290 top: 50%;
291 right: 120%;
292}
293.noUi-horizontal .noUi-origin > .noUi-tooltip {
294 -webkit-transform: translate(50%, 0);
295 transform: translate(50%, 0);
296 left: auto;
297 bottom: 10px;
298}
299.noUi-vertical .noUi-origin > .noUi-tooltip {
300 -webkit-transform: translate(0, -18px);
301 transform: translate(0, -18px);
302 top: auto;
303 right: 28px;
304}