提交 | 用户 | 时间
|
58d006
|
1 |
|
A |
2 |
/* General CSS resets; |
|
3 |
* The target itself is not affected, allowing |
|
4 |
* the remainder of the document to use an |
|
5 |
* alternate box-sizing model; |
|
6 |
* Support for box-sizing is wide spread: |
|
7 |
* http://caniuse.com/#search=box-sizing |
|
8 |
*/ |
|
9 |
.noUi-target * { |
|
10 |
-webkit-box-sizing: border-box; |
|
11 |
-moz-box-sizing: border-box; |
|
12 |
box-sizing: border-box; |
|
13 |
-webkit-touch-callout: none; |
|
14 |
-ms-touch-action: none; |
|
15 |
-webkit-user-select: none; |
|
16 |
-moz-user-select: none; |
|
17 |
-ms-user-select: none; |
|
18 |
cursor: default; |
|
19 |
} |
|
20 |
|
|
21 |
/* Main slider bar; |
|
22 |
* Standard styles no longer incorrectly force a |
|
23 |
* width or height on the slider. |
|
24 |
*/ |
|
25 |
.noUi-base { |
|
26 |
height: 40px; |
|
27 |
position: relative; |
|
28 |
max-width: 100%; |
|
29 |
max-height: 100%; |
|
30 |
border: 1px solid #bfbfbf; |
|
31 |
z-index: 1; |
|
32 |
} |
|
33 |
|
|
34 |
/* Handles + active state; |
|
35 |
* The :after pseudo-element wont inherit |
|
36 |
* box-sizing, so it needs to applied manually. |
|
37 |
*/ |
|
38 |
.noUi-handle { |
|
39 |
background: #EEE; |
|
40 |
height: 44px; |
|
41 |
width: 44px; |
|
42 |
border: 1px solid #BFBFBF; |
|
43 |
margin: -3px 0 0 -23px; |
|
44 |
} |
|
45 |
.noUi-active { |
|
46 |
background: #E9E9E9; |
|
47 |
} |
|
48 |
.noUi-active:after { |
|
49 |
-webkit-box-sizing: border-box; |
|
50 |
-moz-box-sizing: border-box; |
|
51 |
box-sizing: border-box; |
|
52 |
content: ""; |
|
53 |
display: block; |
|
54 |
height: 100%; |
|
55 |
border: 1px solid #DDD; |
|
56 |
} |
|
57 |
|
|
58 |
/* Styling-only classes; |
|
59 |
* Structured to prevent double declarations |
|
60 |
* for various states of the slider. |
|
61 |
*/ |
|
62 |
.noUi-connect { |
|
63 |
background: Teal; |
|
64 |
} |
|
65 |
.noUi-background { |
|
66 |
background: #DDD; |
|
67 |
} |
|
68 |
|
|
69 |
/* Functional styles for handle positioning; |
|
70 |
* Note that the origins have z-index 0, the base has |
|
71 |
* z-index 1; This fixes a bug where borders become invisible. |
|
72 |
*/ |
|
73 |
.noUi-origin { |
|
74 |
position: absolute; |
|
75 |
right: 0; |
|
76 |
top: 0; |
|
77 |
bottom: 0; |
|
78 |
z-index: 0; |
|
79 |
} |
|
80 |
.noUi-origin-upper { |
|
81 |
background: inherit !important; |
|
82 |
} |
|
83 |
.noUi-z-index { |
|
84 |
z-index: 10; |
|
85 |
} |
|
86 |
|
|
87 |
/* Adaptations for the vertical slider; |
|
88 |
* Some standard styles have been extended to keep |
|
89 |
* exceptions for the vertical slider as minimal as possible. |
|
90 |
*/ |
|
91 |
.noUi-vertical { |
|
92 |
width: 40px; |
|
93 |
} |
|
94 |
.noUi-vertical .noUi-origin { |
|
95 |
bottom: 0; |
|
96 |
left: 0; |
|
97 |
} |
|
98 |
.noUi-vertical .noUi-handle { |
|
99 |
margin: -23px 0 0 -3px; |
|
100 |
} |
|
101 |
|
|
102 |
/* Various alternate slider states; |
|
103 |
* Support for transition is widely available, |
|
104 |
* Only IE7, IE8 and IE9 will ignore these rules. |
|
105 |
* Since this is merely a progressive enhancement, |
|
106 |
* this is no problem at all. |
|
107 |
* http://caniuse.com/#search=transition |
|
108 |
*/ |
|
109 |
.noUi-target[disabled] .noUi-base { |
|
110 |
background: #999; |
|
111 |
} |
|
112 |
.noUi-target[disabled] .noUi-connect { |
|
113 |
background: #BBB; |
|
114 |
} |
|
115 |
.noUi-state-tap .noUi-origin { |
|
116 |
-webkit-transition: left 0.3s, top 0.3s; |
|
117 |
transition: left 0.3s, top 0.3s; |
|
118 |
} |