forked from leongersen/noUiSlider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nouislider.core.less
192 lines (183 loc) · 4 KB
/
nouislider.core.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* Functional styling;
* These styles are required for noUiSlider to function.
* You don't need to change these rules to apply your design.
*/
.@{noUi-css-prefix}-target,
.@{noUi-css-prefix}-target * {
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-user-select: none;
-ms-touch-action: none;
touch-action: none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.@{noUi-css-prefix}-target {
position: relative;
}
.@{noUi-css-prefix}-base,
.@{noUi-css-prefix}-connects {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
/* Wrapper for all connect elements.
*/
.@{noUi-css-prefix}-connects {
overflow: hidden;
z-index: 0;
}
.@{noUi-css-prefix}-connect,
.@{noUi-css-prefix}-origin {
will-change: transform;
position: absolute;
z-index: 1;
top: 0;
right: 0;
-ms-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
-webkit-transform-style: preserve-3d;
transform-origin: 0 0;
transform-style: flat;
}
.@{noUi-css-prefix}-connect {
height: 100%;
width: 100%;
}
.@{noUi-css-prefix}-origin {
height: 10%;
width: 10%;
}
/* Offset direction
*/
.@{noUi-css-prefix}-txt-dir-rtl.@{noUi-css-prefix}-horizontal .@{noUi-css-prefix}-origin {
left: 0;
right: auto;
}
/* Give origins 0 height/width so they don't interfere with clicking the
* connect elements.
*/
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-origin {
width: 0;
}
.@{noUi-css-prefix}-horizontal .@{noUi-css-prefix}-origin {
height: 0;
}
.@{noUi-css-prefix}-handle {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
position: absolute;
}
.@{noUi-css-prefix}-touch-area {
height: 100%;
width: 100%;
}
.@{noUi-css-prefix}-state-tap .@{noUi-css-prefix}-connect,
.@{noUi-css-prefix}-state-tap .@{noUi-css-prefix}-origin {
-webkit-transition: transform 0.3s;
transition: transform 0.3s;
}
.@{noUi-css-prefix}-state-drag * {
cursor: inherit !important;
}
/* Slider size and handle placement;
*/
.@{noUi-css-prefix}-horizontal {
height: 18px;
}
.@{noUi-css-prefix}-horizontal .@{noUi-css-prefix}-handle {
width: 34px;
height: 28px;
right: -17px;
top: -6px;
}
.@{noUi-css-prefix}-vertical {
width: 18px;
}
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-handle {
width: 28px;
height: 34px;
right: -6px;
top: -17px;
}
.@{noUi-css-prefix}-txt-dir-rtl.@{noUi-css-prefix}-horizontal .@{noUi-css-prefix}-handle {
left: -17px;
right: auto;
}
/* Styling;
* Giving the connect element a border radius causes issues with using transform: scale
*/
.@{noUi-css-prefix}-target {
background: #FAFAFA;
border-radius: 4px;
border: 1px solid #D3D3D3;
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.@{noUi-css-prefix}-connects {
border-radius: 3px;
}
.@{noUi-css-prefix}-connect {
background: #3FB8AF;
}
/* Handles and cursors;
*/
.@{noUi-css-prefix}-draggable {
cursor: ew-resize;
}
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-draggable {
cursor: ns-resize;
}
.@{noUi-css-prefix}-handle {
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #FFF;
cursor: default;
box-shadow: inset 0 0 1px #FFF,
inset 0 1px 7px #EBEBEB,
0 3px 6px -3px #BBB;
}
.@{noUi-css-prefix}-active {
box-shadow: inset 0 0 1px #FFF,
inset 0 1px 7px #DDD,
0 3px 6px -3px #BBB;
}
/* Handle stripes;
*/
.@{noUi-css-prefix}-handle:before,
.@{noUi-css-prefix}-handle:after {
content: "";
display: block;
position: absolute;
height: 14px;
width: 1px;
background: #E8E7E6;
left: 14px;
top: 6px;
}
.@{noUi-css-prefix}-handle:after {
left: 17px;
}
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-handle:before,
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-handle:after {
width: 14px;
height: 1px;
left: 6px;
top: 14px;
}
.@{noUi-css-prefix}-vertical .@{noUi-css-prefix}-handle:after {
top: 17px;
}
/* Disabled state;
*/
[disabled] .@{noUi-css-prefix}-connect {
background: #B8B8B8;
}
[disabled].@{noUi-css-prefix}-target,
[disabled].@{noUi-css-prefix}-handle,
[disabled] .@{noUi-css-prefix}-handle {
cursor: not-allowed;
}