@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21
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/README.md +12 -39
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
- package/dist/Switch/Switch.js +50 -17
- package/dist/Switch/typings.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -2
- package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
- package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
- package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
- package/theme-chalk/build.scss +1 -1
- package/theme-chalk/button/_mixins.scss +3 -3
- package/theme-chalk/button/button-group.scss +1 -1
- package/theme-chalk/button/button.scss +2 -2
- package/theme-chalk/button/index.scss +2 -2
- package/theme-chalk/button--bak/_mixins.scss +317 -0
- package/theme-chalk/button--bak/button-group.scss +83 -0
- package/theme-chalk/button--bak/button.scss +382 -0
- package/theme-chalk/button--bak/index.scss +2 -0
- package/theme-chalk/button-group.scss +80 -0
- package/theme-chalk/button.scss +304 -0
- package/theme-chalk/calendar/date-picker.scss +1 -1
- package/theme-chalk/calendar/date-range-picker.scss +1 -1
- package/theme-chalk/calendar/date-table.scss +164 -156
- package/theme-chalk/calendar/date-table.scss--bak +156 -0
- package/theme-chalk/calendar/index.scss +6 -6
- package/theme-chalk/calendar/month-table.scss +1 -1
- package/theme-chalk/calendar/picker-panel.scss +1 -1
- package/theme-chalk/calendar/year-table.scss +1 -1
- package/theme-chalk/{card/index.scss → card.scss} +1 -1
- package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
- package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
- package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
- package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
- package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
- package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
- package/theme-chalk/col/_mixins.scss +5 -3
- package/theme-chalk/col/index.scss +2 -2
- package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
- package/theme-chalk/color/index.scss +20 -0
- package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
- package/theme-chalk/common/index.scss +127 -178
- package/theme-chalk/common/var.scss +1632 -0
- package/theme-chalk/dark/css-vars.scss +39 -0
- package/theme-chalk/dark/var.scss +225 -0
- package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
- package/theme-chalk/dev.scss +2 -2
- package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
- package/theme-chalk/display.scss +1 -1
- package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
- package/theme-chalk/doc.scss +2 -2
- package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
- package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
- package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
- package/theme-chalk/{form/index.scss → form.scss} +1 -1
- package/theme-chalk/icon/fonts.scss +9 -9
- package/theme-chalk/icon/index.scss +1 -1
- package/theme-chalk/icon/scss/_animated.scss +1 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
- package/theme-chalk/icon/scss/_core.scss +2 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
- package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
- package/theme-chalk/icon/scss/_functions.scss +2 -1
- package/theme-chalk/icon/scss/_icons.scss +3 -4
- package/theme-chalk/icon/scss/_list.scss +1 -0
- package/theme-chalk/icon/scss/_mixins.scss +10 -7
- package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
- package/theme-chalk/icon/scss/_shims.scss +292 -290
- package/theme-chalk/icon/scss/_sizing.scss +2 -0
- package/theme-chalk/icon/scss/_stacked.scss +1 -0
- package/theme-chalk/icon/scss/brands.scss +8 -6
- package/theme-chalk/icon/scss/duotone.scss +6 -5
- package/theme-chalk/icon/scss/fontawesome.scss +13 -13
- package/theme-chalk/icon/scss/index.scss +12 -15
- package/theme-chalk/icon/scss/light.scss +3 -2
- package/theme-chalk/icon/scss/regular.scss +3 -2
- package/theme-chalk/icon/scss/solid.scss +3 -2
- package/theme-chalk/icon/scss/thin.scss +3 -2
- package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
- package/theme-chalk/index.scss +63 -57
- package/theme-chalk/input/_mixins.scss +1 -1
- package/theme-chalk/input/index.scss +2 -3
- package/theme-chalk/input/input-range.scss +2 -1
- package/theme-chalk/input/input.scss +2 -1
- package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
- package/theme-chalk/{link/index.scss → link.scss} +1 -1
- package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
- package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
- package/theme-chalk/{message/index.scss → message.scss} +2 -1
- package/theme-chalk/mixins/_button.scss +224 -0
- package/theme-chalk/mixins/_col.scss +33 -0
- package/theme-chalk/mixins/_var.scss +67 -0
- package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
- package/theme-chalk/mixins/function.scss +99 -0
- package/theme-chalk/mixins/mixins.scss +240 -0
- package/theme-chalk/mixins/utils.scss +39 -0
- package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
- package/theme-chalk/pagination.scss +303 -0
- package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
- package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
- package/theme-chalk/popper.scss +104 -0
- package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
- package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
- package/theme-chalk/radio-button.scss +169 -0
- package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
- package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
- package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
- package/theme-chalk/{row/index.scss → row.scss} +1 -1
- package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
- package/theme-chalk/select/index.scss +1 -1
- package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
- package/theme-chalk/switch.scss +300 -0
- package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
- package/theme-chalk/{table/index.scss → table.scss} +1 -1
- package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
- package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
- package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
- package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
- package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
- package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
- package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
- package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
- package/theme-chalk/tree/_directory.scss +1 -1
- package/theme-chalk/tree/_tree.scss +1 -1
- package/theme-chalk/tree/index.scss +2 -2
- package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
- package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
- package/theme-chalk/var.scss +83 -0
- package/theme-chalk/cascader/index.scss +0 -2
- package/theme-chalk/common/index.ts +0 -1
- package/theme-chalk/date-time-picker/index.scss +0 -3
- package/theme-chalk/descriptions/index.scss +0 -2
- package/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/theme-chalk/pagination/index.scss +0 -303
- package/theme-chalk/placeholder/index.scss +0 -120
- package/theme-chalk/radio/index.scss +0 -2
- package/theme-chalk/time-line/index.scss +0 -2
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/utils' as *;
|
|
5
|
+
@use 'mixins/var' as *;
|
|
6
|
+
@use 'common/var' as *;
|
|
7
|
+
|
|
8
|
+
$switch-height: () !default;
|
|
9
|
+
$switch-height: map.merge(
|
|
10
|
+
(
|
|
11
|
+
'large': 40px,
|
|
12
|
+
'default': 32px,
|
|
13
|
+
'small': 24px,
|
|
14
|
+
),
|
|
15
|
+
$switch-height
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
$switch-font-size: () !default;
|
|
19
|
+
$switch-font-size: map.merge(
|
|
20
|
+
(
|
|
21
|
+
'large': 14px,
|
|
22
|
+
'default': 14px,
|
|
23
|
+
'small': 12px,
|
|
24
|
+
),
|
|
25
|
+
$switch-font-size
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$switch-core-border-radius: () !default;
|
|
29
|
+
$switch-core-border-radius: map.merge(
|
|
30
|
+
(
|
|
31
|
+
'large': 12px,
|
|
32
|
+
'default': 10px,
|
|
33
|
+
'small': 8px,
|
|
34
|
+
),
|
|
35
|
+
$switch-core-border-radius
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
$switch-core-width: () !default;
|
|
39
|
+
$switch-core-width: map.merge(
|
|
40
|
+
(
|
|
41
|
+
'large': 50px,
|
|
42
|
+
'default': 40px,
|
|
43
|
+
'small': 30px,
|
|
44
|
+
),
|
|
45
|
+
$switch-core-width
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
$switch-core-height: () !default;
|
|
49
|
+
$switch-core-height: map.merge(
|
|
50
|
+
(
|
|
51
|
+
'large': 24px,
|
|
52
|
+
'default': 20px,
|
|
53
|
+
'small': 16px,
|
|
54
|
+
),
|
|
55
|
+
$switch-core-height
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
$switch-button-size: () !default;
|
|
59
|
+
$switch-button-size: map.merge(
|
|
60
|
+
(
|
|
61
|
+
'large': 20px,
|
|
62
|
+
'default': 16px,
|
|
63
|
+
'small': 12px,
|
|
64
|
+
),
|
|
65
|
+
$switch-button-size
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
$switch-content-padding: () !default;
|
|
69
|
+
$switch-content-padding: map.merge(
|
|
70
|
+
(
|
|
71
|
+
'large': 6px,
|
|
72
|
+
'default': 4px,
|
|
73
|
+
'small': 2px,
|
|
74
|
+
),
|
|
75
|
+
$switch-content-padding
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
@include b(switch) {
|
|
79
|
+
@include set-component-css-var('switch', $switch);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include b(switch) {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
position: relative;
|
|
86
|
+
font-size: map.get($switch-font-size, 'default');
|
|
87
|
+
line-height: map.get($switch-core-height, 'default');
|
|
88
|
+
height: map.get($switch-height, 'default');
|
|
89
|
+
vertical-align: middle;
|
|
90
|
+
|
|
91
|
+
@include when(disabled) {
|
|
92
|
+
& .#{$namespace}-switch__core,
|
|
93
|
+
& .#{$namespace}-switch__label {
|
|
94
|
+
cursor: not-allowed;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@include e(label) {
|
|
99
|
+
transition: getCssVar('transition-duration-fast');
|
|
100
|
+
height: map.get($switch-core-height, 'default');
|
|
101
|
+
display: inline-block;
|
|
102
|
+
font-size: map.get($switch-font-size, 'default');
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
vertical-align: middle;
|
|
106
|
+
color: getCssVar('text-color', 'primary');
|
|
107
|
+
|
|
108
|
+
@include when(active) {
|
|
109
|
+
color: getCssVar('color-primary');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include m(left) {
|
|
113
|
+
margin-right: 10px;
|
|
114
|
+
}
|
|
115
|
+
@include m(right) {
|
|
116
|
+
margin-left: 10px;
|
|
117
|
+
}
|
|
118
|
+
& * {
|
|
119
|
+
line-height: 1;
|
|
120
|
+
font-size: map.get($switch-font-size, 'default');
|
|
121
|
+
display: inline-block;
|
|
122
|
+
}
|
|
123
|
+
.#{$namespace}-icon {
|
|
124
|
+
height: inherit;
|
|
125
|
+
|
|
126
|
+
svg {
|
|
127
|
+
vertical-align: middle;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@include e(input) {
|
|
133
|
+
position: absolute;
|
|
134
|
+
width: 0;
|
|
135
|
+
height: 0;
|
|
136
|
+
opacity: 0;
|
|
137
|
+
margin: 0;
|
|
138
|
+
|
|
139
|
+
&:focus-visible {
|
|
140
|
+
& ~ .#{$namespace}-switch__core {
|
|
141
|
+
outline: 2px solid getCssVar('switch-on-color');
|
|
142
|
+
outline-offset: 1px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@include e(core) {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
position: relative;
|
|
150
|
+
align-items: center;
|
|
151
|
+
min-width: map.get($switch-core-width, 'default');
|
|
152
|
+
height: map.get($switch-core-height, 'default');
|
|
153
|
+
border: 1px solid
|
|
154
|
+
var(
|
|
155
|
+
#{getCssVarName('switch-border-color')},
|
|
156
|
+
#{getCssVar('switch-off-color')}
|
|
157
|
+
);
|
|
158
|
+
outline: none;
|
|
159
|
+
border-radius: map.get($switch-core-border-radius, 'default');
|
|
160
|
+
box-sizing: border-box;
|
|
161
|
+
background: getCssVar('switch-off-color');
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
transition: border-color getCssVar('transition-duration'),
|
|
164
|
+
background-color getCssVar('transition-duration');
|
|
165
|
+
|
|
166
|
+
.#{$namespace}-switch__inner {
|
|
167
|
+
width: 100%;
|
|
168
|
+
transition: all getCssVar('transition-duration');
|
|
169
|
+
height: map.get($switch-button-size, 'default');
|
|
170
|
+
display: flex;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
align-items: center;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
padding: 0 #{map.get($switch-content-padding, 'default')} 0 calc(#{map.get(
|
|
175
|
+
$switch-button-size,
|
|
176
|
+
'default'
|
|
177
|
+
)} + 2px);
|
|
178
|
+
|
|
179
|
+
.is-icon,
|
|
180
|
+
.is-text {
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
color: getCssVar('color-white');
|
|
183
|
+
user-select: none;
|
|
184
|
+
@include utils-ellipsis;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.#{$namespace}-switch__action {
|
|
189
|
+
position: absolute;
|
|
190
|
+
left: 1px;
|
|
191
|
+
border-radius: getCssVar('border-radius-circle');
|
|
192
|
+
transition: all getCssVar('transition-duration');
|
|
193
|
+
width: map.get($switch-button-size, 'default');
|
|
194
|
+
height: map.get($switch-button-size, 'default');
|
|
195
|
+
background-color: getCssVar('color-white');
|
|
196
|
+
display: flex;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
align-items: center;
|
|
199
|
+
color: getCssVar('switch-off-color');
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@include when(checked) {
|
|
204
|
+
.#{$namespace}-switch__core {
|
|
205
|
+
border-color: var(
|
|
206
|
+
#{getCssVarName('switch-border-color')},
|
|
207
|
+
#{getCssVar('switch-on-color')}
|
|
208
|
+
);
|
|
209
|
+
background-color: getCssVar('switch-on-color');
|
|
210
|
+
|
|
211
|
+
.#{$namespace}-switch__action {
|
|
212
|
+
left: calc(100% - #{map.get($switch-button-size, 'default') + 1px});
|
|
213
|
+
color: getCssVar('switch-on-color');
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.#{$namespace}-switch__inner {
|
|
217
|
+
padding: 0 calc(#{map.get($switch-button-size, 'default')} + 2px) 0 #{map.get(
|
|
218
|
+
$switch-content-padding,
|
|
219
|
+
'default'
|
|
220
|
+
)};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@include when(disabled) {
|
|
226
|
+
opacity: 0.6;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@include m(wide) {
|
|
230
|
+
.#{$namespace}-switch__label {
|
|
231
|
+
&.#{$namespace}-switch__label--left {
|
|
232
|
+
span {
|
|
233
|
+
left: 10px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&.#{$namespace}-switch__label--right {
|
|
238
|
+
span {
|
|
239
|
+
right: 10px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
& .label-fade-enter-from,
|
|
246
|
+
& .label-fade-leave-active {
|
|
247
|
+
opacity: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@each $size in (large, small) {
|
|
251
|
+
@include m($size) {
|
|
252
|
+
font-size: map.get($switch-font-size, $size);
|
|
253
|
+
line-height: map.get($switch-core-height, $size);
|
|
254
|
+
height: map.get($switch-height, $size);
|
|
255
|
+
|
|
256
|
+
@include e(label) {
|
|
257
|
+
height: map.get($switch-core-height, $size);
|
|
258
|
+
font-size: map.get($switch-font-size, $size);
|
|
259
|
+
|
|
260
|
+
& * {
|
|
261
|
+
font-size: map.get($switch-font-size, $size);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@include e(core) {
|
|
266
|
+
min-width: map.get($switch-core-width, $size);
|
|
267
|
+
height: map.get($switch-core-height, $size);
|
|
268
|
+
border-radius: map.get($switch-core-border-radius, $size);
|
|
269
|
+
|
|
270
|
+
.#{$namespace}-switch__inner {
|
|
271
|
+
height: map.get($switch-button-size, $size);
|
|
272
|
+
padding: 0 #{map.get($switch-content-padding, $size)} 0 calc(#{map.get(
|
|
273
|
+
$switch-button-size,
|
|
274
|
+
$size
|
|
275
|
+
)} + 2px);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.#{$namespace}-switch__action {
|
|
279
|
+
width: map.get($switch-button-size, $size);
|
|
280
|
+
height: map.get($switch-button-size, $size);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@include when(checked) {
|
|
285
|
+
.#{$namespace}-switch__core {
|
|
286
|
+
.#{$namespace}-switch__action {
|
|
287
|
+
left: calc(100% - #{map.get($switch-button-size, $size) + 1px});
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.#{$namespace}-switch__inner {
|
|
291
|
+
padding: 0 calc(#{map.get($switch-button-size, $size)} + 2px) 0 #{map.get(
|
|
292
|
+
$switch-content-padding,
|
|
293
|
+
$size
|
|
294
|
+
)};
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use './tree';
|
|
2
|
+
@use './directory';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// CSS3 var
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
@use 'mixins/var' as *;
|
|
4
|
+
@use 'mixins/mixins' as *;
|
|
5
|
+
|
|
6
|
+
// for better performance do not dynamically change the root variable if you really
|
|
7
|
+
// do not need that, since this could introduce recalculation overhead for rendering.
|
|
8
|
+
// https://lisilinhart.info/posts/css-variables-performance/
|
|
9
|
+
|
|
10
|
+
// common
|
|
11
|
+
:root {
|
|
12
|
+
@include set-css-var-value('color-white', $color-white);
|
|
13
|
+
@include set-css-var-value('color-black', $color-black);
|
|
14
|
+
|
|
15
|
+
// get rgb
|
|
16
|
+
@each $type in (primary, success, warning, danger, error, info) {
|
|
17
|
+
@include set-css-color-rgb($type);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Typography
|
|
21
|
+
@include set-component-css-var('font-size', $font-size);
|
|
22
|
+
@include set-component-css-var('font-family', $font-family);
|
|
23
|
+
|
|
24
|
+
@include set-css-var-value('font-weight-primary', 500);
|
|
25
|
+
@include set-css-var-value('font-line-height-primary', 24px);
|
|
26
|
+
|
|
27
|
+
// z-index --el-index-#{$type}
|
|
28
|
+
@include set-component-css-var('index', $z-index);
|
|
29
|
+
|
|
30
|
+
// --el-border-radius-#{$type}
|
|
31
|
+
@include set-component-css-var('border-radius', $border-radius);
|
|
32
|
+
|
|
33
|
+
// Transition
|
|
34
|
+
// refer to this website to get the bezier motion function detail
|
|
35
|
+
// https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
|
|
36
|
+
@include set-component-css-var('transition-duration', $transition-duration);
|
|
37
|
+
|
|
38
|
+
@include set-component-css-var('transition-function', $transition-function);
|
|
39
|
+
@include set-component-css-var('transition', $transition);
|
|
40
|
+
|
|
41
|
+
// common component size
|
|
42
|
+
@include set-component-css-var('component-size', $common-component-size);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// for light
|
|
46
|
+
:root {
|
|
47
|
+
color-scheme: light;
|
|
48
|
+
|
|
49
|
+
// --el-color-#{$type}
|
|
50
|
+
// --el-color-#{$type}-light-{$i}
|
|
51
|
+
@each $type in (primary, success, warning, danger, error, info) {
|
|
52
|
+
@include set-css-color-type($colors, $type);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// color-scheme
|
|
56
|
+
// Background --el-bg-color-#{$type}
|
|
57
|
+
@include set-component-css-var('bg-color', $bg-color);
|
|
58
|
+
// --el-text-color-#{$type}
|
|
59
|
+
@include set-component-css-var('text-color', $text-color);
|
|
60
|
+
// --el-border-color-#{$type}
|
|
61
|
+
@include set-component-css-var('border-color', $border-color);
|
|
62
|
+
// Fill --el-fill-color-#{$type}
|
|
63
|
+
@include set-component-css-var('fill-color', $fill-color);
|
|
64
|
+
|
|
65
|
+
// Box-shadow
|
|
66
|
+
// --el-box-shadow-#{$type}
|
|
67
|
+
@include set-component-css-var('box-shadow', $box-shadow);
|
|
68
|
+
// Disable base
|
|
69
|
+
@include set-component-css-var('disabled', $disabled);
|
|
70
|
+
|
|
71
|
+
// overlay & mask
|
|
72
|
+
@include set-component-css-var('overlay-color', $overlay-color);
|
|
73
|
+
@include set-component-css-var('mask-color', $mask-color);
|
|
74
|
+
|
|
75
|
+
// Border
|
|
76
|
+
@include set-css-var-value('border-width', $border-width);
|
|
77
|
+
@include set-css-var-value('border-style', $border-style);
|
|
78
|
+
@include set-css-var-value('border-color-hover', $border-color-hover);
|
|
79
|
+
@include set-css-var-value('border', getCssVar('border-width') getCssVar('border-style') getCssVar('border-color'));
|
|
80
|
+
|
|
81
|
+
// Svg
|
|
82
|
+
@include css-var-from-global('svg-monochrome-grey', 'border-color');
|
|
83
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './styles/index.scss';
|