@ew-color-picker/style 2.0.8 → 2.0.10
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 +44 -16
- package/dist/select.min.css +1 -1
- 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 +46 -16
package/src/input-number.scss
CHANGED
|
@@ -4,8 +4,8 @@ $prefix: "ew-" !default;
|
|
|
4
4
|
.#{$prefix}input-number {
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: stretch;
|
|
7
|
-
border: 1.5px solid #d9d9d9;
|
|
8
|
-
border-radius: 8px;
|
|
7
|
+
border: var(--input-number-border-width, 1.5px) solid #d9d9d9;
|
|
8
|
+
border-radius: var(--input-number-radius, 8px);
|
|
9
9
|
background: #fff;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
width: 100%;
|
|
@@ -14,7 +14,7 @@ $prefix: "ew-" !default;
|
|
|
14
14
|
max-width: none;
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
transition: border-color 0.2s;
|
|
17
|
-
height: 32px;
|
|
17
|
+
height: var(--input-number-height, 32px);
|
|
18
18
|
}
|
|
19
19
|
.#{$prefix}input-number:focus-within {
|
|
20
20
|
border-color: #4096ef;
|
|
@@ -23,25 +23,27 @@ $prefix: "ew-" !default;
|
|
|
23
23
|
flex: 1;
|
|
24
24
|
border: none;
|
|
25
25
|
outline: none;
|
|
26
|
-
padding: 4px 10px;
|
|
27
|
-
font-size: 14px;
|
|
26
|
+
padding: var(--input-number-input-padding, 4px 10px);
|
|
27
|
+
font-size: var(--input-number-input-font-size, 14px);
|
|
28
28
|
background: transparent;
|
|
29
29
|
min-width: 0;
|
|
30
|
-
height: 100%;
|
|
30
|
+
height: 100%;
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
color: #222;
|
|
33
33
|
font-family: inherit;
|
|
34
|
+
line-height: 1;
|
|
34
35
|
}
|
|
35
36
|
.#{$prefix}input-number__buttons {
|
|
36
|
-
width: 32px;
|
|
37
|
-
min-width: 24px;
|
|
37
|
+
width: var(--input-number-buttons-width, 32px);
|
|
38
|
+
min-width: var(--input-number-buttons-min-width, 24px);
|
|
38
39
|
display: flex;
|
|
39
40
|
flex-direction: column;
|
|
40
41
|
background: #fff;
|
|
41
|
-
height: 100%;
|
|
42
|
+
height: 100%;
|
|
42
43
|
padding: 0;
|
|
43
44
|
margin: 0;
|
|
44
|
-
border-left:
|
|
45
|
+
border-left: var(--input-number-border-width, 1.5px) solid #e5e6eb;
|
|
46
|
+
flex-shrink: 0;
|
|
45
47
|
}
|
|
46
48
|
.#{$prefix}input-number__button {
|
|
47
49
|
display: flex;
|
|
@@ -66,10 +68,10 @@ $prefix: "ew-" !default;
|
|
|
66
68
|
background: #f0f8ff;
|
|
67
69
|
}
|
|
68
70
|
.#{$prefix}input-number__icon {
|
|
69
|
-
width: 10px;
|
|
70
|
-
height: 10px;
|
|
71
|
-
flex: 0 0 10px;
|
|
71
|
+
width: var(--input-number-icon-size, 10px);
|
|
72
|
+
height: var(--input-number-icon-size, 10px);
|
|
73
|
+
flex: 0 0 var(--input-number-icon-size, 10px);
|
|
72
74
|
display: block;
|
|
73
75
|
margin: 0 auto;
|
|
74
76
|
pointer-events: none;
|
|
75
|
-
}
|
|
77
|
+
}
|
package/src/select.scss
CHANGED
|
@@ -15,16 +15,16 @@ $prefix: "ew-" !default;
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
|
-
gap:
|
|
18
|
+
gap: 4px;
|
|
19
19
|
width: 100%;
|
|
20
|
-
height: 32px;
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
border: 1.5px solid #d9d9d9;
|
|
23
|
-
border-radius: 8px;
|
|
20
|
+
height: var(--select-height, 32px);
|
|
21
|
+
padding: var(--select-padding, 0 10px);
|
|
22
|
+
border: var(--select-border-width, 1.5px) solid #d9d9d9;
|
|
23
|
+
border-radius: var(--select-radius, 8px);
|
|
24
24
|
background: #fff;
|
|
25
25
|
color: #222;
|
|
26
26
|
font-family: inherit;
|
|
27
|
-
font-size: 14px;
|
|
27
|
+
font-size: var(--select-font-size, 14px);
|
|
28
28
|
line-height: 1;
|
|
29
29
|
text-align: left;
|
|
30
30
|
cursor: pointer;
|
|
@@ -57,9 +57,9 @@ $prefix: "ew-" !default;
|
|
|
57
57
|
display: inline-flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: center;
|
|
60
|
-
flex: 0 0 12px;
|
|
61
|
-
width: 12px;
|
|
62
|
-
height: 12px;
|
|
60
|
+
flex: 0 0 var(--select-clear-size, 12px);
|
|
61
|
+
width: var(--select-clear-size, 12px);
|
|
62
|
+
height: var(--select-clear-size, 12px);
|
|
63
63
|
color: #999;
|
|
64
64
|
border-radius: 50%;
|
|
65
65
|
cursor: pointer;
|
|
@@ -76,8 +76,8 @@ $prefix: "ew-" !default;
|
|
|
76
76
|
|
|
77
77
|
.#{$prefix}select__clear-icon {
|
|
78
78
|
display: block;
|
|
79
|
-
width: 12px;
|
|
80
|
-
height: 12px;
|
|
79
|
+
width: var(--select-clear-size, 12px);
|
|
80
|
+
height: var(--select-clear-size, 12px);
|
|
81
81
|
pointer-events: none;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -85,9 +85,9 @@ $prefix: "ew-" !default;
|
|
|
85
85
|
display: flex;
|
|
86
86
|
align-items: center;
|
|
87
87
|
justify-content: center;
|
|
88
|
-
flex: 0 0 12px;
|
|
89
|
-
width: 12px;
|
|
90
|
-
height: 12px;
|
|
88
|
+
flex: 0 0 var(--select-arrow-size, 12px);
|
|
89
|
+
width: var(--select-arrow-size, 12px);
|
|
90
|
+
height: var(--select-arrow-size, 12px);
|
|
91
91
|
color: #999;
|
|
92
92
|
transition: transform 0.2s;
|
|
93
93
|
}
|
|
@@ -98,8 +98,8 @@ $prefix: "ew-" !default;
|
|
|
98
98
|
|
|
99
99
|
.#{$prefix}select__arrow-icon {
|
|
100
100
|
display: block;
|
|
101
|
-
width: 12px;
|
|
102
|
-
height: 12px;
|
|
101
|
+
width: var(--select-arrow-size, 12px);
|
|
102
|
+
height: var(--select-arrow-size, 12px);
|
|
103
103
|
pointer-events: none;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -186,3 +186,33 @@ $prefix: "ew-" !default;
|
|
|
186
186
|
padding: 8px 12px;
|
|
187
187
|
font-size: 14px;
|
|
188
188
|
}
|
|
189
|
+
|
|
190
|
+
// 文字被截断时的悬浮提示
|
|
191
|
+
.#{$prefix}select__tooltip {
|
|
192
|
+
position: fixed;
|
|
193
|
+
z-index: 3000;
|
|
194
|
+
max-width: 240px;
|
|
195
|
+
padding: 4px 8px;
|
|
196
|
+
border-radius: 4px;
|
|
197
|
+
background: rgba(0, 0, 0, 0.78);
|
|
198
|
+
color: #fff;
|
|
199
|
+
font-family: inherit;
|
|
200
|
+
font-size: 12px;
|
|
201
|
+
line-height: 1.4;
|
|
202
|
+
white-space: normal;
|
|
203
|
+
word-break: break-word;
|
|
204
|
+
pointer-events: none;
|
|
205
|
+
opacity: 0;
|
|
206
|
+
transform: translateY(-100%);
|
|
207
|
+
transition: opacity 0.15s;
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.#{$prefix}select__tooltip--visible {
|
|
212
|
+
opacity: 1;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// 上方空间不足时展示在锚点下方
|
|
216
|
+
.#{$prefix}select__tooltip--bottom {
|
|
217
|
+
transform: none;
|
|
218
|
+
}
|