@ew-color-picker/style 2.0.9 → 2.0.11
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/checkbox.css +9 -9
- package/dist/checkbox.min.css +1 -1
- package/dist/index.css +646 -103
- package/dist/index.min.css +1 -1
- package/dist/input-number.css +15 -14
- package/dist/input-number.min.css +1 -1
- package/dist/select.css +16 -16
- package/dist/select.min.css +1 -1
- package/dist/tooltip.css +85 -0
- package/dist/tooltip.min.css +1 -0
- package/package.json +1 -1
- package/src/checkbox.scss +9 -9
- package/src/index.scss +777 -104
- package/src/input-number.scss +16 -14
- package/src/select.scss +16 -16
- package/src/tooltip.scss +98 -0
package/dist/index.css
CHANGED
|
@@ -2,6 +2,112 @@
|
|
|
2
2
|
:root {
|
|
3
3
|
--panel-width: 285px;
|
|
4
4
|
--panel-height: 180px;
|
|
5
|
+
--container-padding: 10px;
|
|
6
|
+
--container-margin-top: 8px;
|
|
7
|
+
--container-min-width: 320px;
|
|
8
|
+
--container-radius: 10px;
|
|
9
|
+
--panel-radius: 8px;
|
|
10
|
+
--content-gap: 12px;
|
|
11
|
+
--slider-width-v: 12px;
|
|
12
|
+
--slider-height-h: 12px;
|
|
13
|
+
--slider-gap: 4px;
|
|
14
|
+
--slider-hue-bg-offset: 3px;
|
|
15
|
+
--slider-alpha-top-gap: 3px;
|
|
16
|
+
--slider-hue-top-margin: 8px;
|
|
17
|
+
--thumb-size-v: 4px;
|
|
18
|
+
--thumb-size-v-bar: 12px;
|
|
19
|
+
--thumb-size-h: 4px;
|
|
20
|
+
--cursor-size: 4px;
|
|
21
|
+
--cursor-ring: 3px;
|
|
22
|
+
--drop-container-margin-top: 6px;
|
|
23
|
+
--drop-container-padding-top: 4px;
|
|
24
|
+
--drop-container-min-height: 28px;
|
|
25
|
+
--bottom-row-gap: 8px;
|
|
26
|
+
--bottom-row-margin-top: 8px;
|
|
27
|
+
--mode-container-gap: 8px;
|
|
28
|
+
--mode-container-padding: 8px;
|
|
29
|
+
--mode-container-margin-top: 8px;
|
|
30
|
+
--mode-container-margin-bottom: 12px;
|
|
31
|
+
--mode-container-radius: 6px;
|
|
32
|
+
--mode-title-font-size: 16px;
|
|
33
|
+
--mode-btn-size: 24px;
|
|
34
|
+
--mode-btn-icon-size: 16px;
|
|
35
|
+
--mode-btn-radius: 4px;
|
|
36
|
+
--mode-arrow-size: 6px;
|
|
37
|
+
--mode-text-font-size: 14px;
|
|
38
|
+
--mode-text-min-width: 60px;
|
|
39
|
+
--mode-text-padding: 0 8px;
|
|
40
|
+
--input-height: 32px;
|
|
41
|
+
--input-line-height: 32px;
|
|
42
|
+
--input-font-size: 14px;
|
|
43
|
+
--input-padding: 0 8px;
|
|
44
|
+
--input-radius: 5px;
|
|
45
|
+
--default-input-height: 28px;
|
|
46
|
+
--default-input-padding: 4px 8px;
|
|
47
|
+
--default-input-font-size: 12px;
|
|
48
|
+
--input-number-height: 32px;
|
|
49
|
+
--input-number-border-width: 1.5px;
|
|
50
|
+
--input-number-radius: 5px;
|
|
51
|
+
--input-number-input-padding: 4px 8px;
|
|
52
|
+
--input-number-input-font-size: 13px;
|
|
53
|
+
--input-number-buttons-width: 28px;
|
|
54
|
+
--input-number-buttons-min-width: 22px;
|
|
55
|
+
--input-number-icon-size: 8px;
|
|
56
|
+
--select-height: 32px;
|
|
57
|
+
--select-border-width: 1.5px;
|
|
58
|
+
--select-radius: 6px;
|
|
59
|
+
--select-padding: 0 8px;
|
|
60
|
+
--select-font-size: 13px;
|
|
61
|
+
--select-arrow-size: 10px;
|
|
62
|
+
--select-clear-size: 10px;
|
|
63
|
+
--checkbox-gap: 5px;
|
|
64
|
+
--checkbox-font-size: 12px;
|
|
65
|
+
--checkbox-border-width: 1.5px;
|
|
66
|
+
--checkbox-box-size: 14px;
|
|
67
|
+
--checkbox-box-radius: 3px;
|
|
68
|
+
--checkbox-icon-size: 9px;
|
|
69
|
+
--btn-padding: 5px;
|
|
70
|
+
--btn-font-size: 12px;
|
|
71
|
+
--btn-radius: 3px;
|
|
72
|
+
--btn-min-width: 60px;
|
|
73
|
+
--predefine-item-size: 20px;
|
|
74
|
+
--predefine-item-radius: 4px;
|
|
75
|
+
--predefine-gap: 8px;
|
|
76
|
+
--predefine-margin-top: 12px;
|
|
77
|
+
--predefine-font-size: 12px;
|
|
78
|
+
--extra-row-gap: 8px;
|
|
79
|
+
--extra-row-margin-top: 8px;
|
|
80
|
+
--eyedropper-btn-height: 28px;
|
|
81
|
+
--eyedropper-btn-padding: 0 6px;
|
|
82
|
+
--eyedropper-btn-icon: 16px;
|
|
83
|
+
--copy-btn-size: 28px;
|
|
84
|
+
--copy-btn-icon: 14px;
|
|
85
|
+
--gradient-bar-height: 14px;
|
|
86
|
+
--gradient-bar-radius: 7px;
|
|
87
|
+
--gradient-handle-size: 14px;
|
|
88
|
+
--gradient-row-gap: 4px;
|
|
89
|
+
--gradient-row-min-height: 24px;
|
|
90
|
+
--gradient-label-font-size: 12px;
|
|
91
|
+
--gradient-label-line-height: 24px;
|
|
92
|
+
--gradient-text-height: 24px;
|
|
93
|
+
--gradient-text-font-size: 12px;
|
|
94
|
+
--gradient-btn-height: 24px;
|
|
95
|
+
--gradient-btn-font-size: 12px;
|
|
96
|
+
--gradient-label-margin-top: 8px;
|
|
97
|
+
--gradient-stop-number-width: 60px;
|
|
98
|
+
--inputs-group-gap: 4px;
|
|
99
|
+
--inputs-label-font-size: 12px;
|
|
100
|
+
--inputs-label-height: 18px;
|
|
101
|
+
--inputs-label-line-height: 18px;
|
|
102
|
+
--inputs-label-margin-bottom: 2px;
|
|
103
|
+
--hsl-input-height: 32px;
|
|
104
|
+
--mode-new-container-gap: 8px;
|
|
105
|
+
--mode-new-btn-size: 24px;
|
|
106
|
+
--mode-new-btn-icon: 16px;
|
|
107
|
+
--color-inputs-max-width: 320px;
|
|
108
|
+
--color-inputs-min-width: 280px;
|
|
109
|
+
--color-inputs-gap: 6px;
|
|
110
|
+
--color-inputs-margin-bottom: 8px;
|
|
5
111
|
}
|
|
6
112
|
|
|
7
113
|
.ew-color-picker-alpha-slider-bg,
|
|
@@ -101,23 +207,48 @@
|
|
|
101
207
|
|
|
102
208
|
.ew-color-picker-panel-container {
|
|
103
209
|
box-sizing: content-box;
|
|
104
|
-
display: inline-
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
align-items: stretch;
|
|
213
|
+
width: fit-content;
|
|
105
214
|
position: absolute;
|
|
106
215
|
left: 0;
|
|
107
216
|
top: 100%;
|
|
108
|
-
margin-top:
|
|
109
|
-
padding:
|
|
217
|
+
margin-top: var(--container-margin-top);
|
|
218
|
+
padding: var(--container-padding);
|
|
110
219
|
background: #fff;
|
|
111
|
-
border-radius:
|
|
220
|
+
border-radius: var(--container-radius);
|
|
112
221
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
|
|
113
222
|
border: 1px solid #e5e6eb;
|
|
114
|
-
min-width: 320px;
|
|
115
223
|
overflow: visible;
|
|
116
224
|
z-index: 1000;
|
|
117
225
|
transition: opacity 0.2s, transform 0.2s;
|
|
118
226
|
opacity: 1;
|
|
119
227
|
}
|
|
120
228
|
|
|
229
|
+
.ew-color-picker-top-row {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: row;
|
|
232
|
+
align-items: flex-start;
|
|
233
|
+
gap: var(--slider-gap);
|
|
234
|
+
width: fit-content;
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ew-color-picker-top-row > .ew-color-picker-slider.ew-color-picker-is-vertical {
|
|
239
|
+
margin-left: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ew-color-picker-mode-container,
|
|
243
|
+
.ew-color-picker-extra-row,
|
|
244
|
+
.ew-color-picker-bottom-row,
|
|
245
|
+
.ew-color-picker-inputs-group,
|
|
246
|
+
.ew-color-picker-slider.ew-color-picker-is-horizontal,
|
|
247
|
+
.ew-color-picker-gradient-container {
|
|
248
|
+
max-width: 0;
|
|
249
|
+
min-width: 100%;
|
|
250
|
+
}
|
|
251
|
+
|
|
121
252
|
.ew-fade-in {
|
|
122
253
|
opacity: 1;
|
|
123
254
|
pointer-events: auto;
|
|
@@ -142,11 +273,11 @@
|
|
|
142
273
|
display: flex;
|
|
143
274
|
flex-direction: row;
|
|
144
275
|
align-items: flex-start;
|
|
145
|
-
gap:
|
|
276
|
+
gap: var(--content-gap);
|
|
146
277
|
}
|
|
147
278
|
|
|
148
279
|
.ew-color-picker-panel {
|
|
149
|
-
border-radius:
|
|
280
|
+
border-radius: var(--panel-radius);
|
|
150
281
|
margin-bottom: 0;
|
|
151
282
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
152
283
|
display: inline-block;
|
|
@@ -173,21 +304,21 @@
|
|
|
173
304
|
}
|
|
174
305
|
|
|
175
306
|
.ew-color-picker-slider.ew-color-picker-is-vertical {
|
|
176
|
-
margin-left:
|
|
307
|
+
margin-left: var(--slider-gap);
|
|
177
308
|
margin-top: 0;
|
|
178
|
-
height:
|
|
309
|
+
height: var(--panel-height);
|
|
179
310
|
display: inline-block;
|
|
180
311
|
vertical-align: top;
|
|
181
312
|
}
|
|
182
313
|
|
|
183
314
|
.ew-color-picker-slider.ew-color-picker-is-horizontal {
|
|
184
|
-
margin-top:
|
|
315
|
+
margin-top: var(--slider-hue-top-margin);
|
|
185
316
|
margin-bottom: 0;
|
|
186
317
|
}
|
|
187
318
|
|
|
188
319
|
.ew-color-picker-slider.ew-color-picker-is-vertical .ew-color-picker-slider-bar {
|
|
189
320
|
background: linear-gradient(180deg, red, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
|
|
190
|
-
margin-left:
|
|
321
|
+
margin-left: var(--slider-hue-bg-offset);
|
|
191
322
|
}
|
|
192
323
|
|
|
193
324
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-slider-bar {
|
|
@@ -196,18 +327,18 @@
|
|
|
196
327
|
|
|
197
328
|
.ew-color-picker-slider.ew-color-picker-is-vertical .ew-color-picker-alpha-slider-bar,
|
|
198
329
|
.ew-color-picker-slider.ew-color-picker-is-vertical .ew-color-picker-slider-bar {
|
|
199
|
-
width:
|
|
330
|
+
width: var(--slider-width-v);
|
|
200
331
|
height: 100%;
|
|
201
332
|
}
|
|
202
333
|
|
|
203
334
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-alpha-slider-bar,
|
|
204
335
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-slider-bar {
|
|
205
336
|
width: 100%;
|
|
206
|
-
height:
|
|
337
|
+
height: var(--slider-height-h);
|
|
207
338
|
}
|
|
208
339
|
|
|
209
340
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-alpha-slider-bar {
|
|
210
|
-
margin-top:
|
|
341
|
+
margin-top: var(--slider-alpha-top-gap);
|
|
211
342
|
}
|
|
212
343
|
|
|
213
344
|
.ew-color-picker-alpha-slider-wrapper,
|
|
@@ -227,31 +358,31 @@
|
|
|
227
358
|
|
|
228
359
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-alpha-slider-thumb,
|
|
229
360
|
.ew-color-picker-slider.ew-color-picker-is-horizontal .ew-color-picker-slider-thumb {
|
|
230
|
-
width:
|
|
361
|
+
width: var(--thumb-size-h);
|
|
231
362
|
height: 100%;
|
|
232
363
|
}
|
|
233
364
|
|
|
234
365
|
.ew-color-picker-slider.ew-color-picker-is-vertical .ew-color-picker-alpha-slider-thumb,
|
|
235
366
|
.ew-color-picker-slider.ew-color-picker-is-vertical .ew-color-picker-slider-thumb {
|
|
236
|
-
width:
|
|
237
|
-
height:
|
|
367
|
+
width: var(--thumb-size-v-bar);
|
|
368
|
+
height: var(--thumb-size-v);
|
|
238
369
|
}
|
|
239
370
|
|
|
240
371
|
.ew-color-picker-panel-cursor {
|
|
241
372
|
left: 0;
|
|
242
373
|
top: 0;
|
|
243
374
|
cursor: default;
|
|
244
|
-
width:
|
|
245
|
-
height:
|
|
375
|
+
width: var(--cursor-size);
|
|
376
|
+
height: var(--cursor-size);
|
|
246
377
|
border-radius: 50%;
|
|
247
|
-
box-shadow: 0 0 0
|
|
378
|
+
box-shadow: 0 0 0 var(--cursor-ring) #fff, inset 0 0 2px 2px rgba(0, 0, 0, 0.4), 0 0 2px 3px rgba(0, 0, 0, 0.5);
|
|
248
379
|
transform: translate(-50%, -50%);
|
|
249
380
|
}
|
|
250
381
|
|
|
251
382
|
.ew-color-picker-drop-container {
|
|
252
|
-
margin-top:
|
|
253
|
-
padding-top:
|
|
254
|
-
min-height:
|
|
383
|
+
margin-top: var(--drop-container-margin-top);
|
|
384
|
+
padding-top: var(--drop-container-padding-top);
|
|
385
|
+
min-height: var(--drop-container-min-height);
|
|
255
386
|
border-top: 1px solid #cdcdcd;
|
|
256
387
|
}
|
|
257
388
|
|
|
@@ -267,8 +398,8 @@
|
|
|
267
398
|
display: flex;
|
|
268
399
|
align-items: center;
|
|
269
400
|
justify-content: space-between;
|
|
270
|
-
gap:
|
|
271
|
-
margin-top:
|
|
401
|
+
gap: var(--bottom-row-gap);
|
|
402
|
+
margin-top: var(--bottom-row-margin-top);
|
|
272
403
|
}
|
|
273
404
|
|
|
274
405
|
.ew-color-picker-bottom-row input {
|
|
@@ -283,18 +414,18 @@
|
|
|
283
414
|
}
|
|
284
415
|
|
|
285
416
|
.ew-color-picker-drop-btn-group button {
|
|
286
|
-
min-width:
|
|
417
|
+
min-width: var(--btn-min-width);
|
|
287
418
|
box-sizing: border-box;
|
|
288
419
|
}
|
|
289
420
|
|
|
290
421
|
.ew-color-picker-input {
|
|
291
422
|
width: 100%;
|
|
292
|
-
height:
|
|
293
|
-
line-height:
|
|
423
|
+
height: var(--input-height);
|
|
424
|
+
line-height: var(--input-line-height);
|
|
294
425
|
border: 1px solid #dcdfe6;
|
|
295
|
-
border-radius:
|
|
296
|
-
padding:
|
|
297
|
-
font-size:
|
|
426
|
+
border-radius: var(--input-radius);
|
|
427
|
+
padding: var(--input-padding);
|
|
428
|
+
font-size: var(--input-font-size);
|
|
298
429
|
transition: border-color 0.2s;
|
|
299
430
|
outline: none;
|
|
300
431
|
box-sizing: border-box;
|
|
@@ -305,9 +436,9 @@
|
|
|
305
436
|
}
|
|
306
437
|
|
|
307
438
|
.ew-color-picker-drop-btn {
|
|
308
|
-
padding:
|
|
309
|
-
font-size:
|
|
310
|
-
border-radius:
|
|
439
|
+
padding: var(--btn-padding);
|
|
440
|
+
font-size: var(--btn-font-size);
|
|
441
|
+
border-radius: var(--btn-radius);
|
|
311
442
|
transition: 0.1s;
|
|
312
443
|
font-weight: 500;
|
|
313
444
|
margin: 0;
|
|
@@ -339,17 +470,17 @@
|
|
|
339
470
|
.ew-color-picker-predefine-container {
|
|
340
471
|
display: flex;
|
|
341
472
|
flex-wrap: wrap;
|
|
342
|
-
gap:
|
|
473
|
+
gap: var(--predefine-gap);
|
|
343
474
|
width: 100%;
|
|
344
|
-
font-size:
|
|
345
|
-
margin-top:
|
|
475
|
+
font-size: var(--predefine-font-size);
|
|
476
|
+
margin-top: var(--predefine-margin-top);
|
|
346
477
|
}
|
|
347
478
|
|
|
348
479
|
.ew-color-picker-predefine-color {
|
|
349
480
|
margin: 0;
|
|
350
|
-
width:
|
|
351
|
-
height:
|
|
352
|
-
border-radius:
|
|
481
|
+
width: var(--predefine-item-size);
|
|
482
|
+
height: var(--predefine-item-size);
|
|
483
|
+
border-radius: var(--predefine-item-radius);
|
|
353
484
|
border: 1px solid #9b979b;
|
|
354
485
|
}
|
|
355
486
|
|
|
@@ -573,52 +704,52 @@
|
|
|
573
704
|
display: flex;
|
|
574
705
|
align-items: center;
|
|
575
706
|
justify-content: center;
|
|
576
|
-
gap:
|
|
577
|
-
margin-top:
|
|
578
|
-
margin-bottom:
|
|
579
|
-
padding:
|
|
707
|
+
gap: var(--mode-container-gap);
|
|
708
|
+
margin-top: var(--mode-container-margin-top);
|
|
709
|
+
margin-bottom: var(--mode-container-margin-bottom);
|
|
710
|
+
padding: var(--mode-container-padding);
|
|
580
711
|
border: 1px solid #e5e6eb;
|
|
581
|
-
border-radius:
|
|
712
|
+
border-radius: var(--mode-container-radius);
|
|
582
713
|
background-color: #fafafa;
|
|
583
714
|
}
|
|
584
715
|
|
|
585
716
|
.ew-color-picker-mode-up-btn,
|
|
586
717
|
.ew-color-picker-mode-down-btn {
|
|
587
|
-
width:
|
|
588
|
-
height:
|
|
589
|
-
flex: 0 0
|
|
718
|
+
width: var(--mode-btn-size);
|
|
719
|
+
height: var(--mode-btn-size);
|
|
720
|
+
flex: 0 0 var(--mode-btn-size);
|
|
590
721
|
border: 1px solid #ddd;
|
|
591
722
|
background: #fff;
|
|
592
723
|
cursor: pointer;
|
|
593
724
|
display: flex;
|
|
594
725
|
align-items: center;
|
|
595
726
|
justify-content: center;
|
|
596
|
-
border-radius:
|
|
727
|
+
border-radius: var(--mode-btn-radius);
|
|
597
728
|
transition: all 0.2s;
|
|
598
729
|
}
|
|
599
730
|
|
|
600
731
|
/* 防止图标在 flex 布局中被压缩到 0 宽度 */
|
|
601
732
|
.ew-color-picker-mode-up-btn svg,
|
|
602
733
|
.ew-color-picker-mode-down-btn svg {
|
|
603
|
-
width:
|
|
604
|
-
height:
|
|
605
|
-
flex: 0 0
|
|
734
|
+
width: var(--mode-btn-icon-size);
|
|
735
|
+
height: var(--mode-btn-icon-size);
|
|
736
|
+
flex: 0 0 var(--mode-btn-icon-size);
|
|
606
737
|
}
|
|
607
738
|
|
|
608
739
|
.ew-color-picker-mode-text {
|
|
609
|
-
min-width:
|
|
740
|
+
min-width: var(--mode-text-min-width);
|
|
610
741
|
text-align: center;
|
|
611
|
-
font-size:
|
|
742
|
+
font-size: var(--mode-text-font-size);
|
|
612
743
|
font-weight: bold;
|
|
613
744
|
color: #333;
|
|
614
745
|
user-select: none;
|
|
615
|
-
padding:
|
|
746
|
+
padding: var(--mode-text-padding);
|
|
616
747
|
}
|
|
617
748
|
|
|
618
749
|
.ew-color-picker-inputs-group {
|
|
619
750
|
display: flex;
|
|
620
751
|
flex-direction: row;
|
|
621
|
-
gap:
|
|
752
|
+
gap: var(--inputs-group-gap);
|
|
622
753
|
align-items: flex-end;
|
|
623
754
|
margin-bottom: 0;
|
|
624
755
|
width: 100%;
|
|
@@ -633,14 +764,14 @@
|
|
|
633
764
|
}
|
|
634
765
|
|
|
635
766
|
.ew-color-picker-input-label {
|
|
636
|
-
font-size:
|
|
767
|
+
font-size: var(--inputs-label-font-size);
|
|
637
768
|
color: #666;
|
|
638
769
|
text-align: center;
|
|
639
|
-
margin-bottom:
|
|
770
|
+
margin-bottom: var(--inputs-label-margin-bottom);
|
|
640
771
|
letter-spacing: 1px;
|
|
641
772
|
font-weight: bold;
|
|
642
|
-
height:
|
|
643
|
-
line-height:
|
|
773
|
+
height: var(--inputs-label-height);
|
|
774
|
+
line-height: var(--inputs-label-line-height);
|
|
644
775
|
user-select: none;
|
|
645
776
|
}
|
|
646
777
|
|
|
@@ -651,10 +782,10 @@
|
|
|
651
782
|
|
|
652
783
|
.ew-color-picker-input-default {
|
|
653
784
|
width: 100%;
|
|
654
|
-
padding:
|
|
785
|
+
padding: var(--default-input-padding);
|
|
655
786
|
border: 1px solid #ddd;
|
|
656
787
|
border-radius: 4px;
|
|
657
|
-
font-size:
|
|
788
|
+
font-size: var(--default-input-font-size);
|
|
658
789
|
text-align: center;
|
|
659
790
|
}
|
|
660
791
|
|
|
@@ -663,7 +794,7 @@
|
|
|
663
794
|
justify-content: center;
|
|
664
795
|
gap: 8px;
|
|
665
796
|
width: 100%;
|
|
666
|
-
margin-top:
|
|
797
|
+
margin-top: var(--bottom-row-margin-top);
|
|
667
798
|
}
|
|
668
799
|
|
|
669
800
|
.ew-color-picker-drop-btn-group-single {
|
|
@@ -719,11 +850,11 @@
|
|
|
719
850
|
.ew-color-picker-panel-container .ew-color-picker-inputs-group {
|
|
720
851
|
display: flex;
|
|
721
852
|
width: 100%;
|
|
722
|
-
max-width:
|
|
723
|
-
min-width:
|
|
724
|
-
gap:
|
|
853
|
+
max-width: var(--color-inputs-max-width);
|
|
854
|
+
min-width: var(--color-inputs-min-width);
|
|
855
|
+
gap: var(--color-inputs-gap);
|
|
725
856
|
justify-content: center;
|
|
726
|
-
margin-bottom:
|
|
857
|
+
margin-bottom: var(--color-inputs-margin-bottom);
|
|
727
858
|
box-sizing: border-box;
|
|
728
859
|
}
|
|
729
860
|
|
|
@@ -731,25 +862,25 @@
|
|
|
731
862
|
.ew-color-picker-panel-container .ew-color-picker-hsl-s-input,
|
|
732
863
|
.ew-color-picker-panel-container .ew-color-picker-hsl-l-input,
|
|
733
864
|
.ew-color-picker-panel-container .ew-color-picker-hsl-a-input {
|
|
734
|
-
height:
|
|
735
|
-
min-height:
|
|
736
|
-
max-height:
|
|
865
|
+
height: var(--hsl-input-height);
|
|
866
|
+
min-height: var(--hsl-input-height);
|
|
867
|
+
max-height: var(--hsl-input-height);
|
|
737
868
|
box-sizing: border-box;
|
|
738
869
|
}
|
|
739
870
|
|
|
740
871
|
.ew-color-picker-panel-container .ew-color-picker-hsl-h-input.ew-input-number,
|
|
741
872
|
.ew-color-picker-panel-container .ew-color-picker-hsl-a-input.ew-input-number {
|
|
742
|
-
height:
|
|
743
|
-
min-height:
|
|
744
|
-
max-height:
|
|
873
|
+
height: var(--hsl-input-height);
|
|
874
|
+
min-height: var(--hsl-input-height);
|
|
875
|
+
max-height: var(--hsl-input-height);
|
|
745
876
|
}
|
|
746
877
|
|
|
747
878
|
.ew-color-picker-panel-container .ew-color-picker-hsl-s-input.ew-color-picker-input,
|
|
748
879
|
.ew-color-picker-panel-container .ew-color-picker-hsl-l-input.ew-color-picker-input {
|
|
749
|
-
height:
|
|
750
|
-
min-height:
|
|
751
|
-
max-height:
|
|
752
|
-
line-height:
|
|
880
|
+
height: var(--hsl-input-height);
|
|
881
|
+
min-height: var(--hsl-input-height);
|
|
882
|
+
max-height: var(--hsl-input-height);
|
|
883
|
+
line-height: var(--hsl-input-height);
|
|
753
884
|
width: 100%;
|
|
754
885
|
}
|
|
755
886
|
|
|
@@ -757,8 +888,8 @@
|
|
|
757
888
|
display: flex;
|
|
758
889
|
align-items: center;
|
|
759
890
|
justify-content: flex-start;
|
|
760
|
-
gap:
|
|
761
|
-
margin-top:
|
|
891
|
+
gap: var(--extra-row-gap);
|
|
892
|
+
margin-top: var(--extra-row-margin-top);
|
|
762
893
|
}
|
|
763
894
|
|
|
764
895
|
.ew-color-picker-eyedropper-group {
|
|
@@ -772,10 +903,10 @@
|
|
|
772
903
|
align-items: center;
|
|
773
904
|
justify-content: center;
|
|
774
905
|
gap: 4px;
|
|
775
|
-
height:
|
|
776
|
-
padding:
|
|
906
|
+
height: var(--eyedropper-btn-height);
|
|
907
|
+
padding: var(--eyedropper-btn-padding);
|
|
777
908
|
box-sizing: border-box;
|
|
778
|
-
font-size:
|
|
909
|
+
font-size: var(--default-input-font-size);
|
|
779
910
|
line-height: 1;
|
|
780
911
|
color: #606266;
|
|
781
912
|
background: transparent;
|
|
@@ -798,8 +929,8 @@
|
|
|
798
929
|
|
|
799
930
|
.ew-color-picker-eyedropper-btn .ew-color-picker-icon {
|
|
800
931
|
display: block;
|
|
801
|
-
width:
|
|
802
|
-
height:
|
|
932
|
+
width: var(--eyedropper-btn-icon);
|
|
933
|
+
height: var(--eyedropper-btn-icon);
|
|
803
934
|
}
|
|
804
935
|
|
|
805
936
|
.ew-color-picker-copy-group {
|
|
@@ -813,9 +944,9 @@
|
|
|
813
944
|
display: inline-flex;
|
|
814
945
|
align-items: center;
|
|
815
946
|
justify-content: center;
|
|
816
|
-
width:
|
|
817
|
-
height:
|
|
818
|
-
flex: 0 0
|
|
947
|
+
width: var(--copy-btn-size);
|
|
948
|
+
height: var(--copy-btn-size);
|
|
949
|
+
flex: 0 0 var(--copy-btn-size);
|
|
819
950
|
padding: 0;
|
|
820
951
|
box-sizing: border-box;
|
|
821
952
|
border: 1px solid #dcdfe6;
|
|
@@ -844,8 +975,8 @@
|
|
|
844
975
|
|
|
845
976
|
.ew-color-picker-copy-btn .ew-color-picker-icon {
|
|
846
977
|
display: block;
|
|
847
|
-
width:
|
|
848
|
-
height:
|
|
978
|
+
width: var(--copy-btn-icon);
|
|
979
|
+
height: var(--copy-btn-icon);
|
|
849
980
|
}
|
|
850
981
|
|
|
851
982
|
.ew-color-picker-copy-tip {
|
|
@@ -880,9 +1011,9 @@
|
|
|
880
1011
|
flex-direction: column;
|
|
881
1012
|
gap: 6px;
|
|
882
1013
|
width: 100%;
|
|
883
|
-
margin-top:
|
|
1014
|
+
margin-top: var(--gradient-label-margin-top);
|
|
884
1015
|
box-sizing: border-box;
|
|
885
|
-
font-size:
|
|
1016
|
+
font-size: var(--gradient-label-font-size);
|
|
886
1017
|
}
|
|
887
1018
|
|
|
888
1019
|
.ew-gradient-preview {
|
|
@@ -893,9 +1024,9 @@
|
|
|
893
1024
|
|
|
894
1025
|
.ew-gradient-preview-bar {
|
|
895
1026
|
position: relative;
|
|
896
|
-
height:
|
|
1027
|
+
height: var(--gradient-bar-height);
|
|
897
1028
|
border: 1px solid #e5e6eb;
|
|
898
|
-
border-radius:
|
|
1029
|
+
border-radius: var(--gradient-bar-radius);
|
|
899
1030
|
box-sizing: border-box;
|
|
900
1031
|
cursor: crosshair;
|
|
901
1032
|
}
|
|
@@ -903,8 +1034,8 @@
|
|
|
903
1034
|
.ew-gradient-handle {
|
|
904
1035
|
position: absolute;
|
|
905
1036
|
top: 50%;
|
|
906
|
-
width:
|
|
907
|
-
height:
|
|
1037
|
+
width: var(--gradient-handle-size);
|
|
1038
|
+
height: var(--gradient-handle-size);
|
|
908
1039
|
padding: 0;
|
|
909
1040
|
margin: 0;
|
|
910
1041
|
border: 2px solid #fff;
|
|
@@ -926,14 +1057,14 @@
|
|
|
926
1057
|
display: flex;
|
|
927
1058
|
align-items: center;
|
|
928
1059
|
flex-wrap: wrap;
|
|
929
|
-
gap:
|
|
930
|
-
min-height:
|
|
1060
|
+
gap: var(--gradient-row-gap);
|
|
1061
|
+
min-height: var(--gradient-row-min-height);
|
|
931
1062
|
}
|
|
932
1063
|
|
|
933
1064
|
.ew-gradient-label {
|
|
934
1065
|
color: #666;
|
|
935
|
-
font-size:
|
|
936
|
-
line-height:
|
|
1066
|
+
font-size: var(--gradient-label-font-size);
|
|
1067
|
+
line-height: var(--gradient-label-line-height);
|
|
937
1068
|
white-space: nowrap;
|
|
938
1069
|
}
|
|
939
1070
|
|
|
@@ -950,12 +1081,12 @@
|
|
|
950
1081
|
.ew-gradient-text {
|
|
951
1082
|
flex: 1;
|
|
952
1083
|
min-width: 0;
|
|
953
|
-
height:
|
|
1084
|
+
height: var(--gradient-text-height);
|
|
954
1085
|
padding: 0 6px;
|
|
955
1086
|
border: 1px solid #d9d9d9;
|
|
956
1087
|
border-radius: 6px;
|
|
957
1088
|
box-sizing: border-box;
|
|
958
|
-
font-size:
|
|
1089
|
+
font-size: var(--gradient-text-font-size);
|
|
959
1090
|
outline: none;
|
|
960
1091
|
}
|
|
961
1092
|
|
|
@@ -966,13 +1097,13 @@
|
|
|
966
1097
|
|
|
967
1098
|
.ew-gradient-btn {
|
|
968
1099
|
flex: none;
|
|
969
|
-
height:
|
|
1100
|
+
height: var(--gradient-btn-height);
|
|
970
1101
|
padding: 0 6px;
|
|
971
1102
|
border: 1px solid #d9d9d9;
|
|
972
1103
|
border-radius: 6px;
|
|
973
1104
|
background: #fff;
|
|
974
1105
|
color: #333;
|
|
975
|
-
font-size:
|
|
1106
|
+
font-size: var(--gradient-btn-font-size);
|
|
976
1107
|
line-height: 1;
|
|
977
1108
|
cursor: pointer;
|
|
978
1109
|
transition: border-color 0.2s, color 0.2s, transform 0.2s;
|
|
@@ -995,4 +1126,416 @@
|
|
|
995
1126
|
.ew-gradient-container .ew-input-number__buttons {
|
|
996
1127
|
width: 24px;
|
|
997
1128
|
min-width: 24px;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.ew-color-picker-panel-mini {
|
|
1132
|
+
--container-padding: 6px;
|
|
1133
|
+
--container-margin-top: 6px;
|
|
1134
|
+
--container-min-width: 220px;
|
|
1135
|
+
--container-radius: 8px;
|
|
1136
|
+
--panel-radius: 6px;
|
|
1137
|
+
--content-gap: 8px;
|
|
1138
|
+
--slider-width-v: 9px;
|
|
1139
|
+
--slider-height-h: 9px;
|
|
1140
|
+
--slider-gap: 3px;
|
|
1141
|
+
--slider-hue-bg-offset: 2px;
|
|
1142
|
+
--slider-alpha-top-gap: 2px;
|
|
1143
|
+
--slider-hue-top-margin: 5px;
|
|
1144
|
+
--thumb-size-v: 3px;
|
|
1145
|
+
--thumb-size-v-bar: 9px;
|
|
1146
|
+
--thumb-size-h: 3px;
|
|
1147
|
+
--cursor-size: 3px;
|
|
1148
|
+
--cursor-ring: 2px;
|
|
1149
|
+
--drop-container-margin-top: 4px;
|
|
1150
|
+
--drop-container-padding-top: 3px;
|
|
1151
|
+
--drop-container-min-height: 22px;
|
|
1152
|
+
--bottom-row-gap: 5px;
|
|
1153
|
+
--bottom-row-margin-top: 5px;
|
|
1154
|
+
--mode-container-gap: 4px;
|
|
1155
|
+
--mode-container-padding: 4px;
|
|
1156
|
+
--mode-container-margin-top: 4px;
|
|
1157
|
+
--mode-container-margin-bottom: 6px;
|
|
1158
|
+
--mode-container-radius: 4px;
|
|
1159
|
+
--mode-title-font-size: 11px;
|
|
1160
|
+
--mode-btn-size: 18px;
|
|
1161
|
+
--mode-btn-icon-size: 10px;
|
|
1162
|
+
--mode-btn-radius: 2px;
|
|
1163
|
+
--mode-arrow-size: 4px;
|
|
1164
|
+
--mode-text-font-size: 10px;
|
|
1165
|
+
--mode-text-min-width: 36px;
|
|
1166
|
+
--mode-text-padding: 0 2px;
|
|
1167
|
+
--input-height: 24px;
|
|
1168
|
+
--input-line-height: 24px;
|
|
1169
|
+
--input-font-size: 11px;
|
|
1170
|
+
--input-padding: 0 6px;
|
|
1171
|
+
--input-radius: 4px;
|
|
1172
|
+
--default-input-height: 22px;
|
|
1173
|
+
--default-input-padding: 3px 6px;
|
|
1174
|
+
--default-input-font-size: 11px;
|
|
1175
|
+
--btn-padding: 3px;
|
|
1176
|
+
--btn-font-size: 11px;
|
|
1177
|
+
--btn-radius: 2px;
|
|
1178
|
+
--btn-min-width: 44px;
|
|
1179
|
+
--predefine-item-size: 14px;
|
|
1180
|
+
--predefine-item-radius: 3px;
|
|
1181
|
+
--predefine-gap: 5px;
|
|
1182
|
+
--predefine-margin-top: 8px;
|
|
1183
|
+
--predefine-font-size: 11px;
|
|
1184
|
+
--extra-row-gap: 5px;
|
|
1185
|
+
--extra-row-margin-top: 5px;
|
|
1186
|
+
--eyedropper-btn-height: 22px;
|
|
1187
|
+
--eyedropper-btn-padding: 0 4px;
|
|
1188
|
+
--eyedropper-btn-icon: 12px;
|
|
1189
|
+
--copy-btn-size: 22px;
|
|
1190
|
+
--copy-btn-icon: 11px;
|
|
1191
|
+
--gradient-bar-height: 10px;
|
|
1192
|
+
--gradient-bar-radius: 5px;
|
|
1193
|
+
--gradient-handle-size: 10px;
|
|
1194
|
+
--gradient-row-gap: 3px;
|
|
1195
|
+
--gradient-row-min-height: 20px;
|
|
1196
|
+
--gradient-label-font-size: 11px;
|
|
1197
|
+
--gradient-label-line-height: 20px;
|
|
1198
|
+
--gradient-text-height: 20px;
|
|
1199
|
+
--gradient-text-font-size: 11px;
|
|
1200
|
+
--gradient-btn-height: 20px;
|
|
1201
|
+
--gradient-btn-font-size: 11px;
|
|
1202
|
+
--gradient-label-margin-top: 5px;
|
|
1203
|
+
--gradient-stop-number-width: 44px;
|
|
1204
|
+
--inputs-group-gap: 3px;
|
|
1205
|
+
--inputs-label-font-size: 11px;
|
|
1206
|
+
--inputs-label-height: 15px;
|
|
1207
|
+
--inputs-label-line-height: 15px;
|
|
1208
|
+
--inputs-label-margin-bottom: 1px;
|
|
1209
|
+
--hsl-input-height: 24px;
|
|
1210
|
+
--input-number-height: 24px;
|
|
1211
|
+
--input-number-border-width: 1px;
|
|
1212
|
+
--input-number-radius: 3px;
|
|
1213
|
+
--input-number-input-padding: 2px 4px;
|
|
1214
|
+
--input-number-input-font-size: 11px;
|
|
1215
|
+
--input-number-buttons-width: 18px;
|
|
1216
|
+
--input-number-buttons-min-width: 16px;
|
|
1217
|
+
--input-number-icon-size: 6px;
|
|
1218
|
+
--select-height: 24px;
|
|
1219
|
+
--select-border-width: 1px;
|
|
1220
|
+
--select-radius: 3px;
|
|
1221
|
+
--select-padding: 0 5px;
|
|
1222
|
+
--select-font-size: 11px;
|
|
1223
|
+
--select-arrow-size: 8px;
|
|
1224
|
+
--select-clear-size: 8px;
|
|
1225
|
+
--checkbox-gap: 3px;
|
|
1226
|
+
--checkbox-font-size: 10px;
|
|
1227
|
+
--checkbox-border-width: 1px;
|
|
1228
|
+
--checkbox-box-size: 11px;
|
|
1229
|
+
--checkbox-box-radius: 2px;
|
|
1230
|
+
--checkbox-icon-size: 7px;
|
|
1231
|
+
--mode-new-container-gap: 5px;
|
|
1232
|
+
--mode-new-btn-size: 20px;
|
|
1233
|
+
--mode-new-btn-icon: 12px;
|
|
1234
|
+
--color-inputs-max-width: 220px;
|
|
1235
|
+
--color-inputs-min-width: 200px;
|
|
1236
|
+
--color-inputs-gap: 4px;
|
|
1237
|
+
--color-inputs-margin-bottom: 5px;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.ew-color-picker-panel-small {
|
|
1241
|
+
--container-padding: 8px;
|
|
1242
|
+
--container-margin-top: 7px;
|
|
1243
|
+
--container-min-width: 260px;
|
|
1244
|
+
--container-radius: 9px;
|
|
1245
|
+
--panel-radius: 7px;
|
|
1246
|
+
--content-gap: 10px;
|
|
1247
|
+
--slider-width-v: 10px;
|
|
1248
|
+
--slider-height-h: 10px;
|
|
1249
|
+
--slider-gap: 3px;
|
|
1250
|
+
--slider-hue-bg-offset: 2px;
|
|
1251
|
+
--slider-alpha-top-gap: 2px;
|
|
1252
|
+
--slider-hue-top-margin: 6px;
|
|
1253
|
+
--thumb-size-v: 3px;
|
|
1254
|
+
--thumb-size-v-bar: 10px;
|
|
1255
|
+
--thumb-size-h: 3px;
|
|
1256
|
+
--cursor-size: 3px;
|
|
1257
|
+
--cursor-ring: 2px;
|
|
1258
|
+
--drop-container-margin-top: 5px;
|
|
1259
|
+
--drop-container-padding-top: 3px;
|
|
1260
|
+
--drop-container-min-height: 25px;
|
|
1261
|
+
--bottom-row-gap: 6px;
|
|
1262
|
+
--bottom-row-margin-top: 6px;
|
|
1263
|
+
--mode-container-gap: 5px;
|
|
1264
|
+
--mode-container-padding: 5px;
|
|
1265
|
+
--mode-container-margin-top: 5px;
|
|
1266
|
+
--mode-container-margin-bottom: 8px;
|
|
1267
|
+
--mode-container-radius: 5px;
|
|
1268
|
+
--mode-title-font-size: 12px;
|
|
1269
|
+
--mode-btn-size: 20px;
|
|
1270
|
+
--mode-btn-icon-size: 12px;
|
|
1271
|
+
--mode-btn-radius: 3px;
|
|
1272
|
+
--mode-arrow-size: 5px;
|
|
1273
|
+
--mode-text-font-size: 12px;
|
|
1274
|
+
--mode-text-min-width: 46px;
|
|
1275
|
+
--mode-text-padding: 0 4px;
|
|
1276
|
+
--input-height: 28px;
|
|
1277
|
+
--input-line-height: 28px;
|
|
1278
|
+
--input-font-size: 12px;
|
|
1279
|
+
--input-padding: 0 7px;
|
|
1280
|
+
--input-radius: 4px;
|
|
1281
|
+
--default-input-height: 25px;
|
|
1282
|
+
--default-input-padding: 3px 7px;
|
|
1283
|
+
--default-input-font-size: 11px;
|
|
1284
|
+
--btn-padding: 4px;
|
|
1285
|
+
--btn-font-size: 11px;
|
|
1286
|
+
--btn-radius: 2px;
|
|
1287
|
+
--btn-min-width: 50px;
|
|
1288
|
+
--predefine-item-size: 17px;
|
|
1289
|
+
--predefine-item-radius: 3px;
|
|
1290
|
+
--predefine-gap: 6px;
|
|
1291
|
+
--predefine-margin-top: 10px;
|
|
1292
|
+
--predefine-font-size: 11px;
|
|
1293
|
+
--extra-row-gap: 6px;
|
|
1294
|
+
--extra-row-margin-top: 6px;
|
|
1295
|
+
--eyedropper-btn-height: 25px;
|
|
1296
|
+
--eyedropper-btn-padding: 0 5px;
|
|
1297
|
+
--eyedropper-btn-icon: 14px;
|
|
1298
|
+
--copy-btn-size: 25px;
|
|
1299
|
+
--copy-btn-icon: 12px;
|
|
1300
|
+
--gradient-bar-height: 12px;
|
|
1301
|
+
--gradient-bar-radius: 6px;
|
|
1302
|
+
--gradient-handle-size: 12px;
|
|
1303
|
+
--gradient-row-gap: 3px;
|
|
1304
|
+
--gradient-row-min-height: 22px;
|
|
1305
|
+
--gradient-label-font-size: 11px;
|
|
1306
|
+
--gradient-label-line-height: 22px;
|
|
1307
|
+
--gradient-text-height: 22px;
|
|
1308
|
+
--gradient-text-font-size: 11px;
|
|
1309
|
+
--gradient-btn-height: 22px;
|
|
1310
|
+
--gradient-btn-font-size: 11px;
|
|
1311
|
+
--gradient-label-margin-top: 6px;
|
|
1312
|
+
--gradient-stop-number-width: 50px;
|
|
1313
|
+
--inputs-group-gap: 3px;
|
|
1314
|
+
--inputs-label-font-size: 11px;
|
|
1315
|
+
--inputs-label-height: 16px;
|
|
1316
|
+
--inputs-label-line-height: 16px;
|
|
1317
|
+
--inputs-label-margin-bottom: 1px;
|
|
1318
|
+
--hsl-input-height: 28px;
|
|
1319
|
+
--input-number-height: 28px;
|
|
1320
|
+
--input-number-border-width: 1px;
|
|
1321
|
+
--input-number-radius: 4px;
|
|
1322
|
+
--input-number-input-padding: 3px 5px;
|
|
1323
|
+
--input-number-input-font-size: 12px;
|
|
1324
|
+
--input-number-buttons-width: 22px;
|
|
1325
|
+
--input-number-buttons-min-width: 18px;
|
|
1326
|
+
--input-number-icon-size: 7px;
|
|
1327
|
+
--select-height: 28px;
|
|
1328
|
+
--select-border-width: 1px;
|
|
1329
|
+
--select-radius: 4px;
|
|
1330
|
+
--select-padding: 0 6px;
|
|
1331
|
+
--select-font-size: 12px;
|
|
1332
|
+
--select-arrow-size: 9px;
|
|
1333
|
+
--select-clear-size: 9px;
|
|
1334
|
+
--checkbox-gap: 4px;
|
|
1335
|
+
--checkbox-font-size: 11px;
|
|
1336
|
+
--checkbox-border-width: 1px;
|
|
1337
|
+
--checkbox-box-size: 13px;
|
|
1338
|
+
--checkbox-box-radius: 3px;
|
|
1339
|
+
--checkbox-icon-size: 8px;
|
|
1340
|
+
--mode-new-container-gap: 6px;
|
|
1341
|
+
--mode-new-btn-size: 22px;
|
|
1342
|
+
--mode-new-btn-icon: 14px;
|
|
1343
|
+
--color-inputs-max-width: 260px;
|
|
1344
|
+
--color-inputs-min-width: 230px;
|
|
1345
|
+
--color-inputs-gap: 5px;
|
|
1346
|
+
--color-inputs-margin-bottom: 6px;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.ew-color-picker-panel-medium {
|
|
1350
|
+
--container-padding: 9px;
|
|
1351
|
+
--container-margin-top: 7px;
|
|
1352
|
+
--container-min-width: 290px;
|
|
1353
|
+
--container-radius: 9px;
|
|
1354
|
+
--panel-radius: 7px;
|
|
1355
|
+
--content-gap: 11px;
|
|
1356
|
+
--slider-width-v: 11px;
|
|
1357
|
+
--slider-height-h: 11px;
|
|
1358
|
+
--slider-gap: 4px;
|
|
1359
|
+
--slider-hue-bg-offset: 3px;
|
|
1360
|
+
--slider-alpha-top-gap: 3px;
|
|
1361
|
+
--slider-hue-top-margin: 7px;
|
|
1362
|
+
--thumb-size-v: 4px;
|
|
1363
|
+
--thumb-size-v-bar: 11px;
|
|
1364
|
+
--thumb-size-h: 4px;
|
|
1365
|
+
--cursor-size: 4px;
|
|
1366
|
+
--cursor-ring: 3px;
|
|
1367
|
+
--drop-container-margin-top: 5px;
|
|
1368
|
+
--drop-container-padding-top: 3px;
|
|
1369
|
+
--drop-container-min-height: 26px;
|
|
1370
|
+
--bottom-row-gap: 7px;
|
|
1371
|
+
--bottom-row-margin-top: 7px;
|
|
1372
|
+
--mode-container-gap: 7px;
|
|
1373
|
+
--mode-container-padding: 7px;
|
|
1374
|
+
--mode-container-margin-top: 7px;
|
|
1375
|
+
--mode-container-margin-bottom: 11px;
|
|
1376
|
+
--mode-container-radius: 6px;
|
|
1377
|
+
--mode-title-font-size: 15px;
|
|
1378
|
+
--mode-btn-size: 23px;
|
|
1379
|
+
--mode-btn-icon-size: 15px;
|
|
1380
|
+
--mode-btn-radius: 4px;
|
|
1381
|
+
--mode-arrow-size: 6px;
|
|
1382
|
+
--mode-text-font-size: 13px;
|
|
1383
|
+
--mode-text-min-width: 54px;
|
|
1384
|
+
--mode-text-padding: 0 6px;
|
|
1385
|
+
--input-height: 30px;
|
|
1386
|
+
--input-line-height: 30px;
|
|
1387
|
+
--input-font-size: 13px;
|
|
1388
|
+
--input-padding: 0 7px;
|
|
1389
|
+
--input-radius: 5px;
|
|
1390
|
+
--default-input-height: 26px;
|
|
1391
|
+
--default-input-padding: 4px 7px;
|
|
1392
|
+
--default-input-font-size: 12px;
|
|
1393
|
+
--btn-padding: 4px;
|
|
1394
|
+
--btn-font-size: 12px;
|
|
1395
|
+
--btn-radius: 3px;
|
|
1396
|
+
--btn-min-width: 55px;
|
|
1397
|
+
--predefine-item-size: 18px;
|
|
1398
|
+
--predefine-item-radius: 4px;
|
|
1399
|
+
--predefine-gap: 7px;
|
|
1400
|
+
--predefine-margin-top: 11px;
|
|
1401
|
+
--predefine-font-size: 12px;
|
|
1402
|
+
--extra-row-gap: 7px;
|
|
1403
|
+
--extra-row-margin-top: 7px;
|
|
1404
|
+
--eyedropper-btn-height: 26px;
|
|
1405
|
+
--eyedropper-btn-padding: 0 5px;
|
|
1406
|
+
--eyedropper-btn-icon: 15px;
|
|
1407
|
+
--copy-btn-size: 26px;
|
|
1408
|
+
--copy-btn-icon: 13px;
|
|
1409
|
+
--gradient-bar-height: 13px;
|
|
1410
|
+
--gradient-bar-radius: 6px;
|
|
1411
|
+
--gradient-handle-size: 13px;
|
|
1412
|
+
--gradient-row-gap: 4px;
|
|
1413
|
+
--gradient-row-min-height: 23px;
|
|
1414
|
+
--gradient-label-font-size: 12px;
|
|
1415
|
+
--gradient-label-line-height: 23px;
|
|
1416
|
+
--gradient-text-height: 23px;
|
|
1417
|
+
--gradient-text-font-size: 12px;
|
|
1418
|
+
--gradient-btn-height: 23px;
|
|
1419
|
+
--gradient-btn-font-size: 12px;
|
|
1420
|
+
--gradient-label-margin-top: 7px;
|
|
1421
|
+
--gradient-stop-number-width: 54px;
|
|
1422
|
+
--inputs-group-gap: 4px;
|
|
1423
|
+
--inputs-label-font-size: 12px;
|
|
1424
|
+
--inputs-label-height: 17px;
|
|
1425
|
+
--inputs-label-line-height: 17px;
|
|
1426
|
+
--inputs-label-margin-bottom: 2px;
|
|
1427
|
+
--hsl-input-height: 30px;
|
|
1428
|
+
--input-number-height: 30px;
|
|
1429
|
+
--input-number-border-width: 1px;
|
|
1430
|
+
--input-number-radius: 4px;
|
|
1431
|
+
--input-number-input-padding: 3px 6px;
|
|
1432
|
+
--input-number-input-font-size: 13px;
|
|
1433
|
+
--input-number-buttons-width: 24px;
|
|
1434
|
+
--input-number-buttons-min-width: 20px;
|
|
1435
|
+
--input-number-icon-size: 7px;
|
|
1436
|
+
--select-height: 30px;
|
|
1437
|
+
--select-border-width: 1px;
|
|
1438
|
+
--select-radius: 4px;
|
|
1439
|
+
--select-padding: 0 7px;
|
|
1440
|
+
--select-font-size: 12px;
|
|
1441
|
+
--select-arrow-size: 9px;
|
|
1442
|
+
--select-clear-size: 9px;
|
|
1443
|
+
--checkbox-gap: 4px;
|
|
1444
|
+
--checkbox-font-size: 11px;
|
|
1445
|
+
--checkbox-border-width: 1px;
|
|
1446
|
+
--checkbox-box-size: 14px;
|
|
1447
|
+
--checkbox-box-radius: 3px;
|
|
1448
|
+
--checkbox-icon-size: 8px;
|
|
1449
|
+
--mode-new-container-gap: 7px;
|
|
1450
|
+
--mode-new-btn-size: 23px;
|
|
1451
|
+
--mode-new-btn-icon: 15px;
|
|
1452
|
+
--color-inputs-max-width: 290px;
|
|
1453
|
+
--color-inputs-min-width: 260px;
|
|
1454
|
+
--color-inputs-gap: 6px;
|
|
1455
|
+
--color-inputs-margin-bottom: 7px;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.ew-color-picker-panel-mini .ew-color-picker-inputs-group,
|
|
1459
|
+
.ew-color-picker-panel-small .ew-color-picker-inputs-group,
|
|
1460
|
+
.ew-color-picker-panel-medium .ew-color-picker-inputs-group {
|
|
1461
|
+
flex-wrap: wrap;
|
|
1462
|
+
gap: var(--inputs-group-gap);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.ew-color-picker-panel-mini .ew-color-picker-inputs-col,
|
|
1466
|
+
.ew-color-picker-panel-small .ew-color-picker-inputs-col,
|
|
1467
|
+
.ew-color-picker-panel-medium .ew-color-picker-inputs-col {
|
|
1468
|
+
flex: 0 0 calc(50% - var(--inputs-group-gap) / 2);
|
|
1469
|
+
margin-bottom: var(--inputs-group-gap);
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type,
|
|
1473
|
+
.ew-color-picker-panel-small .ew-gradient-row-type,
|
|
1474
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type {
|
|
1475
|
+
display: grid;
|
|
1476
|
+
grid-template-columns: auto 1fr auto auto auto;
|
|
1477
|
+
row-gap: 4px;
|
|
1478
|
+
column-gap: 3px;
|
|
1479
|
+
align-items: center;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type > *:nth-child(1),
|
|
1483
|
+
.ew-color-picker-panel-small .ew-gradient-row-type > *:nth-child(1),
|
|
1484
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type > *:nth-child(1) {
|
|
1485
|
+
grid-column: 1;
|
|
1486
|
+
grid-row: 1;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type > *:nth-child(2),
|
|
1490
|
+
.ew-color-picker-panel-small .ew-gradient-row-type > *:nth-child(2),
|
|
1491
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type > *:nth-child(2) {
|
|
1492
|
+
grid-column: 2/-1;
|
|
1493
|
+
grid-row: 1;
|
|
1494
|
+
min-width: 0;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type > *:nth-child(3),
|
|
1498
|
+
.ew-color-picker-panel-small .ew-gradient-row-type > *:nth-child(3),
|
|
1499
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type > *:nth-child(3) {
|
|
1500
|
+
grid-column: 1;
|
|
1501
|
+
grid-row: 2;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type > *:nth-child(4),
|
|
1505
|
+
.ew-color-picker-panel-small .ew-gradient-row-type > *:nth-child(4),
|
|
1506
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type > *:nth-child(4) {
|
|
1507
|
+
grid-column: 2;
|
|
1508
|
+
grid-row: 2;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.ew-color-picker-panel-mini .ew-gradient-row-type > *:nth-child(5),
|
|
1512
|
+
.ew-color-picker-panel-small .ew-gradient-row-type > *:nth-child(5),
|
|
1513
|
+
.ew-color-picker-panel-medium .ew-gradient-row-type > *:nth-child(5) {
|
|
1514
|
+
grid-column: 3;
|
|
1515
|
+
grid-row: 2;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.ew-gradient-row-stop {
|
|
1519
|
+
flex-wrap: nowrap;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.ew-gradient-row-stop > .ew-input-number {
|
|
1523
|
+
flex: 1 1 var(--gradient-stop-number-width, 60px);
|
|
1524
|
+
width: var(--gradient-stop-number-width, 60px);
|
|
1525
|
+
min-width: 0;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.ew-gradient-row-stop > .ew-gradient-label,
|
|
1529
|
+
.ew-gradient-row-stop > .ew-gradient-btn {
|
|
1530
|
+
flex: none;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.ew-color-picker-panel-mini .ew-gradient-row-stop > .ew-gradient-btn,
|
|
1534
|
+
.ew-color-picker-panel-small .ew-gradient-row-stop > .ew-gradient-btn {
|
|
1535
|
+
padding: 0 3px;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.ew-color-picker-panel-mini .ew-gradient-row-stop > .ew-input-number > .ew-input-number__buttons {
|
|
1539
|
+
width: 14px;
|
|
1540
|
+
min-width: 14px;
|
|
998
1541
|
}
|