aeico-components 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1182 -1182
- package/dist/index.js +1182 -1182
- package/package.json +63 -63
- package/src/styles/color.css +117 -117
- package/src/styles/components/alert.css +104 -104
- package/src/styles/components/badge.css +67 -67
- package/src/styles/components/breadcrumb-item.css +59 -59
- package/src/styles/components/breadcrumb.css +19 -19
- package/src/styles/components/button-group.css +25 -25
- package/src/styles/components/button.css +213 -213
- package/src/styles/components/card.css +64 -64
- package/src/styles/components/checkbox.css +78 -78
- package/src/styles/components/detail.css +127 -127
- package/src/styles/components/dialog.css +103 -103
- package/src/styles/components/divider.css +18 -18
- package/src/styles/components/dropdown-item.css +91 -91
- package/src/styles/components/dropdown.css +179 -179
- package/src/styles/components/icon-button.css +116 -116
- package/src/styles/components/icon.css +29 -29
- package/src/styles/components/navbar.css +250 -250
- package/src/styles/components/radio-group.css +360 -360
- package/src/styles/components/select-option.css +43 -43
- package/src/styles/components/select.css +222 -222
- package/src/styles/components/slider.css +326 -326
- package/src/styles/components/switch.css +117 -117
- package/src/styles/components/tab-panel.css +8 -8
- package/src/styles/components/tab.css +44 -44
- package/src/styles/components/tabs.css +16 -16
- package/src/styles/components/tag.css +107 -107
- package/src/styles/components/text-input.css +110 -110
- package/src/styles/layout.css +43 -43
- package/src/styles/size.css +7 -7
- package/src/styles/variables.css +368 -368
|
@@ -1,326 +1,326 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
flex: 1;
|
|
4
|
-
min-width: 0;
|
|
5
|
-
font-size: var(--size-base);
|
|
6
|
-
|
|
7
|
-
/* Default color when no [color] attribute — overridden by color.css :host([color=...]) */
|
|
8
|
-
--color-solid: var(--color-primary);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.range-container {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: 6px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 26px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
input[type="range"] {
|
|
20
|
-
flex: 1;
|
|
21
|
-
margin: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.input-range,
|
|
25
|
-
.slider-input,
|
|
26
|
-
input[type="range"] {
|
|
27
|
-
-webkit-appearance: none;
|
|
28
|
-
appearance: none;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 0.333em;
|
|
31
|
-
border-radius: 2px;
|
|
32
|
-
background: var(--border-subtle);
|
|
33
|
-
outline: none;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
margin: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.input-range {
|
|
39
|
-
margin: 10px 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.input-range::-webkit-slider-thumb,
|
|
43
|
-
.slider-input::-webkit-slider-thumb,
|
|
44
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
45
|
-
-webkit-appearance: none;
|
|
46
|
-
appearance: none;
|
|
47
|
-
width: 1.167em;
|
|
48
|
-
height: 1.167em;
|
|
49
|
-
border-radius: 50%;
|
|
50
|
-
background: var(--color-solid);
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
transition: background 0.12s, transform 0.12s;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.input-range::-webkit-slider-thumb:hover,
|
|
56
|
-
.slider-input::-webkit-slider-thumb:hover,
|
|
57
|
-
input[type="range"]:hover::-webkit-slider-thumb {
|
|
58
|
-
background: var(--color-solid-hover);
|
|
59
|
-
transform: scale(1.1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.input-range::-webkit-slider-thumb:active,
|
|
63
|
-
.slider-input::-webkit-slider-thumb:active,
|
|
64
|
-
input[type="range"]:active::-webkit-slider-thumb {
|
|
65
|
-
background: var(--color-solid-hover);
|
|
66
|
-
transform: scale(1.2);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.input-range:focus::-webkit-slider-thumb,
|
|
70
|
-
.slider-input:focus::-webkit-slider-thumb,
|
|
71
|
-
input[type="range"]:focus::-webkit-slider-thumb {
|
|
72
|
-
background: var(--color-solid);
|
|
73
|
-
outline: none;
|
|
74
|
-
box-shadow: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.input-range:focus:hover::-webkit-slider-thumb,
|
|
78
|
-
.slider-input:focus:hover::-webkit-slider-thumb,
|
|
79
|
-
input[type="range"]:focus:hover::-webkit-slider-thumb {
|
|
80
|
-
background: var(--color-solid-hover);
|
|
81
|
-
outline: none;
|
|
82
|
-
box-shadow: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.input-range:focus:active::-webkit-slider-thumb,
|
|
86
|
-
.slider-input:focus:active::-webkit-slider-thumb,
|
|
87
|
-
input[type="range"]:focus:active::-webkit-slider-thumb {
|
|
88
|
-
background: var(--color-solid-hover);
|
|
89
|
-
outline: none;
|
|
90
|
-
box-shadow: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.input-range::-moz-range-thumb,
|
|
94
|
-
.slider-input::-moz-range-thumb,
|
|
95
|
-
input[type="range"]::-moz-range-thumb {
|
|
96
|
-
width: 1.167em;
|
|
97
|
-
height: 1.167em;
|
|
98
|
-
border: none;
|
|
99
|
-
border-radius: 50%;
|
|
100
|
-
background: var(--color-solid);
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
transition: background 0.12s, transform 0.12s;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.input-range::-moz-range-thumb:hover,
|
|
106
|
-
.slider-input::-moz-range-thumb:hover,
|
|
107
|
-
input[type="range"]:hover::-moz-range-thumb {
|
|
108
|
-
background: var(--color-solid-hover);
|
|
109
|
-
transform: scale(1.1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.input-range::-moz-range-thumb:active,
|
|
113
|
-
.slider-input::-moz-range-thumb:active,
|
|
114
|
-
input[type="range"]:active::-moz-range-thumb {
|
|
115
|
-
background: var(--color-solid-hover);
|
|
116
|
-
transform: scale(1.2);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.input-range:focus::-moz-range-thumb,
|
|
120
|
-
.slider-input:focus::-moz-range-thumb,
|
|
121
|
-
input[type="range"]:focus::-moz-range-thumb {
|
|
122
|
-
background: var(--color-solid);
|
|
123
|
-
outline: none;
|
|
124
|
-
box-shadow: none;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.input-range:focus:hover::-moz-range-thumb,
|
|
128
|
-
.slider-input:focus:hover::-moz-range-thumb,
|
|
129
|
-
input[type="range"]:focus:hover::-moz-range-thumb {
|
|
130
|
-
background: var(--color-solid-hover);
|
|
131
|
-
outline: none;
|
|
132
|
-
box-shadow: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.input-range:focus:active::-moz-range-thumb,
|
|
136
|
-
.slider-input:focus:active::-moz-range-thumb,
|
|
137
|
-
input[type="range"]:focus:active::-moz-range-thumb {
|
|
138
|
-
background: var(--color-solid-hover);
|
|
139
|
-
outline: none;
|
|
140
|
-
box-shadow: none;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.input-range:disabled,
|
|
144
|
-
.slider-input:disabled,
|
|
145
|
-
input[type="range"]:disabled {
|
|
146
|
-
opacity: 0.5;
|
|
147
|
-
cursor: not-allowed;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.input-range:disabled::-webkit-slider-thumb,
|
|
151
|
-
.slider-input:disabled::-webkit-slider-thumb,
|
|
152
|
-
input[type="range"]:disabled::-webkit-slider-thumb {
|
|
153
|
-
cursor: not-allowed;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.input-range:disabled::-moz-range-thumb,
|
|
157
|
-
.slider-input:disabled::-moz-range-thumb,
|
|
158
|
-
input[type="range"]:disabled::-moz-range-thumb {
|
|
159
|
-
cursor: not-allowed;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.value-label {
|
|
163
|
-
min-width: 14px;
|
|
164
|
-
text-align: center;
|
|
165
|
-
font-size: 12px;
|
|
166
|
-
color: var(--color-text-muted);
|
|
167
|
-
font-weight: 500;
|
|
168
|
-
font-variant-numeric: tabular-nums;
|
|
169
|
-
pointer-events: none;
|
|
170
|
-
user-select: none;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.reset-btn {
|
|
174
|
-
width: 1.333em;
|
|
175
|
-
height: 1.333em;
|
|
176
|
-
border: none;
|
|
177
|
-
border-radius: var(--reset-btn-border-radius);
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
display: flex;
|
|
180
|
-
align-items: center;
|
|
181
|
-
justify-content: center;
|
|
182
|
-
background: var(--reset-btn-bg);
|
|
183
|
-
color: var(--reset-btn-color);
|
|
184
|
-
transition: var(--reset-btn-transition);
|
|
185
|
-
flex-shrink: 0;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.reset-btn:hover {
|
|
189
|
-
background: var(--reset-btn-bg-hover);
|
|
190
|
-
color: var(--reset-btn-color-hover);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.clear-btn {
|
|
194
|
-
width: 1.333em;
|
|
195
|
-
height: 1.333em;
|
|
196
|
-
border: none;
|
|
197
|
-
border-radius: var(--clear-btn-border-radius);
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
display: flex;
|
|
200
|
-
align-items: center;
|
|
201
|
-
justify-content: center;
|
|
202
|
-
background: var(--clear-btn-bg);
|
|
203
|
-
color: var(--clear-btn-color);
|
|
204
|
-
transition: var(--clear-btn-transition);
|
|
205
|
-
flex-shrink: 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.clear-btn:hover {
|
|
209
|
-
background: var(--clear-btn-bg-hover);
|
|
210
|
-
color: var(--clear-btn-color-hover);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
.input-range,
|
|
216
|
-
.slider-input,
|
|
217
|
-
input[type="range"] {
|
|
218
|
-
height: 0.333em;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.input-range::-webkit-slider-thumb,
|
|
222
|
-
.slider-input::-webkit-slider-thumb,
|
|
223
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
224
|
-
width: 1.167em;
|
|
225
|
-
height: 1.167em;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.input-range::-moz-range-thumb,
|
|
229
|
-
.slider-input::-moz-range-thumb,
|
|
230
|
-
input[type="range"]::-moz-range-thumb {
|
|
231
|
-
width: 1.167em;
|
|
232
|
-
height: 1.167em;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.value-label {
|
|
236
|
-
font-size: 1em;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.value-input {
|
|
240
|
-
width: 56px;
|
|
241
|
-
padding: 0 4px;
|
|
242
|
-
height: 22px;
|
|
243
|
-
border: 1px solid var(--border-subtle);
|
|
244
|
-
border-radius: 4px;
|
|
245
|
-
background: transparent;
|
|
246
|
-
color: var(--color-text);
|
|
247
|
-
font-size: 12px;
|
|
248
|
-
text-align: center;
|
|
249
|
-
outline: none;
|
|
250
|
-
flex-shrink: 0;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.value-input:focus {
|
|
254
|
-
border-color: var(--color-solid);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.value-input:disabled {
|
|
258
|
-
opacity: 0.4;
|
|
259
|
-
cursor: not-allowed;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
:host([tracked]) .input-range,
|
|
263
|
-
:host([tracked]) .slider-input,
|
|
264
|
-
:host([tracked]) input[type="range"] {
|
|
265
|
-
background: linear-gradient(
|
|
266
|
-
to right,
|
|
267
|
-
var(--color-solid) var(--fill-pct, 0%),
|
|
268
|
-
var(--border-subtle) var(--fill-pct, 0%)
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.range-wrapper {
|
|
273
|
-
flex: 1;
|
|
274
|
-
min-width: 0;
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
position: relative; /* marks-container positions against this */
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.range-wrapper input[type="range"] {
|
|
281
|
-
width: 100%;
|
|
282
|
-
flex: none;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/* Marks are absolutely positioned so they don't affect range-wrapper's layout height */
|
|
286
|
-
.marks-container {
|
|
287
|
-
position: absolute;
|
|
288
|
-
top: 100%;
|
|
289
|
-
left: 7px; /* inset by half thumb so 0%/100% align with track ends */
|
|
290
|
-
right: 7px;
|
|
291
|
-
height: 18px;
|
|
292
|
-
margin-top: 2px;
|
|
293
|
-
overflow: visible;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.mark {
|
|
297
|
-
position: absolute;
|
|
298
|
-
transform: translateX(-50%);
|
|
299
|
-
display: flex;
|
|
300
|
-
flex-direction: column;
|
|
301
|
-
align-items: center;
|
|
302
|
-
gap: 2px;
|
|
303
|
-
pointer-events: none;
|
|
304
|
-
user-select: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.mark::before {
|
|
308
|
-
content: '';
|
|
309
|
-
display: block;
|
|
310
|
-
width: 1px;
|
|
311
|
-
height: 4px;
|
|
312
|
-
background: var(--border-default, var(--border-subtle));
|
|
313
|
-
border-radius: 1px;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.mark-label {
|
|
317
|
-
font-size: 10px;
|
|
318
|
-
color: var(--color-text-muted);
|
|
319
|
-
white-space: nowrap;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/* When marks are active, add padding-bottom to make room for the absolute-positioned marks */
|
|
323
|
-
:host([marks]) .range-container {
|
|
324
|
-
padding-bottom: 24px; /* marks-container height (18px) + margin-top (2px) + extra (4px) */
|
|
325
|
-
height: auto;
|
|
326
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
flex: 1;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
font-size: var(--size-base);
|
|
6
|
+
|
|
7
|
+
/* Default color when no [color] attribute — overridden by color.css :host([color=...]) */
|
|
8
|
+
--color-solid: var(--color-primary);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.range-container {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 6px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 26px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
input[type="range"] {
|
|
20
|
+
flex: 1;
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.input-range,
|
|
25
|
+
.slider-input,
|
|
26
|
+
input[type="range"] {
|
|
27
|
+
-webkit-appearance: none;
|
|
28
|
+
appearance: none;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 0.333em;
|
|
31
|
+
border-radius: 2px;
|
|
32
|
+
background: var(--border-subtle);
|
|
33
|
+
outline: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.input-range {
|
|
39
|
+
margin: 10px 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.input-range::-webkit-slider-thumb,
|
|
43
|
+
.slider-input::-webkit-slider-thumb,
|
|
44
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
45
|
+
-webkit-appearance: none;
|
|
46
|
+
appearance: none;
|
|
47
|
+
width: 1.167em;
|
|
48
|
+
height: 1.167em;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
background: var(--color-solid);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
transition: background 0.12s, transform 0.12s;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.input-range::-webkit-slider-thumb:hover,
|
|
56
|
+
.slider-input::-webkit-slider-thumb:hover,
|
|
57
|
+
input[type="range"]:hover::-webkit-slider-thumb {
|
|
58
|
+
background: var(--color-solid-hover);
|
|
59
|
+
transform: scale(1.1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-range::-webkit-slider-thumb:active,
|
|
63
|
+
.slider-input::-webkit-slider-thumb:active,
|
|
64
|
+
input[type="range"]:active::-webkit-slider-thumb {
|
|
65
|
+
background: var(--color-solid-hover);
|
|
66
|
+
transform: scale(1.2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.input-range:focus::-webkit-slider-thumb,
|
|
70
|
+
.slider-input:focus::-webkit-slider-thumb,
|
|
71
|
+
input[type="range"]:focus::-webkit-slider-thumb {
|
|
72
|
+
background: var(--color-solid);
|
|
73
|
+
outline: none;
|
|
74
|
+
box-shadow: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.input-range:focus:hover::-webkit-slider-thumb,
|
|
78
|
+
.slider-input:focus:hover::-webkit-slider-thumb,
|
|
79
|
+
input[type="range"]:focus:hover::-webkit-slider-thumb {
|
|
80
|
+
background: var(--color-solid-hover);
|
|
81
|
+
outline: none;
|
|
82
|
+
box-shadow: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.input-range:focus:active::-webkit-slider-thumb,
|
|
86
|
+
.slider-input:focus:active::-webkit-slider-thumb,
|
|
87
|
+
input[type="range"]:focus:active::-webkit-slider-thumb {
|
|
88
|
+
background: var(--color-solid-hover);
|
|
89
|
+
outline: none;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.input-range::-moz-range-thumb,
|
|
94
|
+
.slider-input::-moz-range-thumb,
|
|
95
|
+
input[type="range"]::-moz-range-thumb {
|
|
96
|
+
width: 1.167em;
|
|
97
|
+
height: 1.167em;
|
|
98
|
+
border: none;
|
|
99
|
+
border-radius: 50%;
|
|
100
|
+
background: var(--color-solid);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
transition: background 0.12s, transform 0.12s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.input-range::-moz-range-thumb:hover,
|
|
106
|
+
.slider-input::-moz-range-thumb:hover,
|
|
107
|
+
input[type="range"]:hover::-moz-range-thumb {
|
|
108
|
+
background: var(--color-solid-hover);
|
|
109
|
+
transform: scale(1.1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.input-range::-moz-range-thumb:active,
|
|
113
|
+
.slider-input::-moz-range-thumb:active,
|
|
114
|
+
input[type="range"]:active::-moz-range-thumb {
|
|
115
|
+
background: var(--color-solid-hover);
|
|
116
|
+
transform: scale(1.2);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.input-range:focus::-moz-range-thumb,
|
|
120
|
+
.slider-input:focus::-moz-range-thumb,
|
|
121
|
+
input[type="range"]:focus::-moz-range-thumb {
|
|
122
|
+
background: var(--color-solid);
|
|
123
|
+
outline: none;
|
|
124
|
+
box-shadow: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.input-range:focus:hover::-moz-range-thumb,
|
|
128
|
+
.slider-input:focus:hover::-moz-range-thumb,
|
|
129
|
+
input[type="range"]:focus:hover::-moz-range-thumb {
|
|
130
|
+
background: var(--color-solid-hover);
|
|
131
|
+
outline: none;
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.input-range:focus:active::-moz-range-thumb,
|
|
136
|
+
.slider-input:focus:active::-moz-range-thumb,
|
|
137
|
+
input[type="range"]:focus:active::-moz-range-thumb {
|
|
138
|
+
background: var(--color-solid-hover);
|
|
139
|
+
outline: none;
|
|
140
|
+
box-shadow: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.input-range:disabled,
|
|
144
|
+
.slider-input:disabled,
|
|
145
|
+
input[type="range"]:disabled {
|
|
146
|
+
opacity: 0.5;
|
|
147
|
+
cursor: not-allowed;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.input-range:disabled::-webkit-slider-thumb,
|
|
151
|
+
.slider-input:disabled::-webkit-slider-thumb,
|
|
152
|
+
input[type="range"]:disabled::-webkit-slider-thumb {
|
|
153
|
+
cursor: not-allowed;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.input-range:disabled::-moz-range-thumb,
|
|
157
|
+
.slider-input:disabled::-moz-range-thumb,
|
|
158
|
+
input[type="range"]:disabled::-moz-range-thumb {
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.value-label {
|
|
163
|
+
min-width: 14px;
|
|
164
|
+
text-align: center;
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
color: var(--color-text-muted);
|
|
167
|
+
font-weight: 500;
|
|
168
|
+
font-variant-numeric: tabular-nums;
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
user-select: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.reset-btn {
|
|
174
|
+
width: 1.333em;
|
|
175
|
+
height: 1.333em;
|
|
176
|
+
border: none;
|
|
177
|
+
border-radius: var(--reset-btn-border-radius);
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
background: var(--reset-btn-bg);
|
|
183
|
+
color: var(--reset-btn-color);
|
|
184
|
+
transition: var(--reset-btn-transition);
|
|
185
|
+
flex-shrink: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.reset-btn:hover {
|
|
189
|
+
background: var(--reset-btn-bg-hover);
|
|
190
|
+
color: var(--reset-btn-color-hover);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.clear-btn {
|
|
194
|
+
width: 1.333em;
|
|
195
|
+
height: 1.333em;
|
|
196
|
+
border: none;
|
|
197
|
+
border-radius: var(--clear-btn-border-radius);
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
background: var(--clear-btn-bg);
|
|
203
|
+
color: var(--clear-btn-color);
|
|
204
|
+
transition: var(--clear-btn-transition);
|
|
205
|
+
flex-shrink: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.clear-btn:hover {
|
|
209
|
+
background: var(--clear-btn-bg-hover);
|
|
210
|
+
color: var(--clear-btn-color-hover);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
.input-range,
|
|
216
|
+
.slider-input,
|
|
217
|
+
input[type="range"] {
|
|
218
|
+
height: 0.333em;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.input-range::-webkit-slider-thumb,
|
|
222
|
+
.slider-input::-webkit-slider-thumb,
|
|
223
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
224
|
+
width: 1.167em;
|
|
225
|
+
height: 1.167em;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.input-range::-moz-range-thumb,
|
|
229
|
+
.slider-input::-moz-range-thumb,
|
|
230
|
+
input[type="range"]::-moz-range-thumb {
|
|
231
|
+
width: 1.167em;
|
|
232
|
+
height: 1.167em;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.value-label {
|
|
236
|
+
font-size: 1em;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.value-input {
|
|
240
|
+
width: 56px;
|
|
241
|
+
padding: 0 4px;
|
|
242
|
+
height: 22px;
|
|
243
|
+
border: 1px solid var(--border-subtle);
|
|
244
|
+
border-radius: 4px;
|
|
245
|
+
background: transparent;
|
|
246
|
+
color: var(--color-text);
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
text-align: center;
|
|
249
|
+
outline: none;
|
|
250
|
+
flex-shrink: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.value-input:focus {
|
|
254
|
+
border-color: var(--color-solid);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.value-input:disabled {
|
|
258
|
+
opacity: 0.4;
|
|
259
|
+
cursor: not-allowed;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host([tracked]) .input-range,
|
|
263
|
+
:host([tracked]) .slider-input,
|
|
264
|
+
:host([tracked]) input[type="range"] {
|
|
265
|
+
background: linear-gradient(
|
|
266
|
+
to right,
|
|
267
|
+
var(--color-solid) var(--fill-pct, 0%),
|
|
268
|
+
var(--border-subtle) var(--fill-pct, 0%)
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.range-wrapper {
|
|
273
|
+
flex: 1;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-direction: column;
|
|
277
|
+
position: relative; /* marks-container positions against this */
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.range-wrapper input[type="range"] {
|
|
281
|
+
width: 100%;
|
|
282
|
+
flex: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Marks are absolutely positioned so they don't affect range-wrapper's layout height */
|
|
286
|
+
.marks-container {
|
|
287
|
+
position: absolute;
|
|
288
|
+
top: 100%;
|
|
289
|
+
left: 7px; /* inset by half thumb so 0%/100% align with track ends */
|
|
290
|
+
right: 7px;
|
|
291
|
+
height: 18px;
|
|
292
|
+
margin-top: 2px;
|
|
293
|
+
overflow: visible;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.mark {
|
|
297
|
+
position: absolute;
|
|
298
|
+
transform: translateX(-50%);
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: 2px;
|
|
303
|
+
pointer-events: none;
|
|
304
|
+
user-select: none;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.mark::before {
|
|
308
|
+
content: '';
|
|
309
|
+
display: block;
|
|
310
|
+
width: 1px;
|
|
311
|
+
height: 4px;
|
|
312
|
+
background: var(--border-default, var(--border-subtle));
|
|
313
|
+
border-radius: 1px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.mark-label {
|
|
317
|
+
font-size: 10px;
|
|
318
|
+
color: var(--color-text-muted);
|
|
319
|
+
white-space: nowrap;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* When marks are active, add padding-bottom to make room for the absolute-positioned marks */
|
|
323
|
+
:host([marks]) .range-container {
|
|
324
|
+
padding-bottom: 24px; /* marks-container height (18px) + margin-top (2px) + extra (4px) */
|
|
325
|
+
height: auto;
|
|
326
|
+
}
|