@jari-ace/element-plus-component 0.1.0 → 0.1.1
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 +18 -18
- package/dist/components/tip/index.d.ts +1 -35
- package/dist/components/tip/index.d.ts.map +1 -1
- package/dist/components/upload/index.d.ts +1 -1
- package/dist/components/upload/index.d.ts.map +1 -1
- package/dist/hooks/useBridage.d.ts +3 -3
- package/dist/hooks/useBridage.d.ts.map +1 -1
- package/dist/hooks/useBridage.js +29 -22
- package/dist/hooks/useBridage.js.map +1 -1
- package/dist/hooks/useUserRefQuery.d.ts +2 -2
- package/lib/index.css +1 -1
- package/lib/index.js +32 -28
- package/lib/index.umd.cjs +2 -2
- package/package.json +61 -61
- package/packages/components/autoComplete/JaAutoComplete.vue +47 -47
- package/packages/components/autoComplete/index.ts +5 -5
- package/packages/components/avatar/JaAvatar.vue +126 -126
- package/packages/components/avatar/avatarToken.ts +11 -11
- package/packages/components/avatar/defaultImg.ts +14 -14
- package/packages/components/avatar/index.ts +7 -7
- package/packages/components/button/JaButton.vue +51 -51
- package/packages/components/button/index.ts +4 -4
- package/packages/components/channelPicker/index.ts +7 -7
- package/packages/components/channelPicker/src/ChannelPicker.vue +43 -43
- package/packages/components/channelPicker/src/JaChannelPicker.vue +42 -42
- package/packages/components/checkbox/JaCheckbox.vue +73 -73
- package/packages/components/checkbox/index.ts +4 -4
- package/packages/components/checkboxGroup/JaCheckboxGroup.vue +45 -45
- package/packages/components/checkboxGroup/index.ts +4 -4
- package/packages/components/customGroupTree/index.ts +10 -10
- package/packages/components/customGroupTree/src/customGroupTree.vue +91 -91
- package/packages/components/datePicker/JaDatePicker.vue +52 -52
- package/packages/components/datePicker/index.ts +4 -4
- package/packages/components/departmentPicker/index.ts +4 -4
- package/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -107
- package/packages/components/departmentPicker/src/consts.ts +2 -2
- package/packages/components/departmentTree/index.ts +10 -10
- package/packages/components/departmentTree/src/departmentTree.vue +135 -135
- package/packages/components/dropdownButton/JaDropdownButton.vue +59 -59
- package/packages/components/dropdownButton/index.ts +4 -4
- package/packages/components/enumList/EnumListInput.vue +107 -107
- package/packages/components/enumList/JaEnumList.vue +39 -39
- package/packages/components/enumList/index.ts +7 -7
- package/packages/components/form/JaForm.vue +126 -126
- package/packages/components/form/index.ts +5 -5
- package/packages/components/form/types.ts +4 -4
- package/packages/components/formItem/JaFormItem.vue +68 -68
- package/packages/components/formItem/index.ts +4 -4
- package/packages/components/index.ts +33 -33
- package/packages/components/input/JaInput.vue +143 -143
- package/packages/components/input/index.ts +4 -4
- package/packages/components/inputI18n/I18nBundleEditor.vue +76 -76
- package/packages/components/inputI18n/InputI18n.vue +142 -142
- package/packages/components/inputI18n/JaInputI18n.vue +50 -50
- package/packages/components/inputI18n/index.ts +8 -8
- package/packages/components/inputNumber/JaInputNumber.vue +98 -98
- package/packages/components/inputNumber/index.ts +4 -4
- package/packages/components/mapItemList/JaMapItemList.vue +35 -35
- package/packages/components/mapItemList/MapItemListInput.vue +191 -191
- package/packages/components/mapItemList/index.ts +7 -7
- package/packages/components/numberList/JaNumberList.vue +36 -36
- package/packages/components/numberList/NumberListInput.vue +111 -111
- package/packages/components/numberList/index.ts +7 -7
- package/packages/components/properyPicker/JaPropertyPicker.vue +38 -38
- package/packages/components/properyPicker/PropertyPicker.vue +314 -314
- package/packages/components/properyPicker/index.ts +7 -7
- package/packages/components/radioGroup/JaRadioGroup.vue +50 -50
- package/packages/components/radioGroup/index.ts +4 -4
- package/packages/components/rolePicker/RoleEditor.vue +129 -129
- package/packages/components/rolePicker/RolePicker.vue +44 -44
- package/packages/components/rolePicker/RolePickerRaw.vue +56 -56
- package/packages/components/rolePicker/baseRolePicker.vue +86 -86
- package/packages/components/rolePicker/index.ts +10 -10
- package/packages/components/scrollbar/Scrollbar.vue +89 -89
- package/packages/components/scrollbar/index.ts +5 -5
- package/packages/components/scrollbar/utils.ts +17 -17
- package/packages/components/select/JaSelect.vue +48 -48
- package/packages/components/select/index.ts +4 -4
- package/packages/components/stringList/JaStringList.vue +36 -36
- package/packages/components/stringList/StringListInput.vue +96 -96
- package/packages/components/stringList/index.ts +7 -7
- package/packages/components/switch/JaSwitch.vue +50 -50
- package/packages/components/switch/index.ts +4 -4
- package/packages/components/timePicker/JaTimePicker.vue +52 -52
- package/packages/components/timePicker/index.ts +5 -5
- package/packages/components/tip/index.ts +4 -4
- package/packages/components/tip/src/AceTip.vue +43 -43
- package/packages/components/upload/index.ts +6 -6
- package/packages/components/upload/src/Upload.vue +25 -25
- package/packages/components/upload/src/type.ts +3 -3
- package/packages/components/userGroupPicker/index.ts +4 -4
- package/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -94
- package/packages/components/userGroupTree/index.ts +10 -10
- package/packages/components/userGroupTree/src/userGroupTree.vue +149 -149
- package/packages/components/userPicker/index.ts +10 -10
- package/packages/components/userPicker/src/CustomGroupManager.vue +189 -189
- package/packages/components/userPicker/src/JaUserList.vue +283 -283
- package/packages/components/userPicker/src/JaUserPicker.vue +37 -37
- package/packages/components/userPicker/src/UserPicker.vue +366 -366
- package/packages/components/userSelectDialog/index.ts +6 -6
- package/packages/components/userSelectDialog/src/userSelectDialog.vue +447 -447
- package/packages/components/userTag/UserInfoTag.vue +397 -397
- package/packages/components/userTag/index.ts +6 -6
- package/packages/components/userTag/sharedAxios.ts +8 -8
- package/packages/directives/auth/index.ts +41 -41
- package/packages/directives/autofocus/index.ts +29 -29
- package/packages/directives/index.ts +10 -10
- package/packages/directives/shortcut/index.ts +192 -192
- package/packages/hooks/useAppInstances.ts +34 -34
- package/packages/hooks/useBackendValidations.ts +55 -55
- package/packages/hooks/useBridage.ts +157 -148
- package/packages/hooks/useDateTimeShortCuts.ts +65 -65
- package/packages/hooks/useTreeData.ts +45 -45
- package/packages/hooks/useUserRefQuery.ts +222 -222
- package/packages/index.ts +21 -21
- package/packages/list.json +7 -7
- package/packages/types/custom.d.ts +13 -13
- package/packages/types/window.d.ts +16 -16
- package/packages/utils/install.ts +43 -43
- package/packages/utils/objectUtils.ts +31 -31
- package/theme-style/fonts/iconfont.json +5196 -5196
- package/theme-style/index.scss +10 -10
- package/theme-style/styles/element-plus-var.scss +1419 -1419
- package/theme-style/styles/iconfont.css +2979 -2979
- package/theme-style/styles/theme-var.scss +72 -72
- package/theme-style/styles/transition.scss +122 -122
|
@@ -1,1419 +1,1419 @@
|
|
|
1
|
-
/* Element Chalk Variables */
|
|
2
|
-
@use 'sass:math';
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
|
|
5
|
-
@use '../mixins/function.scss' as *;
|
|
6
|
-
|
|
7
|
-
// Special comment for theme configurator
|
|
8
|
-
// type|skipAutoTranslation|Category|Order
|
|
9
|
-
// skipAutoTranslation 1
|
|
10
|
-
|
|
11
|
-
// types
|
|
12
|
-
$types: primary, success, warning, danger, error, info;
|
|
13
|
-
|
|
14
|
-
// Color
|
|
15
|
-
$colors: () !default;
|
|
16
|
-
$colors: map.deep-merge(
|
|
17
|
-
(
|
|
18
|
-
'white': #ffffff,
|
|
19
|
-
'black': #000000,
|
|
20
|
-
'primary': (
|
|
21
|
-
'base': #409eff,
|
|
22
|
-
),
|
|
23
|
-
'success': (
|
|
24
|
-
'base': #67c23a,
|
|
25
|
-
),
|
|
26
|
-
'warning': (
|
|
27
|
-
'base': #e6a23c,
|
|
28
|
-
),
|
|
29
|
-
'danger': (
|
|
30
|
-
'base': #f56c6c,
|
|
31
|
-
),
|
|
32
|
-
'error': (
|
|
33
|
-
'base': #f56c6c,
|
|
34
|
-
),
|
|
35
|
-
'info': (
|
|
36
|
-
'base': #909399,
|
|
37
|
-
),
|
|
38
|
-
),
|
|
39
|
-
$colors
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
$color-white: map.get($colors, 'white') !default;
|
|
43
|
-
$color-black: map.get($colors, 'black') !default;
|
|
44
|
-
$color-primary: map.get($colors, 'primary', 'base') !default;
|
|
45
|
-
$color-success: map.get($colors, 'success', 'base') !default;
|
|
46
|
-
$color-warning: map.get($colors, 'warning', 'base') !default;
|
|
47
|
-
$color-danger: map.get($colors, 'danger', 'base') !default;
|
|
48
|
-
$color-error: map.get($colors, 'error', 'base') !default;
|
|
49
|
-
$color-info: map.get($colors, 'info', 'base') !default;
|
|
50
|
-
|
|
51
|
-
// https://sass-lang.com/documentation/values/maps#immutability
|
|
52
|
-
// mix colors with white/black to generate light/dark level
|
|
53
|
-
@mixin set-color-mix-level(
|
|
54
|
-
$type,
|
|
55
|
-
$number,
|
|
56
|
-
$mode: 'light',
|
|
57
|
-
$mix-color: $color-white
|
|
58
|
-
) {
|
|
59
|
-
$colors: map.deep-merge(
|
|
60
|
-
(
|
|
61
|
-
$type: (
|
|
62
|
-
'#{$mode}-#{$number}':
|
|
63
|
-
mix(
|
|
64
|
-
$mix-color,
|
|
65
|
-
map.get($colors, $type, 'base'),
|
|
66
|
-
math.percentage(math.div($number, 10))
|
|
67
|
-
),
|
|
68
|
-
),
|
|
69
|
-
),
|
|
70
|
-
$colors
|
|
71
|
-
) !global;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// $colors.primary.light-i
|
|
75
|
-
// --el-color-primary-light-i
|
|
76
|
-
// 10% 53a8ff
|
|
77
|
-
// 20% 66b1ff
|
|
78
|
-
// 30% 79bbff
|
|
79
|
-
// 40% 8cc5ff
|
|
80
|
-
// 50% a0cfff
|
|
81
|
-
// 60% b3d8ff
|
|
82
|
-
// 70% c6e2ff
|
|
83
|
-
// 80% d9ecff
|
|
84
|
-
// 90% ecf5ff
|
|
85
|
-
@each $type in $types {
|
|
86
|
-
@for $i from 1 through 9 {
|
|
87
|
-
@include set-color-mix-level($type, $i, 'light', $color-white);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// --el-color-primary-dark-2
|
|
92
|
-
@each $type in $types {
|
|
93
|
-
@include set-color-mix-level($type, 2, 'dark', $color-black);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
$text-color: () !default;
|
|
97
|
-
$text-color: map.merge(
|
|
98
|
-
(
|
|
99
|
-
'primary': #303133,
|
|
100
|
-
'regular': #606266,
|
|
101
|
-
'secondary': #909399,
|
|
102
|
-
'placeholder': #a8abb2,
|
|
103
|
-
'disabled': #c0c4cc,
|
|
104
|
-
),
|
|
105
|
-
$text-color
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
$border-color: () !default;
|
|
109
|
-
$border-color: map.merge(
|
|
110
|
-
(
|
|
111
|
-
'': #dcdfe6,
|
|
112
|
-
'light': #e4e7ed,
|
|
113
|
-
'lighter': #ebeef5,
|
|
114
|
-
'extra-light': #f2f6fc,
|
|
115
|
-
'dark': #d4d7de,
|
|
116
|
-
'darker': #cdd0d6,
|
|
117
|
-
),
|
|
118
|
-
$border-color
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
$fill-color: () !default;
|
|
122
|
-
$fill-color: map.merge(
|
|
123
|
-
(
|
|
124
|
-
'': #f0f2f5,
|
|
125
|
-
'light': #f5f7fa,
|
|
126
|
-
'lighter': #fafafa,
|
|
127
|
-
'extra-light': #fafcff,
|
|
128
|
-
'dark': #ebedf0,
|
|
129
|
-
'darker': #e6e8eb,
|
|
130
|
-
'blank': #ffffff,
|
|
131
|
-
),
|
|
132
|
-
$fill-color
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
// Background
|
|
136
|
-
$bg-color: () !default;
|
|
137
|
-
$bg-color: map.merge(
|
|
138
|
-
(
|
|
139
|
-
'': #ffffff,
|
|
140
|
-
'page': #f2f3f5,
|
|
141
|
-
'overlay': #ffffff,
|
|
142
|
-
),
|
|
143
|
-
$bg-color
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
// Border
|
|
147
|
-
$border-width: 1px !default;
|
|
148
|
-
$border-style: solid !default;
|
|
149
|
-
$border-color-hover: getCssVar('text-color', 'disabled') !default;
|
|
150
|
-
|
|
151
|
-
$border-radius: () !default;
|
|
152
|
-
$border-radius: map.merge(
|
|
153
|
-
(
|
|
154
|
-
'base': 4px,
|
|
155
|
-
'small': 2px,
|
|
156
|
-
'round': 20px,
|
|
157
|
-
'circle': 100%,
|
|
158
|
-
),
|
|
159
|
-
$border-radius
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
// Box-shadow
|
|
163
|
-
$box-shadow: () !default;
|
|
164
|
-
$box-shadow: map.merge(
|
|
165
|
-
(
|
|
166
|
-
'': (
|
|
167
|
-
0px 12px 32px 4px rgba(0, 0, 0, 0.04),
|
|
168
|
-
0px 8px 20px rgba(0, 0, 0, 0.08),
|
|
169
|
-
),
|
|
170
|
-
'light': (
|
|
171
|
-
0px 0px 12px rgba(0, 0, 0, 0.12),
|
|
172
|
-
),
|
|
173
|
-
'lighter': (
|
|
174
|
-
0px 0px 6px rgba(0, 0, 0, 0.12),
|
|
175
|
-
),
|
|
176
|
-
'dark': (
|
|
177
|
-
0px 16px 48px 16px rgba(0, 0, 0, 0.08),
|
|
178
|
-
0px 12px 32px rgba(0, 0, 0, 0.12),
|
|
179
|
-
0px 8px 16px -8px rgba(0, 0, 0, 0.16),
|
|
180
|
-
),
|
|
181
|
-
),
|
|
182
|
-
$box-shadow
|
|
183
|
-
);
|
|
184
|
-
|
|
185
|
-
// Typography
|
|
186
|
-
$font-family: () !default;
|
|
187
|
-
$font-family: map.merge(
|
|
188
|
-
(
|
|
189
|
-
// default family
|
|
190
|
-
'':
|
|
191
|
-
"'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
|
|
192
|
-
),
|
|
193
|
-
$font-family
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
$font-size: () !default;
|
|
197
|
-
$font-size: map.merge(
|
|
198
|
-
(
|
|
199
|
-
'extra-large': 20px,
|
|
200
|
-
'large': 18px,
|
|
201
|
-
'medium': 16px,
|
|
202
|
-
'base': 14px,
|
|
203
|
-
'small': 13px,
|
|
204
|
-
'extra-small': 12px,
|
|
205
|
-
),
|
|
206
|
-
$font-size
|
|
207
|
-
);
|
|
208
|
-
|
|
209
|
-
// zIndex
|
|
210
|
-
$z-index: () !default;
|
|
211
|
-
$z-index: map.merge(
|
|
212
|
-
(
|
|
213
|
-
'normal': 1,
|
|
214
|
-
'top': 1000,
|
|
215
|
-
'popper': 2000,
|
|
216
|
-
),
|
|
217
|
-
$z-index
|
|
218
|
-
);
|
|
219
|
-
|
|
220
|
-
// Disable default
|
|
221
|
-
$disabled: () !default;
|
|
222
|
-
$disabled: map.merge(
|
|
223
|
-
(
|
|
224
|
-
'bg-color': getCssVar('fill-color', 'light'),
|
|
225
|
-
'text-color': getCssVar('text-color', 'placeholder'),
|
|
226
|
-
'border-color': getCssVar('border-color', 'light'),
|
|
227
|
-
),
|
|
228
|
-
$disabled
|
|
229
|
-
);
|
|
230
|
-
|
|
231
|
-
$common-component-size: () !default;
|
|
232
|
-
$common-component-size: map.merge(
|
|
233
|
-
(
|
|
234
|
-
'large': 40px,
|
|
235
|
-
'default': 32px,
|
|
236
|
-
'small': 24px,
|
|
237
|
-
),
|
|
238
|
-
$common-component-size
|
|
239
|
-
);
|
|
240
|
-
|
|
241
|
-
// overlay
|
|
242
|
-
$overlay-color: () !default;
|
|
243
|
-
$overlay-color: map.merge(
|
|
244
|
-
(
|
|
245
|
-
'': rgba(0, 0, 0, 0.8),
|
|
246
|
-
'light': rgba(0, 0, 0, 0.7),
|
|
247
|
-
'lighter': rgba(0, 0, 0, 0.5),
|
|
248
|
-
),
|
|
249
|
-
$overlay-color
|
|
250
|
-
);
|
|
251
|
-
|
|
252
|
-
// mask
|
|
253
|
-
$mask-color: () !default;
|
|
254
|
-
$mask-color: map.merge(
|
|
255
|
-
(
|
|
256
|
-
'': rgba(255, 255, 255, 0.9),
|
|
257
|
-
'extra-light': rgba(255, 255, 255, 0.3),
|
|
258
|
-
),
|
|
259
|
-
$mask-color
|
|
260
|
-
);
|
|
261
|
-
|
|
262
|
-
// Components
|
|
263
|
-
// ---
|
|
264
|
-
// Checkbox
|
|
265
|
-
// css3 var in packages/theme-chalk/src/checkbox.scss
|
|
266
|
-
$checkbox: () !default;
|
|
267
|
-
$checkbox: map.merge(
|
|
268
|
-
(
|
|
269
|
-
'font-size': 14px,
|
|
270
|
-
'font-weight': getCssVar('font-weight-primary'),
|
|
271
|
-
'text-color': getCssVar('text-color-regular'),
|
|
272
|
-
'input-height': 14px,
|
|
273
|
-
'input-width': 14px,
|
|
274
|
-
'border-radius': getCssVar('border-radius-small'),
|
|
275
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
276
|
-
'input-border': getCssVar('border'),
|
|
277
|
-
'disabled-border-color': getCssVar('border-color'),
|
|
278
|
-
'disabled-input-fill': getCssVar('fill-color', 'light'),
|
|
279
|
-
'disabled-icon-color': getCssVar('text-color-placeholder'),
|
|
280
|
-
'disabled-checked-input-fill': getCssVar('border-color-extra-light'),
|
|
281
|
-
'disabled-checked-input-border-color': getCssVar('border-color'),
|
|
282
|
-
'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
|
|
283
|
-
'checked-text-color': getCssVar('color-primary'),
|
|
284
|
-
'checked-input-border-color': getCssVar('color-primary'),
|
|
285
|
-
'checked-bg-color': getCssVar('color-primary'),
|
|
286
|
-
'checked-icon-color': getCssVar('color', 'white'),
|
|
287
|
-
'input-border-color-hover': getCssVar('color-primary'),
|
|
288
|
-
),
|
|
289
|
-
$checkbox
|
|
290
|
-
);
|
|
291
|
-
|
|
292
|
-
$checkbox-button: () !default;
|
|
293
|
-
$checkbox-button: map.merge(
|
|
294
|
-
(
|
|
295
|
-
'checked-bg-color': getCssVar('color-primary'),
|
|
296
|
-
'checked-text-color': getCssVar('color-white'),
|
|
297
|
-
'checked-border-color': getCssVar('color-primary'),
|
|
298
|
-
),
|
|
299
|
-
$checkbox-button
|
|
300
|
-
);
|
|
301
|
-
|
|
302
|
-
$checkbox-bordered-padding-left: () !default;
|
|
303
|
-
$checkbox-bordered-padding-left: map.merge(
|
|
304
|
-
(
|
|
305
|
-
'large': 12px,
|
|
306
|
-
'default': 10px,
|
|
307
|
-
'small': 8px,
|
|
308
|
-
),
|
|
309
|
-
$checkbox-bordered-padding-left
|
|
310
|
-
);
|
|
311
|
-
|
|
312
|
-
$checkbox-bordered-padding-right: () !default;
|
|
313
|
-
$checkbox-bordered-padding-right: map.merge(
|
|
314
|
-
(
|
|
315
|
-
'large': 20px,
|
|
316
|
-
'default': 16px,
|
|
317
|
-
'small': 12px,
|
|
318
|
-
),
|
|
319
|
-
$checkbox-bordered-padding-right
|
|
320
|
-
);
|
|
321
|
-
|
|
322
|
-
// Radio
|
|
323
|
-
/// fontSize||Font|1
|
|
324
|
-
$radio: () !default;
|
|
325
|
-
$radio: map.merge(
|
|
326
|
-
(
|
|
327
|
-
'font-size': getCssVar('font-size-base'),
|
|
328
|
-
'text-color': getCssVar('text-color-regular'),
|
|
329
|
-
'font-weight': getCssVar('font-weight-primary'),
|
|
330
|
-
'input-height': 14px,
|
|
331
|
-
'input-width': 14px,
|
|
332
|
-
'input-border-radius': getCssVar('border-radius-circle'),
|
|
333
|
-
'input-bg-color': getCssVar('fill-color', 'blank'),
|
|
334
|
-
'input-border': getCssVar('border'),
|
|
335
|
-
'input-border-color': getCssVar('border-color'),
|
|
336
|
-
'input-border-color-hover': getCssVar('color-primary'),
|
|
337
|
-
),
|
|
338
|
-
$radio
|
|
339
|
-
);
|
|
340
|
-
|
|
341
|
-
$radio-height: () !default;
|
|
342
|
-
$radio-height: map.merge($common-component-size, $radio-height);
|
|
343
|
-
|
|
344
|
-
$radio-button: () !default;
|
|
345
|
-
$radio-button: map.merge(
|
|
346
|
-
(
|
|
347
|
-
'checked-bg-color': getCssVar('color-primary'),
|
|
348
|
-
'checked-text-color': getCssVar('color-white'),
|
|
349
|
-
'checked-border-color': getCssVar('color-primary'),
|
|
350
|
-
'disabled-checked-fill': getCssVar('border-color-extra-light'),
|
|
351
|
-
),
|
|
352
|
-
$radio-button
|
|
353
|
-
);
|
|
354
|
-
|
|
355
|
-
$radio-disabled: () !default;
|
|
356
|
-
$radio-disabled: map.merge(
|
|
357
|
-
(
|
|
358
|
-
'input-border-color': getCssVar('disabled-border-color'),
|
|
359
|
-
'input-fill': getCssVar('disabled-bg-color'),
|
|
360
|
-
'icon-color': getCssVar('disabled-bg-color'),
|
|
361
|
-
'checked-input-border-color': getCssVar('disabled-border-color'),
|
|
362
|
-
'checked-input-fill': getCssVar('disabled-bg-color'),
|
|
363
|
-
'checked-icon-color': getCssVar('text-color-placeholder'),
|
|
364
|
-
),
|
|
365
|
-
$radio-disabled
|
|
366
|
-
);
|
|
367
|
-
|
|
368
|
-
$radio-checked: () !default;
|
|
369
|
-
$radio-checked: map.merge(
|
|
370
|
-
(
|
|
371
|
-
'text-color': getCssVar('color-primary'),
|
|
372
|
-
'input-border-color': getCssVar('color-primary'),
|
|
373
|
-
'icon-color': getCssVar('color-primary'),
|
|
374
|
-
),
|
|
375
|
-
$radio-checked
|
|
376
|
-
);
|
|
377
|
-
|
|
378
|
-
$radio-bordered-input-height: () !default;
|
|
379
|
-
$radio-bordered-input-height: map.merge(
|
|
380
|
-
(
|
|
381
|
-
'large': 14px,
|
|
382
|
-
'default': 12px,
|
|
383
|
-
'small': 12px,
|
|
384
|
-
),
|
|
385
|
-
$radio-bordered-input-height
|
|
386
|
-
);
|
|
387
|
-
|
|
388
|
-
$radio-bordered-input-width: () !default;
|
|
389
|
-
$radio-bordered-input-width: map.merge(
|
|
390
|
-
(
|
|
391
|
-
'large': 14px,
|
|
392
|
-
'default': 12px,
|
|
393
|
-
'small': 12px,
|
|
394
|
-
),
|
|
395
|
-
$radio-bordered-input-width
|
|
396
|
-
);
|
|
397
|
-
|
|
398
|
-
// Select
|
|
399
|
-
$select: () !default;
|
|
400
|
-
$select: map.merge(
|
|
401
|
-
(
|
|
402
|
-
'border-color-hover': getCssVar('border-color-hover'),
|
|
403
|
-
'disabled-border': getCssVar('disabled-border-color'),
|
|
404
|
-
'font-size': getCssVar('font-size-base'),
|
|
405
|
-
'close-hover-color': getCssVar('text-color-secondary'),
|
|
406
|
-
'input-color': getCssVar('text-color-placeholder'),
|
|
407
|
-
'multiple-input-color': getCssVar('text-color-regular'),
|
|
408
|
-
'input-focus-border-color': getCssVar('color-primary'),
|
|
409
|
-
'input-font-size': 14px,
|
|
410
|
-
),
|
|
411
|
-
$select
|
|
412
|
-
);
|
|
413
|
-
|
|
414
|
-
$select-option: () !default;
|
|
415
|
-
$select-option: map.merge(
|
|
416
|
-
(
|
|
417
|
-
'text-color': getCssVar('text-color-regular'),
|
|
418
|
-
'disabled-color': getCssVar('text-color-placeholder'),
|
|
419
|
-
'height': 34px,
|
|
420
|
-
'hover-background': getCssVar('fill-color', 'light'),
|
|
421
|
-
'selected-text-color': getCssVar('color-primary'),
|
|
422
|
-
),
|
|
423
|
-
$select-option
|
|
424
|
-
);
|
|
425
|
-
|
|
426
|
-
$select-group: () !default;
|
|
427
|
-
$select-group: map.merge(
|
|
428
|
-
(
|
|
429
|
-
'text-color': getCssVar('color-info'),
|
|
430
|
-
'height': 30px,
|
|
431
|
-
'font-size': 12px,
|
|
432
|
-
),
|
|
433
|
-
$select-group
|
|
434
|
-
);
|
|
435
|
-
|
|
436
|
-
$select-dropdown: () !default;
|
|
437
|
-
$select-dropdown: map.merge(
|
|
438
|
-
(
|
|
439
|
-
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
440
|
-
'shadow': getCssVar('box-shadow-light'),
|
|
441
|
-
'empty-color': getCssVar('text-color-secondary'),
|
|
442
|
-
'max-height': 274px,
|
|
443
|
-
'padding': 6px 0,
|
|
444
|
-
'empty-padding': 10px 0,
|
|
445
|
-
'border': 1px solid getCssVar('border-color-light'),
|
|
446
|
-
),
|
|
447
|
-
$select-dropdown
|
|
448
|
-
);
|
|
449
|
-
|
|
450
|
-
$select-tags-prefix-padding: () !default;
|
|
451
|
-
$select-tags-prefix-padding: map.merge(
|
|
452
|
-
(
|
|
453
|
-
'large': 8px,
|
|
454
|
-
'default': 6px,
|
|
455
|
-
'small': 4px,
|
|
456
|
-
),
|
|
457
|
-
$select-tags-prefix-padding
|
|
458
|
-
);
|
|
459
|
-
|
|
460
|
-
// Alert
|
|
461
|
-
// css3 var in packages/theme-chalk/src/alert.scss
|
|
462
|
-
$alert: () !default;
|
|
463
|
-
$alert: map.merge(
|
|
464
|
-
(
|
|
465
|
-
'padding': 8px 16px,
|
|
466
|
-
'border-radius-base': getCssVar('border-radius-base'),
|
|
467
|
-
'title-font-size': 13px,
|
|
468
|
-
'description-font-size': 12px,
|
|
469
|
-
'close-font-size': 12px,
|
|
470
|
-
'close-customed-font-size': 13px,
|
|
471
|
-
'icon-size': 16px,
|
|
472
|
-
'icon-large-size': 28px,
|
|
473
|
-
),
|
|
474
|
-
$alert
|
|
475
|
-
);
|
|
476
|
-
|
|
477
|
-
// MessageBox
|
|
478
|
-
// css3 var in packages/theme-chalk/src/message-box.scss
|
|
479
|
-
$messagebox: () !default;
|
|
480
|
-
$messagebox: map.merge(
|
|
481
|
-
(
|
|
482
|
-
'title-color': getCssVar('text-color-primary'),
|
|
483
|
-
'width': 420px,
|
|
484
|
-
'border-radius': 4px,
|
|
485
|
-
'font-size': getCssVar('font-size-large'),
|
|
486
|
-
'content-font-size': getCssVar('font-size-base'),
|
|
487
|
-
'content-color': getCssVar('text-color-regular'),
|
|
488
|
-
'error-font-size': 12px,
|
|
489
|
-
'padding-primary': 15px,
|
|
490
|
-
),
|
|
491
|
-
$messagebox
|
|
492
|
-
);
|
|
493
|
-
|
|
494
|
-
// Message
|
|
495
|
-
// css3 var in packages/theme-chalk/src/message.scss
|
|
496
|
-
$message: () !default;
|
|
497
|
-
$message: map.merge(
|
|
498
|
-
(
|
|
499
|
-
'bg-color': getCssVar('color', 'info', 'light-9'),
|
|
500
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
501
|
-
'padding': 15px 19px,
|
|
502
|
-
'close-size': 16px,
|
|
503
|
-
'close-icon-color': getCssVar('text-color-placeholder'),
|
|
504
|
-
'close-hover-color': getCssVar('text-color-secondary'),
|
|
505
|
-
),
|
|
506
|
-
$message
|
|
507
|
-
);
|
|
508
|
-
|
|
509
|
-
// Notification
|
|
510
|
-
// css3 var in packages/theme-chalk/src/notification.scss
|
|
511
|
-
$notification: () !default;
|
|
512
|
-
$notification: map.merge(
|
|
513
|
-
(
|
|
514
|
-
'width': 330px,
|
|
515
|
-
'padding': 14px 26px 14px 13px,
|
|
516
|
-
'radius': 8px,
|
|
517
|
-
'shadow': getCssVar('box-shadow-light'),
|
|
518
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
519
|
-
'icon-size': 24px,
|
|
520
|
-
'close-font-size':
|
|
521
|
-
var(
|
|
522
|
-
#{getCssVarName('message-close-size')},
|
|
523
|
-
map.get($message, 'close-size')
|
|
524
|
-
),
|
|
525
|
-
'group-margin-left': 13px,
|
|
526
|
-
'group-margin-right': 8px,
|
|
527
|
-
'content-font-size': getCssVar('font-size-base'),
|
|
528
|
-
'content-color': getCssVar('text-color-regular'),
|
|
529
|
-
'title-font-size': 16px,
|
|
530
|
-
'title-color': getCssVar('text-color-primary'),
|
|
531
|
-
'close-color': getCssVar('text-color-secondary'),
|
|
532
|
-
'close-hover-color': getCssVar('text-color-regular'),
|
|
533
|
-
),
|
|
534
|
-
$notification
|
|
535
|
-
);
|
|
536
|
-
|
|
537
|
-
// Input
|
|
538
|
-
// css3 var in packages/theme-chalk/src/input.scss
|
|
539
|
-
$input: () !default;
|
|
540
|
-
$input: map.merge(
|
|
541
|
-
(
|
|
542
|
-
'text-color': getCssVar('text-color-regular'),
|
|
543
|
-
'border': getCssVar('border'),
|
|
544
|
-
'hover-border': getCssVar('border-color-hover'),
|
|
545
|
-
'focus-border': getCssVar('color-primary'),
|
|
546
|
-
'transparent-border': 0 0 0 1px transparent inset,
|
|
547
|
-
'border-color': getCssVar('border-color'),
|
|
548
|
-
'border-radius': getCssVar('border-radius-base'),
|
|
549
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
550
|
-
'icon-color': getCssVar('text-color-placeholder'),
|
|
551
|
-
'placeholder-color': getCssVar('text-color-placeholder'),
|
|
552
|
-
'hover-border-color': getCssVar('border-color-hover'),
|
|
553
|
-
'clear-hover-color': getCssVar('text-color-secondary'),
|
|
554
|
-
'focus-border-color': getCssVar('color-primary'),
|
|
555
|
-
),
|
|
556
|
-
$input
|
|
557
|
-
);
|
|
558
|
-
|
|
559
|
-
$input-disabled: () !default;
|
|
560
|
-
$input-disabled: map.merge(
|
|
561
|
-
(
|
|
562
|
-
'fill': getCssVar('disabled-bg-color'),
|
|
563
|
-
'border': getCssVar('disabled-border-color'),
|
|
564
|
-
'text-color': getCssVar('disabled-text-color'),
|
|
565
|
-
'placeholder-color': getCssVar('text-color-placeholder'),
|
|
566
|
-
),
|
|
567
|
-
$input-disabled
|
|
568
|
-
);
|
|
569
|
-
|
|
570
|
-
$input-font-size: () !default;
|
|
571
|
-
$input-font-size: map.merge(
|
|
572
|
-
(
|
|
573
|
-
'large': 14px,
|
|
574
|
-
'default': 14px,
|
|
575
|
-
'small': 12px,
|
|
576
|
-
),
|
|
577
|
-
$input-font-size
|
|
578
|
-
);
|
|
579
|
-
|
|
580
|
-
$input-height: () !default;
|
|
581
|
-
$input-height: map.merge($common-component-size, $input-height);
|
|
582
|
-
|
|
583
|
-
$input-line-height: () !default;
|
|
584
|
-
$input-line-height: map.merge($common-component-size, $input-line-height);
|
|
585
|
-
|
|
586
|
-
$input-number-width: () !default;
|
|
587
|
-
$input-number-width: map.merge(
|
|
588
|
-
(
|
|
589
|
-
'large': 180px,
|
|
590
|
-
'default': 150px,
|
|
591
|
-
'small': 120px,
|
|
592
|
-
),
|
|
593
|
-
$input-number-width
|
|
594
|
-
);
|
|
595
|
-
|
|
596
|
-
$input-padding-horizontal: () !default;
|
|
597
|
-
$input-padding-horizontal: map.merge(
|
|
598
|
-
(
|
|
599
|
-
'large': 16px,
|
|
600
|
-
'default': 12px,
|
|
601
|
-
'small': 8px,
|
|
602
|
-
),
|
|
603
|
-
$input-padding-horizontal
|
|
604
|
-
);
|
|
605
|
-
|
|
606
|
-
// Cascader
|
|
607
|
-
// css3 var in packages/theme-chalk/src/cascader.scss
|
|
608
|
-
$cascader: () !default;
|
|
609
|
-
$cascader: map.merge(
|
|
610
|
-
(
|
|
611
|
-
'menu-text-color': getCssVar('text-color-regular'),
|
|
612
|
-
'menu-selected-text-color': getCssVar('color-primary'),
|
|
613
|
-
'menu-fill': getCssVar('bg-color', 'overlay'),
|
|
614
|
-
'menu-font-size': getCssVar('font-size-base'),
|
|
615
|
-
'menu-radius': getCssVar('border-radius-base'),
|
|
616
|
-
'menu-border': solid 1px getCssVar('border-color-light'),
|
|
617
|
-
'menu-shadow': getCssVar('box-shadow-light'),
|
|
618
|
-
'node-background-hover': getCssVar('fill-color', 'light'),
|
|
619
|
-
'node-color-disabled': getCssVar('text-color-placeholder'),
|
|
620
|
-
'color-empty': getCssVar('text-color-placeholder'),
|
|
621
|
-
'tag-background': getCssVar('fill-color'),
|
|
622
|
-
),
|
|
623
|
-
$cascader
|
|
624
|
-
);
|
|
625
|
-
//statistic
|
|
626
|
-
// css3 var in packages/theme-chalk/src/statistic.scss
|
|
627
|
-
$statistic: () !default;
|
|
628
|
-
$statistic: map.merge(
|
|
629
|
-
(
|
|
630
|
-
'title-font-weight': 400,
|
|
631
|
-
'title-font-size': getCssVar('font-size', 'extra-small'),
|
|
632
|
-
'title-color': getCssVar('text-color', 'regular'),
|
|
633
|
-
'content-font-weight': 400,
|
|
634
|
-
'content-font-size': getCssVar('font-size', 'extra-large'),
|
|
635
|
-
'content-color': getCssVar('text-color', 'primary'),
|
|
636
|
-
),
|
|
637
|
-
$statistic
|
|
638
|
-
);
|
|
639
|
-
// Button
|
|
640
|
-
// css3 var in packages/theme-chalk/src/button.scss
|
|
641
|
-
$button: () !default;
|
|
642
|
-
$button: map.merge(
|
|
643
|
-
(
|
|
644
|
-
'font-weight': getCssVar('font-weight-primary'),
|
|
645
|
-
'border-color': getCssVar('border-color'),
|
|
646
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
647
|
-
'text-color': getCssVar('text-color', 'regular'),
|
|
648
|
-
'disabled-text-color': getCssVar('disabled-text-color'),
|
|
649
|
-
'disabled-bg-color': getCssVar('fill-color', 'blank'),
|
|
650
|
-
'disabled-border-color': getCssVar('border-color-light'),
|
|
651
|
-
'divide-border-color': rgba($color-white, 0.5),
|
|
652
|
-
'hover-text-color': getCssVar('color-primary'),
|
|
653
|
-
'hover-bg-color': getCssVar('color-primary', 'light-9'),
|
|
654
|
-
'hover-border-color': getCssVar('color-primary-light-7'),
|
|
655
|
-
'active-text-color': getCssVar('button-hover-text-color'),
|
|
656
|
-
'active-border-color': getCssVar('color-primary'),
|
|
657
|
-
'active-bg-color': getCssVar('button', 'hover-bg-color'),
|
|
658
|
-
'outline-color': getCssVar('color-primary', 'light-5'),
|
|
659
|
-
'hover-link-text-color': getCssVar('color-info'),
|
|
660
|
-
'active-color': getCssVar('text-color', 'primary'),
|
|
661
|
-
),
|
|
662
|
-
$button
|
|
663
|
-
);
|
|
664
|
-
|
|
665
|
-
$button-border-width: $border-width !default;
|
|
666
|
-
|
|
667
|
-
// need mix, so do not use css var
|
|
668
|
-
$button-hover-tint-percent: 20%;
|
|
669
|
-
$button-active-shade-percent: 10%;
|
|
670
|
-
|
|
671
|
-
$button-border-color: () !default;
|
|
672
|
-
$button-bg-color: () !default;
|
|
673
|
-
$button-text-color: () !default;
|
|
674
|
-
|
|
675
|
-
@each $type in $types {
|
|
676
|
-
$button-border-color: map.merge(
|
|
677
|
-
(
|
|
678
|
-
$type: map.get($colors, $type, 'base'),
|
|
679
|
-
),
|
|
680
|
-
$button-border-color
|
|
681
|
-
) !global;
|
|
682
|
-
|
|
683
|
-
$button-bg-color: map.merge(
|
|
684
|
-
(
|
|
685
|
-
$type: map.get($colors, $type, 'base'),
|
|
686
|
-
),
|
|
687
|
-
$button-bg-color
|
|
688
|
-
) !global;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
$button-font-size: () !default;
|
|
692
|
-
$button-font-size: map.merge(
|
|
693
|
-
(
|
|
694
|
-
'large': getCssVar('font-size', 'base'),
|
|
695
|
-
'default': getCssVar('font-size', 'base'),
|
|
696
|
-
'small': 12px,
|
|
697
|
-
),
|
|
698
|
-
$button-font-size
|
|
699
|
-
);
|
|
700
|
-
|
|
701
|
-
$button-border-radius: () !default;
|
|
702
|
-
$button-border-radius: map.merge(
|
|
703
|
-
(
|
|
704
|
-
'large': getCssVar('border-radius', 'base'),
|
|
705
|
-
'default': getCssVar('border-radius', 'base'),
|
|
706
|
-
'small': calc(#{getCssVar('border-radius', 'base')} - 1px),
|
|
707
|
-
),
|
|
708
|
-
$button-border-radius
|
|
709
|
-
);
|
|
710
|
-
|
|
711
|
-
$button-padding-vertical: () !default;
|
|
712
|
-
$button-padding-vertical: map.merge(
|
|
713
|
-
(
|
|
714
|
-
'large': 13px,
|
|
715
|
-
'default': 9px,
|
|
716
|
-
'small': 6px,
|
|
717
|
-
),
|
|
718
|
-
$button-padding-vertical
|
|
719
|
-
);
|
|
720
|
-
|
|
721
|
-
$button-padding-horizontal: () !default;
|
|
722
|
-
$button-padding-horizontal: map.merge(
|
|
723
|
-
(
|
|
724
|
-
'large': 20px,
|
|
725
|
-
'default': 16px,
|
|
726
|
-
'small': 12px,
|
|
727
|
-
),
|
|
728
|
-
$button-padding-horizontal
|
|
729
|
-
);
|
|
730
|
-
|
|
731
|
-
// Switch
|
|
732
|
-
// css3 var in packages/theme-chalk/src/switch.scss
|
|
733
|
-
$switch: () !default;
|
|
734
|
-
$switch: map.merge(
|
|
735
|
-
(
|
|
736
|
-
'on-color': getCssVar('color-primary'),
|
|
737
|
-
'off-color': getCssVar('border-color'),
|
|
738
|
-
),
|
|
739
|
-
$switch
|
|
740
|
-
);
|
|
741
|
-
|
|
742
|
-
// Dialog
|
|
743
|
-
// css3 var in packages/theme-chalk/src/dialog.scss
|
|
744
|
-
$dialog: () !default;
|
|
745
|
-
$dialog: map.merge(
|
|
746
|
-
(
|
|
747
|
-
'width': 50%,
|
|
748
|
-
'margin-top': 15vh,
|
|
749
|
-
'bg-color': getCssVar('bg-color'),
|
|
750
|
-
'box-shadow': getCssVar('box-shadow'),
|
|
751
|
-
'title-font-size': getCssVar('font-size-large'),
|
|
752
|
-
'content-font-size': 14px,
|
|
753
|
-
'font-line-height': getCssVar('font-line-height-primary'),
|
|
754
|
-
'padding-primary': 20px,
|
|
755
|
-
'border-radius': getCssVar('border-radius-small'),
|
|
756
|
-
),
|
|
757
|
-
$dialog
|
|
758
|
-
);
|
|
759
|
-
|
|
760
|
-
// Table
|
|
761
|
-
// css3 var in packages/theme-chalk/src/table.scss
|
|
762
|
-
$table: () !default;
|
|
763
|
-
$table: map.merge(
|
|
764
|
-
(
|
|
765
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
766
|
-
'border': 1px solid getCssVar('table-border-color'),
|
|
767
|
-
'text-color': getCssVar('text-color-regular'),
|
|
768
|
-
'header-text-color': getCssVar('text-color-secondary'),
|
|
769
|
-
'row-hover-bg-color': getCssVar('fill-color', 'light'),
|
|
770
|
-
'current-row-bg-color': getCssVar('color-primary-light-9'),
|
|
771
|
-
'header-bg-color': getCssVar('bg-color'),
|
|
772
|
-
'fixed-box-shadow': getCssVar('box-shadow', 'light'),
|
|
773
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
774
|
-
'tr-bg-color': getCssVar('fill-color', 'blank'),
|
|
775
|
-
'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
|
|
776
|
-
'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
|
|
777
|
-
'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
|
|
778
|
-
),
|
|
779
|
-
$table
|
|
780
|
-
);
|
|
781
|
-
|
|
782
|
-
$table-font-size: () !default;
|
|
783
|
-
$table-font-size: map.merge(
|
|
784
|
-
(
|
|
785
|
-
'large': getCssVar('font-size', 'base'),
|
|
786
|
-
'default': 14px,
|
|
787
|
-
'small': 12px,
|
|
788
|
-
),
|
|
789
|
-
$table-font-size
|
|
790
|
-
);
|
|
791
|
-
|
|
792
|
-
$table-padding: () !default;
|
|
793
|
-
$table-padding: map.merge(
|
|
794
|
-
(
|
|
795
|
-
'large': 12px 0,
|
|
796
|
-
'default': 8px 0,
|
|
797
|
-
'small': 4px 0,
|
|
798
|
-
),
|
|
799
|
-
$table-padding
|
|
800
|
-
);
|
|
801
|
-
|
|
802
|
-
$table-cell-padding: () !default;
|
|
803
|
-
$table-cell-padding: map.merge(
|
|
804
|
-
(
|
|
805
|
-
'large': 0 16px,
|
|
806
|
-
'default': 0 12px,
|
|
807
|
-
'small': 0 8px,
|
|
808
|
-
),
|
|
809
|
-
$table-cell-padding
|
|
810
|
-
);
|
|
811
|
-
|
|
812
|
-
// Pagination
|
|
813
|
-
// css3 var in packages/theme-chalk/src/pagination.scss
|
|
814
|
-
$pagination: () !default;
|
|
815
|
-
$pagination: map.merge(
|
|
816
|
-
(
|
|
817
|
-
'font-size': 14px,
|
|
818
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
819
|
-
'text-color': getCssVar('text-color-primary'),
|
|
820
|
-
'border-radius': 2px,
|
|
821
|
-
'button-color': getCssVar('text-color-primary'),
|
|
822
|
-
'button-width': 32px,
|
|
823
|
-
'button-height': 32px,
|
|
824
|
-
'button-disabled-color': getCssVar('text-color-placeholder'),
|
|
825
|
-
'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
|
|
826
|
-
'button-bg-color': getCssVar('fill-color'),
|
|
827
|
-
'hover-color': getCssVar('color-primary'),
|
|
828
|
-
'font-size-small': 12px,
|
|
829
|
-
'button-width-small': 24px,
|
|
830
|
-
'button-height-small': 24px,
|
|
831
|
-
'item-gap': 16px,
|
|
832
|
-
),
|
|
833
|
-
$pagination
|
|
834
|
-
);
|
|
835
|
-
|
|
836
|
-
// Popup
|
|
837
|
-
// css3 var in packages/theme-chalk/src/popup.scss
|
|
838
|
-
$popup: () !default;
|
|
839
|
-
$popup: map.merge(
|
|
840
|
-
(
|
|
841
|
-
'modal-bg-color': getCssVar('color-black'),
|
|
842
|
-
'modal-opacity': 0.5,
|
|
843
|
-
),
|
|
844
|
-
$popup
|
|
845
|
-
);
|
|
846
|
-
|
|
847
|
-
// Popover
|
|
848
|
-
// css3 var in packages/theme-chalk/src/popover.scss
|
|
849
|
-
$popover: () !default;
|
|
850
|
-
$popover: map.merge(
|
|
851
|
-
(
|
|
852
|
-
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
853
|
-
'font-size': getCssVar('font-size-base'),
|
|
854
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
855
|
-
'padding': 12px,
|
|
856
|
-
'padding-large': 18px 20px,
|
|
857
|
-
'title-font-size': 16px,
|
|
858
|
-
'title-text-color': getCssVar('text-color-primary'),
|
|
859
|
-
'border-radius': 4px,
|
|
860
|
-
),
|
|
861
|
-
$popover
|
|
862
|
-
);
|
|
863
|
-
|
|
864
|
-
// popper
|
|
865
|
-
// Pay attention to the difference between 'popper' and 'popover'
|
|
866
|
-
$popper: () !default;
|
|
867
|
-
$popper: map.merge(
|
|
868
|
-
(
|
|
869
|
-
'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
|
|
870
|
-
),
|
|
871
|
-
$popper
|
|
872
|
-
);
|
|
873
|
-
|
|
874
|
-
// skeleton
|
|
875
|
-
$skeleton: () !default;
|
|
876
|
-
$skeleton: map.merge(
|
|
877
|
-
(
|
|
878
|
-
'color': getCssVar('fill-color'),
|
|
879
|
-
'to-color': getCssVar('fill-color', 'darker'),
|
|
880
|
-
),
|
|
881
|
-
$skeleton
|
|
882
|
-
);
|
|
883
|
-
|
|
884
|
-
// Tag
|
|
885
|
-
// css3 var in packages/theme-chalk/src/tag.scss
|
|
886
|
-
$tag: () !default;
|
|
887
|
-
$tag: map.merge(
|
|
888
|
-
(
|
|
889
|
-
'font-size': 12px,
|
|
890
|
-
'border-radius': 4px,
|
|
891
|
-
'border-radius-rounded': 9999px,
|
|
892
|
-
),
|
|
893
|
-
$tag
|
|
894
|
-
);
|
|
895
|
-
|
|
896
|
-
$tag-height: () !default;
|
|
897
|
-
$tag-height: map.merge(
|
|
898
|
-
(
|
|
899
|
-
'large': 32px,
|
|
900
|
-
'default': 24px,
|
|
901
|
-
'small': 20px,
|
|
902
|
-
),
|
|
903
|
-
$tag-height
|
|
904
|
-
);
|
|
905
|
-
|
|
906
|
-
$tag-padding: () !default;
|
|
907
|
-
$tag-padding: map.merge(
|
|
908
|
-
(
|
|
909
|
-
'large': 12px,
|
|
910
|
-
'default': 10px,
|
|
911
|
-
'small': 8px,
|
|
912
|
-
),
|
|
913
|
-
$tag-padding
|
|
914
|
-
);
|
|
915
|
-
|
|
916
|
-
$tag-icon-size: () !default;
|
|
917
|
-
$tag-icon-size: map.merge(
|
|
918
|
-
(
|
|
919
|
-
'large': 16px,
|
|
920
|
-
'default': 14px,
|
|
921
|
-
'small': 12px,
|
|
922
|
-
),
|
|
923
|
-
$tag-icon-size
|
|
924
|
-
);
|
|
925
|
-
|
|
926
|
-
// Tree
|
|
927
|
-
// css3 var in packages/theme-chalk/src/tree.scss
|
|
928
|
-
$tree: () !default;
|
|
929
|
-
$tree: map.merge(
|
|
930
|
-
(
|
|
931
|
-
'node-hover-bg-color': getCssVar('fill-color', 'light'),
|
|
932
|
-
'text-color': getCssVar('text-color-regular'),
|
|
933
|
-
'expand-icon-color': getCssVar('text-color-placeholder'),
|
|
934
|
-
),
|
|
935
|
-
$tree
|
|
936
|
-
);
|
|
937
|
-
|
|
938
|
-
// Dropdown
|
|
939
|
-
$dropdown: () !default;
|
|
940
|
-
$dropdown: map.merge(
|
|
941
|
-
(
|
|
942
|
-
'menu-box-shadow': getCssVar('box-shadow-light'),
|
|
943
|
-
'menuItem-hover-fill': getCssVar('color-primary-light-9'),
|
|
944
|
-
'menuItem-hover-color': getCssVar('color-primary'),
|
|
945
|
-
'menu-index': 10,
|
|
946
|
-
),
|
|
947
|
-
$dropdown
|
|
948
|
-
);
|
|
949
|
-
|
|
950
|
-
// drawer
|
|
951
|
-
$drawer: () !default;
|
|
952
|
-
$drawer: map.merge(
|
|
953
|
-
(
|
|
954
|
-
'bg-color':
|
|
955
|
-
var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
|
|
956
|
-
'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
|
|
957
|
-
),
|
|
958
|
-
$drawer
|
|
959
|
-
);
|
|
960
|
-
|
|
961
|
-
// Badge
|
|
962
|
-
// css3 var in packages/theme-chalk/src/badge.scss
|
|
963
|
-
$badge: () !default;
|
|
964
|
-
$badge: map.merge(
|
|
965
|
-
(
|
|
966
|
-
'bg-color': getCssVar('color-danger'),
|
|
967
|
-
'radius': 10px,
|
|
968
|
-
'font-size': 12px,
|
|
969
|
-
'padding': 6px,
|
|
970
|
-
'size': 18px,
|
|
971
|
-
),
|
|
972
|
-
$badge
|
|
973
|
-
);
|
|
974
|
-
|
|
975
|
-
// Card
|
|
976
|
-
$card: () !default;
|
|
977
|
-
$card: map.merge(
|
|
978
|
-
(
|
|
979
|
-
'border-color': getCssVar('border-color', 'light'),
|
|
980
|
-
'border-radius': 4px,
|
|
981
|
-
'padding': 20px,
|
|
982
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
983
|
-
),
|
|
984
|
-
$card
|
|
985
|
-
);
|
|
986
|
-
|
|
987
|
-
// Slider
|
|
988
|
-
// css3 var in packages/theme-chalk/src/slider.scss
|
|
989
|
-
$slider: () !default;
|
|
990
|
-
$slider: map.merge(
|
|
991
|
-
(
|
|
992
|
-
'main-bg-color': getCssVar('color-primary'),
|
|
993
|
-
'runway-bg-color': getCssVar('border-color-light'),
|
|
994
|
-
'stop-bg-color': getCssVar('color-white'),
|
|
995
|
-
'disabled-color': getCssVar('text-color-placeholder'),
|
|
996
|
-
'border-radius': 3px,
|
|
997
|
-
'height': 6px,
|
|
998
|
-
'button-size': 20px,
|
|
999
|
-
'button-wrapper-size': 36px,
|
|
1000
|
-
'button-wrapper-offset': -15px,
|
|
1001
|
-
),
|
|
1002
|
-
$slider
|
|
1003
|
-
);
|
|
1004
|
-
|
|
1005
|
-
// Menu
|
|
1006
|
-
// css3 var in packages/theme-chalk/src/menu.scss
|
|
1007
|
-
$menu: () !default;
|
|
1008
|
-
$menu: map.merge(
|
|
1009
|
-
(
|
|
1010
|
-
'active-color': getCssVar('color-primary'),
|
|
1011
|
-
'text-color': getCssVar('text-color-primary'),
|
|
1012
|
-
'hover-text-color': getCssVar('color-primary'),
|
|
1013
|
-
'bg-color': getCssVar('fill-color', 'blank'),
|
|
1014
|
-
'hover-bg-color': getCssVar('color-primary-light-9'),
|
|
1015
|
-
'item-height': 56px,
|
|
1016
|
-
'sub-item-height': calc(#{getCssVar('menu-item-height')} - 6px),
|
|
1017
|
-
'horizontal-sub-item-height': 36px,
|
|
1018
|
-
'item-font-size': getCssVar('font-size-base'),
|
|
1019
|
-
'item-hover-fill': getCssVar('color-primary-light-9'),
|
|
1020
|
-
'border-color': getCssVar('border-color'),
|
|
1021
|
-
'base-level-padding': 20px,
|
|
1022
|
-
'level-padding': 20px,
|
|
1023
|
-
'icon-width': 24px,
|
|
1024
|
-
),
|
|
1025
|
-
$menu
|
|
1026
|
-
);
|
|
1027
|
-
|
|
1028
|
-
// Rate
|
|
1029
|
-
$rate: () !default;
|
|
1030
|
-
$rate: map.merge(
|
|
1031
|
-
(
|
|
1032
|
-
'height': 20px,
|
|
1033
|
-
'font-size': getCssVar('font-size-base'),
|
|
1034
|
-
'icon-size': 18px,
|
|
1035
|
-
'icon-margin': 6px,
|
|
1036
|
-
// seems not be used, to be removed
|
|
1037
|
-
// 'icon-color': getCssVar('text-color-placeholder),
|
|
1038
|
-
'void-color': getCssVar('border-color', 'darker'),
|
|
1039
|
-
'fill-color': #f7ba2a,
|
|
1040
|
-
'disabled-void-color': getCssVar('fill-color'),
|
|
1041
|
-
'text-color': getCssVar('text-color', 'primary'),
|
|
1042
|
-
),
|
|
1043
|
-
$rate
|
|
1044
|
-
);
|
|
1045
|
-
|
|
1046
|
-
// DatePicker
|
|
1047
|
-
// css3 var packages/theme-chalk/src/date-picker/var.scss
|
|
1048
|
-
$datepicker: () !default;
|
|
1049
|
-
$datepicker: map.merge(
|
|
1050
|
-
(
|
|
1051
|
-
'text-color': getCssVar('text-color-regular'),
|
|
1052
|
-
'off-text-color': getCssVar('text-color-placeholder'),
|
|
1053
|
-
'header-text-color': getCssVar('text-color-regular'),
|
|
1054
|
-
'icon-color': getCssVar('text-color-primary'),
|
|
1055
|
-
'border-color': getCssVar('disabled-border-color'),
|
|
1056
|
-
'inner-border-color': getCssVar('border-color-light'),
|
|
1057
|
-
'inrange-bg-color': getCssVar('border-color-extra-light'),
|
|
1058
|
-
'inrange-hover-bg-color': getCssVar('border-color-extra-light'),
|
|
1059
|
-
'active-color': getCssVar('color-primary'),
|
|
1060
|
-
'hover-text-color': getCssVar('color-primary'),
|
|
1061
|
-
),
|
|
1062
|
-
$datepicker
|
|
1063
|
-
);
|
|
1064
|
-
|
|
1065
|
-
$date-editor: () !default;
|
|
1066
|
-
$date-editor: map.merge(
|
|
1067
|
-
(
|
|
1068
|
-
'width': 220px,
|
|
1069
|
-
'monthrange-width': 300px,
|
|
1070
|
-
'daterange-width': 350px,
|
|
1071
|
-
'datetimerange-width': 400px,
|
|
1072
|
-
),
|
|
1073
|
-
$date-editor
|
|
1074
|
-
);
|
|
1075
|
-
|
|
1076
|
-
// Loading
|
|
1077
|
-
// css3 var in packages/theme-chalk/src/loading.scss
|
|
1078
|
-
$loading: () !default;
|
|
1079
|
-
$loading: map.merge(
|
|
1080
|
-
(
|
|
1081
|
-
'spinner-size': 42px,
|
|
1082
|
-
'fullscreen-spinner-size': 50px,
|
|
1083
|
-
),
|
|
1084
|
-
$loading
|
|
1085
|
-
);
|
|
1086
|
-
|
|
1087
|
-
// Scrollbar
|
|
1088
|
-
// css3 var in packages/theme-chalk/src/scrollbar.scss
|
|
1089
|
-
$scrollbar: () !default;
|
|
1090
|
-
$scrollbar: map.merge(
|
|
1091
|
-
(
|
|
1092
|
-
'opacity': 0.3,
|
|
1093
|
-
'bg-color': getCssVar('text-color-secondary'),
|
|
1094
|
-
'hover-opacity': 0.5,
|
|
1095
|
-
'hover-bg-color': getCssVar('text-color-secondary'),
|
|
1096
|
-
),
|
|
1097
|
-
$scrollbar
|
|
1098
|
-
);
|
|
1099
|
-
|
|
1100
|
-
// Carousel
|
|
1101
|
-
// css3 var in packages/theme-chalk/src/carousel.scss
|
|
1102
|
-
$carousel: () !default;
|
|
1103
|
-
$carousel: map.merge(
|
|
1104
|
-
(
|
|
1105
|
-
'arrow-font-size': 12px,
|
|
1106
|
-
'arrow-size': 36px,
|
|
1107
|
-
'arrow-background': rgba(31, 45, 61, 0.11),
|
|
1108
|
-
'arrow-hover-background': rgba(31, 45, 61, 0.23),
|
|
1109
|
-
'indicator-width': 30px,
|
|
1110
|
-
'indicator-height': 2px,
|
|
1111
|
-
'indicator-padding-horizontal': 4px,
|
|
1112
|
-
'indicator-padding-vertical': 12px,
|
|
1113
|
-
'indicator-out-color': getCssVar('border-color-hover'),
|
|
1114
|
-
),
|
|
1115
|
-
$carousel
|
|
1116
|
-
);
|
|
1117
|
-
|
|
1118
|
-
// Collapse
|
|
1119
|
-
// css3 var in packages/theme-chalk/src/collapse.scss
|
|
1120
|
-
$collapse: () !default;
|
|
1121
|
-
$collapse: map.merge(
|
|
1122
|
-
(
|
|
1123
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
1124
|
-
'header-height': 48px,
|
|
1125
|
-
'header-bg-color': getCssVar('fill-color', 'blank'),
|
|
1126
|
-
'header-text-color': getCssVar('text-color-primary'),
|
|
1127
|
-
'header-font-size': 13px,
|
|
1128
|
-
'content-bg-color': getCssVar('fill-color', 'blank'),
|
|
1129
|
-
'content-font-size': 13px,
|
|
1130
|
-
'content-text-color': getCssVar('text-color-primary'),
|
|
1131
|
-
),
|
|
1132
|
-
$collapse
|
|
1133
|
-
);
|
|
1134
|
-
|
|
1135
|
-
// Transfer
|
|
1136
|
-
// css3 var in packages/theme-chalk/src/transfer.scss
|
|
1137
|
-
$transfer: () !default;
|
|
1138
|
-
$transfer: map.merge(
|
|
1139
|
-
(
|
|
1140
|
-
'border-color': getCssVar('border-color-lighter'),
|
|
1141
|
-
'border-radius': getCssVar('border-radius-base'),
|
|
1142
|
-
'panel-width': 200px,
|
|
1143
|
-
'panel-header-height': 40px,
|
|
1144
|
-
'panel-header-bg-color': getCssVar('fill-color', 'light'),
|
|
1145
|
-
'panel-footer-height': 40px,
|
|
1146
|
-
'panel-body-height': 278px,
|
|
1147
|
-
'item-height': 30px,
|
|
1148
|
-
'filter-height': 32px,
|
|
1149
|
-
),
|
|
1150
|
-
$transfer
|
|
1151
|
-
);
|
|
1152
|
-
|
|
1153
|
-
// Timeline
|
|
1154
|
-
// css3 var in packages/theme-chalk/src/timeline-item.scss
|
|
1155
|
-
$timeline: () !default;
|
|
1156
|
-
$timeline: map.merge(
|
|
1157
|
-
(
|
|
1158
|
-
'node-size-normal': 12px,
|
|
1159
|
-
'node-size-large': 14px,
|
|
1160
|
-
'node-color': getCssVar('border-color-light'),
|
|
1161
|
-
),
|
|
1162
|
-
$timeline
|
|
1163
|
-
);
|
|
1164
|
-
|
|
1165
|
-
// Tabs
|
|
1166
|
-
// css3 var in packages/theme-chalk/src/tabs.scss
|
|
1167
|
-
$tabs: () !default;
|
|
1168
|
-
$tabs: map.merge(
|
|
1169
|
-
(
|
|
1170
|
-
'header-height': 40px,
|
|
1171
|
-
),
|
|
1172
|
-
$tabs
|
|
1173
|
-
);
|
|
1174
|
-
|
|
1175
|
-
// Backtop
|
|
1176
|
-
// css3 var in packages/theme-chalk/src/backtop.scss
|
|
1177
|
-
$backtop: () !default;
|
|
1178
|
-
$backtop: map.merge(
|
|
1179
|
-
(
|
|
1180
|
-
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
1181
|
-
'text-color': getCssVar('color-primary'),
|
|
1182
|
-
'hover-bg-color': getCssVar('border-color-extra-light'),
|
|
1183
|
-
),
|
|
1184
|
-
$backtop
|
|
1185
|
-
);
|
|
1186
|
-
|
|
1187
|
-
// Link
|
|
1188
|
-
// css3 var in packages/theme-chalk/src/link.scss
|
|
1189
|
-
$link: () !default;
|
|
1190
|
-
$link: map.merge(
|
|
1191
|
-
(
|
|
1192
|
-
'font-size': getCssVar('font-size-base'),
|
|
1193
|
-
'font-weight': getCssVar('font-weight-primary'),
|
|
1194
|
-
'text-color': getCssVar('text-color-regular'),
|
|
1195
|
-
'hover-text-color': getCssVar('color-primary'),
|
|
1196
|
-
'disabled-text-color': getCssVar('text-color-placeholder'),
|
|
1197
|
-
),
|
|
1198
|
-
$link
|
|
1199
|
-
);
|
|
1200
|
-
|
|
1201
|
-
$link-text-color: () !default;
|
|
1202
|
-
|
|
1203
|
-
@each $type in $types {
|
|
1204
|
-
$link-text-color: map.merge(
|
|
1205
|
-
$link-text-color,
|
|
1206
|
-
(
|
|
1207
|
-
$type: map.get($colors, $type, 'base'),
|
|
1208
|
-
)
|
|
1209
|
-
) !global;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
// Calendar
|
|
1213
|
-
// css3 var in packages/theme-chalk/src/calendar.scss
|
|
1214
|
-
$calendar: () !default;
|
|
1215
|
-
$calendar: map.merge(
|
|
1216
|
-
(
|
|
1217
|
-
'border':
|
|
1218
|
-
var(
|
|
1219
|
-
#{getCssVarName('table-border')},
|
|
1220
|
-
1px solid #{getCssVar('border-color-lighter')}
|
|
1221
|
-
),
|
|
1222
|
-
'header-border-bottom': getCssVar('calendar-border'),
|
|
1223
|
-
'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
|
|
1224
|
-
'cell-width': 85px,
|
|
1225
|
-
),
|
|
1226
|
-
$calendar
|
|
1227
|
-
);
|
|
1228
|
-
|
|
1229
|
-
// Form
|
|
1230
|
-
// css3 var in packages/theme-chalk/src/form.scss
|
|
1231
|
-
$form: () !default;
|
|
1232
|
-
$form: map.merge(
|
|
1233
|
-
(
|
|
1234
|
-
'label-font-size': getCssVar('font-size-base'),
|
|
1235
|
-
),
|
|
1236
|
-
$form
|
|
1237
|
-
);
|
|
1238
|
-
|
|
1239
|
-
// Avatar
|
|
1240
|
-
// css3 var in packages/theme-chalk/src/avatar.scss
|
|
1241
|
-
$avatar: () !default;
|
|
1242
|
-
$avatar: map.merge(
|
|
1243
|
-
(
|
|
1244
|
-
'text-color': getCssVar('color-white'),
|
|
1245
|
-
'bg-color': getCssVar('text-color', 'disabled'),
|
|
1246
|
-
'text-size': 14px,
|
|
1247
|
-
'icon-size': 18px,
|
|
1248
|
-
'border-radius': getCssVar('border-radius-base'),
|
|
1249
|
-
),
|
|
1250
|
-
$avatar
|
|
1251
|
-
);
|
|
1252
|
-
|
|
1253
|
-
$avatar-size: () !default;
|
|
1254
|
-
$avatar-size: map.merge(
|
|
1255
|
-
(
|
|
1256
|
-
'large': 56px,
|
|
1257
|
-
'default': 40px,
|
|
1258
|
-
'small': 24px,
|
|
1259
|
-
),
|
|
1260
|
-
$avatar-size
|
|
1261
|
-
);
|
|
1262
|
-
|
|
1263
|
-
// Empty
|
|
1264
|
-
// css3 var in packages/theme-chalk/src/empty.scss
|
|
1265
|
-
$empty: () !default;
|
|
1266
|
-
$empty: map.merge(
|
|
1267
|
-
(
|
|
1268
|
-
'padding': 40px 0,
|
|
1269
|
-
'image-width': 160px,
|
|
1270
|
-
'description-margin-top': 20px,
|
|
1271
|
-
'bottom-margin-top': 20px,
|
|
1272
|
-
'fill-color-0': getCssVar('color-white'),
|
|
1273
|
-
'fill-color-1': #fcfcfd,
|
|
1274
|
-
'fill-color-2': #f8f9fb,
|
|
1275
|
-
'fill-color-3': #f7f8fc,
|
|
1276
|
-
'fill-color-4': #eeeff3,
|
|
1277
|
-
'fill-color-5': #edeef2,
|
|
1278
|
-
'fill-color-6': #e9ebef,
|
|
1279
|
-
'fill-color-7': #e5e7e9,
|
|
1280
|
-
'fill-color-8': #e0e3e9,
|
|
1281
|
-
'fill-color-9': #d5d7de,
|
|
1282
|
-
),
|
|
1283
|
-
$empty
|
|
1284
|
-
);
|
|
1285
|
-
|
|
1286
|
-
// Descriptions
|
|
1287
|
-
// css3 var in packages/theme-chalk/src/descriptions.scss
|
|
1288
|
-
$descriptions: () !default;
|
|
1289
|
-
$descriptions: map.merge(
|
|
1290
|
-
(
|
|
1291
|
-
'table-border': 1px solid getCssVar('border-color-lighter'),
|
|
1292
|
-
'item-bordered-label-background': getCssVar('fill-color', 'light'),
|
|
1293
|
-
),
|
|
1294
|
-
$descriptions
|
|
1295
|
-
);
|
|
1296
|
-
|
|
1297
|
-
// Result
|
|
1298
|
-
// css3 var in packages/theme-chalk/src/result.scss
|
|
1299
|
-
$result: () !default;
|
|
1300
|
-
$result: map.merge(
|
|
1301
|
-
(
|
|
1302
|
-
'padding': 40px 30px,
|
|
1303
|
-
'icon-font-size': 64px,
|
|
1304
|
-
'title-font-size': 20px,
|
|
1305
|
-
'title-margin-top': 20px,
|
|
1306
|
-
'subtitle-margin-top': 10px,
|
|
1307
|
-
'extra-margin-top': 30px,
|
|
1308
|
-
),
|
|
1309
|
-
$result
|
|
1310
|
-
);
|
|
1311
|
-
|
|
1312
|
-
// Upload
|
|
1313
|
-
// css3 var in packages/theme-chalk/src/upload.scss
|
|
1314
|
-
$upload: () !default;
|
|
1315
|
-
$upload: map.merge(
|
|
1316
|
-
(
|
|
1317
|
-
'dragger-padding-horizontal': 40px,
|
|
1318
|
-
'dragger-padding-vertical': 10px,
|
|
1319
|
-
),
|
|
1320
|
-
$upload
|
|
1321
|
-
);
|
|
1322
|
-
|
|
1323
|
-
// transition
|
|
1324
|
-
$transition: () !default;
|
|
1325
|
-
$transition: map.merge(
|
|
1326
|
-
(
|
|
1327
|
-
'all': all getCssVar('transition-duration')
|
|
1328
|
-
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1329
|
-
'fade': opacity getCssVar('transition-duration')
|
|
1330
|
-
getCssVar('transition-function-fast-bezier'),
|
|
1331
|
-
'md-fade': (
|
|
1332
|
-
transform getCssVar('transition-duration')
|
|
1333
|
-
getCssVar('transition-function-fast-bezier'),
|
|
1334
|
-
opacity getCssVar('transition-duration')
|
|
1335
|
-
getCssVar('transition-function-fast-bezier'),
|
|
1336
|
-
),
|
|
1337
|
-
'fade-linear': opacity getCssVar('transition-duration-fast') linear,
|
|
1338
|
-
'border': border-color getCssVar('transition-duration-fast')
|
|
1339
|
-
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1340
|
-
'box-shadow': box-shadow getCssVar('transition-duration-fast')
|
|
1341
|
-
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1342
|
-
'color': color getCssVar('transition-duration-fast')
|
|
1343
|
-
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1344
|
-
),
|
|
1345
|
-
$transition
|
|
1346
|
-
);
|
|
1347
|
-
|
|
1348
|
-
$transition-duration: () !default;
|
|
1349
|
-
$transition-duration: map.merge(
|
|
1350
|
-
(
|
|
1351
|
-
'': 0.3s,
|
|
1352
|
-
'fast': 0.2s,
|
|
1353
|
-
),
|
|
1354
|
-
$transition-duration
|
|
1355
|
-
);
|
|
1356
|
-
|
|
1357
|
-
$transition-function: () !default;
|
|
1358
|
-
$transition-function: map.merge(
|
|
1359
|
-
(
|
|
1360
|
-
'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
|
|
1361
|
-
'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
|
|
1362
|
-
),
|
|
1363
|
-
$transition-function
|
|
1364
|
-
);
|
|
1365
|
-
|
|
1366
|
-
// header
|
|
1367
|
-
$header: () !default;
|
|
1368
|
-
$header: map.merge(
|
|
1369
|
-
(
|
|
1370
|
-
'padding': 0 20px,
|
|
1371
|
-
'height': 60px,
|
|
1372
|
-
),
|
|
1373
|
-
$header
|
|
1374
|
-
);
|
|
1375
|
-
// main
|
|
1376
|
-
$main: () !default;
|
|
1377
|
-
$main: map.merge(
|
|
1378
|
-
(
|
|
1379
|
-
'padding': 20px,
|
|
1380
|
-
),
|
|
1381
|
-
$main
|
|
1382
|
-
);
|
|
1383
|
-
// footer
|
|
1384
|
-
$footer: () !default;
|
|
1385
|
-
$footer: map.merge(
|
|
1386
|
-
(
|
|
1387
|
-
'padding': 0 20px,
|
|
1388
|
-
'height': 60px,
|
|
1389
|
-
),
|
|
1390
|
-
$footer
|
|
1391
|
-
);
|
|
1392
|
-
|
|
1393
|
-
// Break-point
|
|
1394
|
-
$sm: 768px !default;
|
|
1395
|
-
$md: 992px !default;
|
|
1396
|
-
$lg: 1200px !default;
|
|
1397
|
-
$xl: 1920px !default;
|
|
1398
|
-
|
|
1399
|
-
$breakpoints: (
|
|
1400
|
-
'xs': '(max-width: #{$sm})',
|
|
1401
|
-
'sm': '(min-width: #{$sm})',
|
|
1402
|
-
'md': '(min-width: #{$md})',
|
|
1403
|
-
'lg': '(min-width: #{$lg})',
|
|
1404
|
-
'xl': '(min-width: #{$xl})',
|
|
1405
|
-
) !default;
|
|
1406
|
-
|
|
1407
|
-
$breakpoints-spec: (
|
|
1408
|
-
'xs-only': '(max-width: #{$sm - 1})',
|
|
1409
|
-
'sm-and-up': '(min-width: #{$sm})',
|
|
1410
|
-
'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
|
|
1411
|
-
'sm-and-down': '(max-width: #{$md - 1})',
|
|
1412
|
-
'md-and-up': '(min-width: #{$md})',
|
|
1413
|
-
'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
|
|
1414
|
-
'md-and-down': '(max-width: #{$lg - 1})',
|
|
1415
|
-
'lg-and-up': '(min-width: #{$lg})',
|
|
1416
|
-
'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
|
|
1417
|
-
'lg-and-down': '(max-width: #{$xl - 1})',
|
|
1418
|
-
'xl-only': '(min-width: #{$xl})',
|
|
1419
|
-
) !default;
|
|
1
|
+
/* Element Chalk Variables */
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
@use '../mixins/function.scss' as *;
|
|
6
|
+
|
|
7
|
+
// Special comment for theme configurator
|
|
8
|
+
// type|skipAutoTranslation|Category|Order
|
|
9
|
+
// skipAutoTranslation 1
|
|
10
|
+
|
|
11
|
+
// types
|
|
12
|
+
$types: primary, success, warning, danger, error, info;
|
|
13
|
+
|
|
14
|
+
// Color
|
|
15
|
+
$colors: () !default;
|
|
16
|
+
$colors: map.deep-merge(
|
|
17
|
+
(
|
|
18
|
+
'white': #ffffff,
|
|
19
|
+
'black': #000000,
|
|
20
|
+
'primary': (
|
|
21
|
+
'base': #409eff,
|
|
22
|
+
),
|
|
23
|
+
'success': (
|
|
24
|
+
'base': #67c23a,
|
|
25
|
+
),
|
|
26
|
+
'warning': (
|
|
27
|
+
'base': #e6a23c,
|
|
28
|
+
),
|
|
29
|
+
'danger': (
|
|
30
|
+
'base': #f56c6c,
|
|
31
|
+
),
|
|
32
|
+
'error': (
|
|
33
|
+
'base': #f56c6c,
|
|
34
|
+
),
|
|
35
|
+
'info': (
|
|
36
|
+
'base': #909399,
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
$colors
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
$color-white: map.get($colors, 'white') !default;
|
|
43
|
+
$color-black: map.get($colors, 'black') !default;
|
|
44
|
+
$color-primary: map.get($colors, 'primary', 'base') !default;
|
|
45
|
+
$color-success: map.get($colors, 'success', 'base') !default;
|
|
46
|
+
$color-warning: map.get($colors, 'warning', 'base') !default;
|
|
47
|
+
$color-danger: map.get($colors, 'danger', 'base') !default;
|
|
48
|
+
$color-error: map.get($colors, 'error', 'base') !default;
|
|
49
|
+
$color-info: map.get($colors, 'info', 'base') !default;
|
|
50
|
+
|
|
51
|
+
// https://sass-lang.com/documentation/values/maps#immutability
|
|
52
|
+
// mix colors with white/black to generate light/dark level
|
|
53
|
+
@mixin set-color-mix-level(
|
|
54
|
+
$type,
|
|
55
|
+
$number,
|
|
56
|
+
$mode: 'light',
|
|
57
|
+
$mix-color: $color-white
|
|
58
|
+
) {
|
|
59
|
+
$colors: map.deep-merge(
|
|
60
|
+
(
|
|
61
|
+
$type: (
|
|
62
|
+
'#{$mode}-#{$number}':
|
|
63
|
+
mix(
|
|
64
|
+
$mix-color,
|
|
65
|
+
map.get($colors, $type, 'base'),
|
|
66
|
+
math.percentage(math.div($number, 10))
|
|
67
|
+
),
|
|
68
|
+
),
|
|
69
|
+
),
|
|
70
|
+
$colors
|
|
71
|
+
) !global;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// $colors.primary.light-i
|
|
75
|
+
// --el-color-primary-light-i
|
|
76
|
+
// 10% 53a8ff
|
|
77
|
+
// 20% 66b1ff
|
|
78
|
+
// 30% 79bbff
|
|
79
|
+
// 40% 8cc5ff
|
|
80
|
+
// 50% a0cfff
|
|
81
|
+
// 60% b3d8ff
|
|
82
|
+
// 70% c6e2ff
|
|
83
|
+
// 80% d9ecff
|
|
84
|
+
// 90% ecf5ff
|
|
85
|
+
@each $type in $types {
|
|
86
|
+
@for $i from 1 through 9 {
|
|
87
|
+
@include set-color-mix-level($type, $i, 'light', $color-white);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// --el-color-primary-dark-2
|
|
92
|
+
@each $type in $types {
|
|
93
|
+
@include set-color-mix-level($type, 2, 'dark', $color-black);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
$text-color: () !default;
|
|
97
|
+
$text-color: map.merge(
|
|
98
|
+
(
|
|
99
|
+
'primary': #303133,
|
|
100
|
+
'regular': #606266,
|
|
101
|
+
'secondary': #909399,
|
|
102
|
+
'placeholder': #a8abb2,
|
|
103
|
+
'disabled': #c0c4cc,
|
|
104
|
+
),
|
|
105
|
+
$text-color
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
$border-color: () !default;
|
|
109
|
+
$border-color: map.merge(
|
|
110
|
+
(
|
|
111
|
+
'': #dcdfe6,
|
|
112
|
+
'light': #e4e7ed,
|
|
113
|
+
'lighter': #ebeef5,
|
|
114
|
+
'extra-light': #f2f6fc,
|
|
115
|
+
'dark': #d4d7de,
|
|
116
|
+
'darker': #cdd0d6,
|
|
117
|
+
),
|
|
118
|
+
$border-color
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
$fill-color: () !default;
|
|
122
|
+
$fill-color: map.merge(
|
|
123
|
+
(
|
|
124
|
+
'': #f0f2f5,
|
|
125
|
+
'light': #f5f7fa,
|
|
126
|
+
'lighter': #fafafa,
|
|
127
|
+
'extra-light': #fafcff,
|
|
128
|
+
'dark': #ebedf0,
|
|
129
|
+
'darker': #e6e8eb,
|
|
130
|
+
'blank': #ffffff,
|
|
131
|
+
),
|
|
132
|
+
$fill-color
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
// Background
|
|
136
|
+
$bg-color: () !default;
|
|
137
|
+
$bg-color: map.merge(
|
|
138
|
+
(
|
|
139
|
+
'': #ffffff,
|
|
140
|
+
'page': #f2f3f5,
|
|
141
|
+
'overlay': #ffffff,
|
|
142
|
+
),
|
|
143
|
+
$bg-color
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
// Border
|
|
147
|
+
$border-width: 1px !default;
|
|
148
|
+
$border-style: solid !default;
|
|
149
|
+
$border-color-hover: getCssVar('text-color', 'disabled') !default;
|
|
150
|
+
|
|
151
|
+
$border-radius: () !default;
|
|
152
|
+
$border-radius: map.merge(
|
|
153
|
+
(
|
|
154
|
+
'base': 4px,
|
|
155
|
+
'small': 2px,
|
|
156
|
+
'round': 20px,
|
|
157
|
+
'circle': 100%,
|
|
158
|
+
),
|
|
159
|
+
$border-radius
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
// Box-shadow
|
|
163
|
+
$box-shadow: () !default;
|
|
164
|
+
$box-shadow: map.merge(
|
|
165
|
+
(
|
|
166
|
+
'': (
|
|
167
|
+
0px 12px 32px 4px rgba(0, 0, 0, 0.04),
|
|
168
|
+
0px 8px 20px rgba(0, 0, 0, 0.08),
|
|
169
|
+
),
|
|
170
|
+
'light': (
|
|
171
|
+
0px 0px 12px rgba(0, 0, 0, 0.12),
|
|
172
|
+
),
|
|
173
|
+
'lighter': (
|
|
174
|
+
0px 0px 6px rgba(0, 0, 0, 0.12),
|
|
175
|
+
),
|
|
176
|
+
'dark': (
|
|
177
|
+
0px 16px 48px 16px rgba(0, 0, 0, 0.08),
|
|
178
|
+
0px 12px 32px rgba(0, 0, 0, 0.12),
|
|
179
|
+
0px 8px 16px -8px rgba(0, 0, 0, 0.16),
|
|
180
|
+
),
|
|
181
|
+
),
|
|
182
|
+
$box-shadow
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
// Typography
|
|
186
|
+
$font-family: () !default;
|
|
187
|
+
$font-family: map.merge(
|
|
188
|
+
(
|
|
189
|
+
// default family
|
|
190
|
+
'':
|
|
191
|
+
"'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
|
|
192
|
+
),
|
|
193
|
+
$font-family
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
$font-size: () !default;
|
|
197
|
+
$font-size: map.merge(
|
|
198
|
+
(
|
|
199
|
+
'extra-large': 20px,
|
|
200
|
+
'large': 18px,
|
|
201
|
+
'medium': 16px,
|
|
202
|
+
'base': 14px,
|
|
203
|
+
'small': 13px,
|
|
204
|
+
'extra-small': 12px,
|
|
205
|
+
),
|
|
206
|
+
$font-size
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
// zIndex
|
|
210
|
+
$z-index: () !default;
|
|
211
|
+
$z-index: map.merge(
|
|
212
|
+
(
|
|
213
|
+
'normal': 1,
|
|
214
|
+
'top': 1000,
|
|
215
|
+
'popper': 2000,
|
|
216
|
+
),
|
|
217
|
+
$z-index
|
|
218
|
+
);
|
|
219
|
+
|
|
220
|
+
// Disable default
|
|
221
|
+
$disabled: () !default;
|
|
222
|
+
$disabled: map.merge(
|
|
223
|
+
(
|
|
224
|
+
'bg-color': getCssVar('fill-color', 'light'),
|
|
225
|
+
'text-color': getCssVar('text-color', 'placeholder'),
|
|
226
|
+
'border-color': getCssVar('border-color', 'light'),
|
|
227
|
+
),
|
|
228
|
+
$disabled
|
|
229
|
+
);
|
|
230
|
+
|
|
231
|
+
$common-component-size: () !default;
|
|
232
|
+
$common-component-size: map.merge(
|
|
233
|
+
(
|
|
234
|
+
'large': 40px,
|
|
235
|
+
'default': 32px,
|
|
236
|
+
'small': 24px,
|
|
237
|
+
),
|
|
238
|
+
$common-component-size
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
// overlay
|
|
242
|
+
$overlay-color: () !default;
|
|
243
|
+
$overlay-color: map.merge(
|
|
244
|
+
(
|
|
245
|
+
'': rgba(0, 0, 0, 0.8),
|
|
246
|
+
'light': rgba(0, 0, 0, 0.7),
|
|
247
|
+
'lighter': rgba(0, 0, 0, 0.5),
|
|
248
|
+
),
|
|
249
|
+
$overlay-color
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
// mask
|
|
253
|
+
$mask-color: () !default;
|
|
254
|
+
$mask-color: map.merge(
|
|
255
|
+
(
|
|
256
|
+
'': rgba(255, 255, 255, 0.9),
|
|
257
|
+
'extra-light': rgba(255, 255, 255, 0.3),
|
|
258
|
+
),
|
|
259
|
+
$mask-color
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
// Components
|
|
263
|
+
// ---
|
|
264
|
+
// Checkbox
|
|
265
|
+
// css3 var in packages/theme-chalk/src/checkbox.scss
|
|
266
|
+
$checkbox: () !default;
|
|
267
|
+
$checkbox: map.merge(
|
|
268
|
+
(
|
|
269
|
+
'font-size': 14px,
|
|
270
|
+
'font-weight': getCssVar('font-weight-primary'),
|
|
271
|
+
'text-color': getCssVar('text-color-regular'),
|
|
272
|
+
'input-height': 14px,
|
|
273
|
+
'input-width': 14px,
|
|
274
|
+
'border-radius': getCssVar('border-radius-small'),
|
|
275
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
276
|
+
'input-border': getCssVar('border'),
|
|
277
|
+
'disabled-border-color': getCssVar('border-color'),
|
|
278
|
+
'disabled-input-fill': getCssVar('fill-color', 'light'),
|
|
279
|
+
'disabled-icon-color': getCssVar('text-color-placeholder'),
|
|
280
|
+
'disabled-checked-input-fill': getCssVar('border-color-extra-light'),
|
|
281
|
+
'disabled-checked-input-border-color': getCssVar('border-color'),
|
|
282
|
+
'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
|
|
283
|
+
'checked-text-color': getCssVar('color-primary'),
|
|
284
|
+
'checked-input-border-color': getCssVar('color-primary'),
|
|
285
|
+
'checked-bg-color': getCssVar('color-primary'),
|
|
286
|
+
'checked-icon-color': getCssVar('color', 'white'),
|
|
287
|
+
'input-border-color-hover': getCssVar('color-primary'),
|
|
288
|
+
),
|
|
289
|
+
$checkbox
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
$checkbox-button: () !default;
|
|
293
|
+
$checkbox-button: map.merge(
|
|
294
|
+
(
|
|
295
|
+
'checked-bg-color': getCssVar('color-primary'),
|
|
296
|
+
'checked-text-color': getCssVar('color-white'),
|
|
297
|
+
'checked-border-color': getCssVar('color-primary'),
|
|
298
|
+
),
|
|
299
|
+
$checkbox-button
|
|
300
|
+
);
|
|
301
|
+
|
|
302
|
+
$checkbox-bordered-padding-left: () !default;
|
|
303
|
+
$checkbox-bordered-padding-left: map.merge(
|
|
304
|
+
(
|
|
305
|
+
'large': 12px,
|
|
306
|
+
'default': 10px,
|
|
307
|
+
'small': 8px,
|
|
308
|
+
),
|
|
309
|
+
$checkbox-bordered-padding-left
|
|
310
|
+
);
|
|
311
|
+
|
|
312
|
+
$checkbox-bordered-padding-right: () !default;
|
|
313
|
+
$checkbox-bordered-padding-right: map.merge(
|
|
314
|
+
(
|
|
315
|
+
'large': 20px,
|
|
316
|
+
'default': 16px,
|
|
317
|
+
'small': 12px,
|
|
318
|
+
),
|
|
319
|
+
$checkbox-bordered-padding-right
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
// Radio
|
|
323
|
+
/// fontSize||Font|1
|
|
324
|
+
$radio: () !default;
|
|
325
|
+
$radio: map.merge(
|
|
326
|
+
(
|
|
327
|
+
'font-size': getCssVar('font-size-base'),
|
|
328
|
+
'text-color': getCssVar('text-color-regular'),
|
|
329
|
+
'font-weight': getCssVar('font-weight-primary'),
|
|
330
|
+
'input-height': 14px,
|
|
331
|
+
'input-width': 14px,
|
|
332
|
+
'input-border-radius': getCssVar('border-radius-circle'),
|
|
333
|
+
'input-bg-color': getCssVar('fill-color', 'blank'),
|
|
334
|
+
'input-border': getCssVar('border'),
|
|
335
|
+
'input-border-color': getCssVar('border-color'),
|
|
336
|
+
'input-border-color-hover': getCssVar('color-primary'),
|
|
337
|
+
),
|
|
338
|
+
$radio
|
|
339
|
+
);
|
|
340
|
+
|
|
341
|
+
$radio-height: () !default;
|
|
342
|
+
$radio-height: map.merge($common-component-size, $radio-height);
|
|
343
|
+
|
|
344
|
+
$radio-button: () !default;
|
|
345
|
+
$radio-button: map.merge(
|
|
346
|
+
(
|
|
347
|
+
'checked-bg-color': getCssVar('color-primary'),
|
|
348
|
+
'checked-text-color': getCssVar('color-white'),
|
|
349
|
+
'checked-border-color': getCssVar('color-primary'),
|
|
350
|
+
'disabled-checked-fill': getCssVar('border-color-extra-light'),
|
|
351
|
+
),
|
|
352
|
+
$radio-button
|
|
353
|
+
);
|
|
354
|
+
|
|
355
|
+
$radio-disabled: () !default;
|
|
356
|
+
$radio-disabled: map.merge(
|
|
357
|
+
(
|
|
358
|
+
'input-border-color': getCssVar('disabled-border-color'),
|
|
359
|
+
'input-fill': getCssVar('disabled-bg-color'),
|
|
360
|
+
'icon-color': getCssVar('disabled-bg-color'),
|
|
361
|
+
'checked-input-border-color': getCssVar('disabled-border-color'),
|
|
362
|
+
'checked-input-fill': getCssVar('disabled-bg-color'),
|
|
363
|
+
'checked-icon-color': getCssVar('text-color-placeholder'),
|
|
364
|
+
),
|
|
365
|
+
$radio-disabled
|
|
366
|
+
);
|
|
367
|
+
|
|
368
|
+
$radio-checked: () !default;
|
|
369
|
+
$radio-checked: map.merge(
|
|
370
|
+
(
|
|
371
|
+
'text-color': getCssVar('color-primary'),
|
|
372
|
+
'input-border-color': getCssVar('color-primary'),
|
|
373
|
+
'icon-color': getCssVar('color-primary'),
|
|
374
|
+
),
|
|
375
|
+
$radio-checked
|
|
376
|
+
);
|
|
377
|
+
|
|
378
|
+
$radio-bordered-input-height: () !default;
|
|
379
|
+
$radio-bordered-input-height: map.merge(
|
|
380
|
+
(
|
|
381
|
+
'large': 14px,
|
|
382
|
+
'default': 12px,
|
|
383
|
+
'small': 12px,
|
|
384
|
+
),
|
|
385
|
+
$radio-bordered-input-height
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
$radio-bordered-input-width: () !default;
|
|
389
|
+
$radio-bordered-input-width: map.merge(
|
|
390
|
+
(
|
|
391
|
+
'large': 14px,
|
|
392
|
+
'default': 12px,
|
|
393
|
+
'small': 12px,
|
|
394
|
+
),
|
|
395
|
+
$radio-bordered-input-width
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
// Select
|
|
399
|
+
$select: () !default;
|
|
400
|
+
$select: map.merge(
|
|
401
|
+
(
|
|
402
|
+
'border-color-hover': getCssVar('border-color-hover'),
|
|
403
|
+
'disabled-border': getCssVar('disabled-border-color'),
|
|
404
|
+
'font-size': getCssVar('font-size-base'),
|
|
405
|
+
'close-hover-color': getCssVar('text-color-secondary'),
|
|
406
|
+
'input-color': getCssVar('text-color-placeholder'),
|
|
407
|
+
'multiple-input-color': getCssVar('text-color-regular'),
|
|
408
|
+
'input-focus-border-color': getCssVar('color-primary'),
|
|
409
|
+
'input-font-size': 14px,
|
|
410
|
+
),
|
|
411
|
+
$select
|
|
412
|
+
);
|
|
413
|
+
|
|
414
|
+
$select-option: () !default;
|
|
415
|
+
$select-option: map.merge(
|
|
416
|
+
(
|
|
417
|
+
'text-color': getCssVar('text-color-regular'),
|
|
418
|
+
'disabled-color': getCssVar('text-color-placeholder'),
|
|
419
|
+
'height': 34px,
|
|
420
|
+
'hover-background': getCssVar('fill-color', 'light'),
|
|
421
|
+
'selected-text-color': getCssVar('color-primary'),
|
|
422
|
+
),
|
|
423
|
+
$select-option
|
|
424
|
+
);
|
|
425
|
+
|
|
426
|
+
$select-group: () !default;
|
|
427
|
+
$select-group: map.merge(
|
|
428
|
+
(
|
|
429
|
+
'text-color': getCssVar('color-info'),
|
|
430
|
+
'height': 30px,
|
|
431
|
+
'font-size': 12px,
|
|
432
|
+
),
|
|
433
|
+
$select-group
|
|
434
|
+
);
|
|
435
|
+
|
|
436
|
+
$select-dropdown: () !default;
|
|
437
|
+
$select-dropdown: map.merge(
|
|
438
|
+
(
|
|
439
|
+
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
440
|
+
'shadow': getCssVar('box-shadow-light'),
|
|
441
|
+
'empty-color': getCssVar('text-color-secondary'),
|
|
442
|
+
'max-height': 274px,
|
|
443
|
+
'padding': 6px 0,
|
|
444
|
+
'empty-padding': 10px 0,
|
|
445
|
+
'border': 1px solid getCssVar('border-color-light'),
|
|
446
|
+
),
|
|
447
|
+
$select-dropdown
|
|
448
|
+
);
|
|
449
|
+
|
|
450
|
+
$select-tags-prefix-padding: () !default;
|
|
451
|
+
$select-tags-prefix-padding: map.merge(
|
|
452
|
+
(
|
|
453
|
+
'large': 8px,
|
|
454
|
+
'default': 6px,
|
|
455
|
+
'small': 4px,
|
|
456
|
+
),
|
|
457
|
+
$select-tags-prefix-padding
|
|
458
|
+
);
|
|
459
|
+
|
|
460
|
+
// Alert
|
|
461
|
+
// css3 var in packages/theme-chalk/src/alert.scss
|
|
462
|
+
$alert: () !default;
|
|
463
|
+
$alert: map.merge(
|
|
464
|
+
(
|
|
465
|
+
'padding': 8px 16px,
|
|
466
|
+
'border-radius-base': getCssVar('border-radius-base'),
|
|
467
|
+
'title-font-size': 13px,
|
|
468
|
+
'description-font-size': 12px,
|
|
469
|
+
'close-font-size': 12px,
|
|
470
|
+
'close-customed-font-size': 13px,
|
|
471
|
+
'icon-size': 16px,
|
|
472
|
+
'icon-large-size': 28px,
|
|
473
|
+
),
|
|
474
|
+
$alert
|
|
475
|
+
);
|
|
476
|
+
|
|
477
|
+
// MessageBox
|
|
478
|
+
// css3 var in packages/theme-chalk/src/message-box.scss
|
|
479
|
+
$messagebox: () !default;
|
|
480
|
+
$messagebox: map.merge(
|
|
481
|
+
(
|
|
482
|
+
'title-color': getCssVar('text-color-primary'),
|
|
483
|
+
'width': 420px,
|
|
484
|
+
'border-radius': 4px,
|
|
485
|
+
'font-size': getCssVar('font-size-large'),
|
|
486
|
+
'content-font-size': getCssVar('font-size-base'),
|
|
487
|
+
'content-color': getCssVar('text-color-regular'),
|
|
488
|
+
'error-font-size': 12px,
|
|
489
|
+
'padding-primary': 15px,
|
|
490
|
+
),
|
|
491
|
+
$messagebox
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
// Message
|
|
495
|
+
// css3 var in packages/theme-chalk/src/message.scss
|
|
496
|
+
$message: () !default;
|
|
497
|
+
$message: map.merge(
|
|
498
|
+
(
|
|
499
|
+
'bg-color': getCssVar('color', 'info', 'light-9'),
|
|
500
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
501
|
+
'padding': 15px 19px,
|
|
502
|
+
'close-size': 16px,
|
|
503
|
+
'close-icon-color': getCssVar('text-color-placeholder'),
|
|
504
|
+
'close-hover-color': getCssVar('text-color-secondary'),
|
|
505
|
+
),
|
|
506
|
+
$message
|
|
507
|
+
);
|
|
508
|
+
|
|
509
|
+
// Notification
|
|
510
|
+
// css3 var in packages/theme-chalk/src/notification.scss
|
|
511
|
+
$notification: () !default;
|
|
512
|
+
$notification: map.merge(
|
|
513
|
+
(
|
|
514
|
+
'width': 330px,
|
|
515
|
+
'padding': 14px 26px 14px 13px,
|
|
516
|
+
'radius': 8px,
|
|
517
|
+
'shadow': getCssVar('box-shadow-light'),
|
|
518
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
519
|
+
'icon-size': 24px,
|
|
520
|
+
'close-font-size':
|
|
521
|
+
var(
|
|
522
|
+
#{getCssVarName('message-close-size')},
|
|
523
|
+
map.get($message, 'close-size')
|
|
524
|
+
),
|
|
525
|
+
'group-margin-left': 13px,
|
|
526
|
+
'group-margin-right': 8px,
|
|
527
|
+
'content-font-size': getCssVar('font-size-base'),
|
|
528
|
+
'content-color': getCssVar('text-color-regular'),
|
|
529
|
+
'title-font-size': 16px,
|
|
530
|
+
'title-color': getCssVar('text-color-primary'),
|
|
531
|
+
'close-color': getCssVar('text-color-secondary'),
|
|
532
|
+
'close-hover-color': getCssVar('text-color-regular'),
|
|
533
|
+
),
|
|
534
|
+
$notification
|
|
535
|
+
);
|
|
536
|
+
|
|
537
|
+
// Input
|
|
538
|
+
// css3 var in packages/theme-chalk/src/input.scss
|
|
539
|
+
$input: () !default;
|
|
540
|
+
$input: map.merge(
|
|
541
|
+
(
|
|
542
|
+
'text-color': getCssVar('text-color-regular'),
|
|
543
|
+
'border': getCssVar('border'),
|
|
544
|
+
'hover-border': getCssVar('border-color-hover'),
|
|
545
|
+
'focus-border': getCssVar('color-primary'),
|
|
546
|
+
'transparent-border': 0 0 0 1px transparent inset,
|
|
547
|
+
'border-color': getCssVar('border-color'),
|
|
548
|
+
'border-radius': getCssVar('border-radius-base'),
|
|
549
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
550
|
+
'icon-color': getCssVar('text-color-placeholder'),
|
|
551
|
+
'placeholder-color': getCssVar('text-color-placeholder'),
|
|
552
|
+
'hover-border-color': getCssVar('border-color-hover'),
|
|
553
|
+
'clear-hover-color': getCssVar('text-color-secondary'),
|
|
554
|
+
'focus-border-color': getCssVar('color-primary'),
|
|
555
|
+
),
|
|
556
|
+
$input
|
|
557
|
+
);
|
|
558
|
+
|
|
559
|
+
$input-disabled: () !default;
|
|
560
|
+
$input-disabled: map.merge(
|
|
561
|
+
(
|
|
562
|
+
'fill': getCssVar('disabled-bg-color'),
|
|
563
|
+
'border': getCssVar('disabled-border-color'),
|
|
564
|
+
'text-color': getCssVar('disabled-text-color'),
|
|
565
|
+
'placeholder-color': getCssVar('text-color-placeholder'),
|
|
566
|
+
),
|
|
567
|
+
$input-disabled
|
|
568
|
+
);
|
|
569
|
+
|
|
570
|
+
$input-font-size: () !default;
|
|
571
|
+
$input-font-size: map.merge(
|
|
572
|
+
(
|
|
573
|
+
'large': 14px,
|
|
574
|
+
'default': 14px,
|
|
575
|
+
'small': 12px,
|
|
576
|
+
),
|
|
577
|
+
$input-font-size
|
|
578
|
+
);
|
|
579
|
+
|
|
580
|
+
$input-height: () !default;
|
|
581
|
+
$input-height: map.merge($common-component-size, $input-height);
|
|
582
|
+
|
|
583
|
+
$input-line-height: () !default;
|
|
584
|
+
$input-line-height: map.merge($common-component-size, $input-line-height);
|
|
585
|
+
|
|
586
|
+
$input-number-width: () !default;
|
|
587
|
+
$input-number-width: map.merge(
|
|
588
|
+
(
|
|
589
|
+
'large': 180px,
|
|
590
|
+
'default': 150px,
|
|
591
|
+
'small': 120px,
|
|
592
|
+
),
|
|
593
|
+
$input-number-width
|
|
594
|
+
);
|
|
595
|
+
|
|
596
|
+
$input-padding-horizontal: () !default;
|
|
597
|
+
$input-padding-horizontal: map.merge(
|
|
598
|
+
(
|
|
599
|
+
'large': 16px,
|
|
600
|
+
'default': 12px,
|
|
601
|
+
'small': 8px,
|
|
602
|
+
),
|
|
603
|
+
$input-padding-horizontal
|
|
604
|
+
);
|
|
605
|
+
|
|
606
|
+
// Cascader
|
|
607
|
+
// css3 var in packages/theme-chalk/src/cascader.scss
|
|
608
|
+
$cascader: () !default;
|
|
609
|
+
$cascader: map.merge(
|
|
610
|
+
(
|
|
611
|
+
'menu-text-color': getCssVar('text-color-regular'),
|
|
612
|
+
'menu-selected-text-color': getCssVar('color-primary'),
|
|
613
|
+
'menu-fill': getCssVar('bg-color', 'overlay'),
|
|
614
|
+
'menu-font-size': getCssVar('font-size-base'),
|
|
615
|
+
'menu-radius': getCssVar('border-radius-base'),
|
|
616
|
+
'menu-border': solid 1px getCssVar('border-color-light'),
|
|
617
|
+
'menu-shadow': getCssVar('box-shadow-light'),
|
|
618
|
+
'node-background-hover': getCssVar('fill-color', 'light'),
|
|
619
|
+
'node-color-disabled': getCssVar('text-color-placeholder'),
|
|
620
|
+
'color-empty': getCssVar('text-color-placeholder'),
|
|
621
|
+
'tag-background': getCssVar('fill-color'),
|
|
622
|
+
),
|
|
623
|
+
$cascader
|
|
624
|
+
);
|
|
625
|
+
//statistic
|
|
626
|
+
// css3 var in packages/theme-chalk/src/statistic.scss
|
|
627
|
+
$statistic: () !default;
|
|
628
|
+
$statistic: map.merge(
|
|
629
|
+
(
|
|
630
|
+
'title-font-weight': 400,
|
|
631
|
+
'title-font-size': getCssVar('font-size', 'extra-small'),
|
|
632
|
+
'title-color': getCssVar('text-color', 'regular'),
|
|
633
|
+
'content-font-weight': 400,
|
|
634
|
+
'content-font-size': getCssVar('font-size', 'extra-large'),
|
|
635
|
+
'content-color': getCssVar('text-color', 'primary'),
|
|
636
|
+
),
|
|
637
|
+
$statistic
|
|
638
|
+
);
|
|
639
|
+
// Button
|
|
640
|
+
// css3 var in packages/theme-chalk/src/button.scss
|
|
641
|
+
$button: () !default;
|
|
642
|
+
$button: map.merge(
|
|
643
|
+
(
|
|
644
|
+
'font-weight': getCssVar('font-weight-primary'),
|
|
645
|
+
'border-color': getCssVar('border-color'),
|
|
646
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
647
|
+
'text-color': getCssVar('text-color', 'regular'),
|
|
648
|
+
'disabled-text-color': getCssVar('disabled-text-color'),
|
|
649
|
+
'disabled-bg-color': getCssVar('fill-color', 'blank'),
|
|
650
|
+
'disabled-border-color': getCssVar('border-color-light'),
|
|
651
|
+
'divide-border-color': rgba($color-white, 0.5),
|
|
652
|
+
'hover-text-color': getCssVar('color-primary'),
|
|
653
|
+
'hover-bg-color': getCssVar('color-primary', 'light-9'),
|
|
654
|
+
'hover-border-color': getCssVar('color-primary-light-7'),
|
|
655
|
+
'active-text-color': getCssVar('button-hover-text-color'),
|
|
656
|
+
'active-border-color': getCssVar('color-primary'),
|
|
657
|
+
'active-bg-color': getCssVar('button', 'hover-bg-color'),
|
|
658
|
+
'outline-color': getCssVar('color-primary', 'light-5'),
|
|
659
|
+
'hover-link-text-color': getCssVar('color-info'),
|
|
660
|
+
'active-color': getCssVar('text-color', 'primary'),
|
|
661
|
+
),
|
|
662
|
+
$button
|
|
663
|
+
);
|
|
664
|
+
|
|
665
|
+
$button-border-width: $border-width !default;
|
|
666
|
+
|
|
667
|
+
// need mix, so do not use css var
|
|
668
|
+
$button-hover-tint-percent: 20%;
|
|
669
|
+
$button-active-shade-percent: 10%;
|
|
670
|
+
|
|
671
|
+
$button-border-color: () !default;
|
|
672
|
+
$button-bg-color: () !default;
|
|
673
|
+
$button-text-color: () !default;
|
|
674
|
+
|
|
675
|
+
@each $type in $types {
|
|
676
|
+
$button-border-color: map.merge(
|
|
677
|
+
(
|
|
678
|
+
$type: map.get($colors, $type, 'base'),
|
|
679
|
+
),
|
|
680
|
+
$button-border-color
|
|
681
|
+
) !global;
|
|
682
|
+
|
|
683
|
+
$button-bg-color: map.merge(
|
|
684
|
+
(
|
|
685
|
+
$type: map.get($colors, $type, 'base'),
|
|
686
|
+
),
|
|
687
|
+
$button-bg-color
|
|
688
|
+
) !global;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
$button-font-size: () !default;
|
|
692
|
+
$button-font-size: map.merge(
|
|
693
|
+
(
|
|
694
|
+
'large': getCssVar('font-size', 'base'),
|
|
695
|
+
'default': getCssVar('font-size', 'base'),
|
|
696
|
+
'small': 12px,
|
|
697
|
+
),
|
|
698
|
+
$button-font-size
|
|
699
|
+
);
|
|
700
|
+
|
|
701
|
+
$button-border-radius: () !default;
|
|
702
|
+
$button-border-radius: map.merge(
|
|
703
|
+
(
|
|
704
|
+
'large': getCssVar('border-radius', 'base'),
|
|
705
|
+
'default': getCssVar('border-radius', 'base'),
|
|
706
|
+
'small': calc(#{getCssVar('border-radius', 'base')} - 1px),
|
|
707
|
+
),
|
|
708
|
+
$button-border-radius
|
|
709
|
+
);
|
|
710
|
+
|
|
711
|
+
$button-padding-vertical: () !default;
|
|
712
|
+
$button-padding-vertical: map.merge(
|
|
713
|
+
(
|
|
714
|
+
'large': 13px,
|
|
715
|
+
'default': 9px,
|
|
716
|
+
'small': 6px,
|
|
717
|
+
),
|
|
718
|
+
$button-padding-vertical
|
|
719
|
+
);
|
|
720
|
+
|
|
721
|
+
$button-padding-horizontal: () !default;
|
|
722
|
+
$button-padding-horizontal: map.merge(
|
|
723
|
+
(
|
|
724
|
+
'large': 20px,
|
|
725
|
+
'default': 16px,
|
|
726
|
+
'small': 12px,
|
|
727
|
+
),
|
|
728
|
+
$button-padding-horizontal
|
|
729
|
+
);
|
|
730
|
+
|
|
731
|
+
// Switch
|
|
732
|
+
// css3 var in packages/theme-chalk/src/switch.scss
|
|
733
|
+
$switch: () !default;
|
|
734
|
+
$switch: map.merge(
|
|
735
|
+
(
|
|
736
|
+
'on-color': getCssVar('color-primary'),
|
|
737
|
+
'off-color': getCssVar('border-color'),
|
|
738
|
+
),
|
|
739
|
+
$switch
|
|
740
|
+
);
|
|
741
|
+
|
|
742
|
+
// Dialog
|
|
743
|
+
// css3 var in packages/theme-chalk/src/dialog.scss
|
|
744
|
+
$dialog: () !default;
|
|
745
|
+
$dialog: map.merge(
|
|
746
|
+
(
|
|
747
|
+
'width': 50%,
|
|
748
|
+
'margin-top': 15vh,
|
|
749
|
+
'bg-color': getCssVar('bg-color'),
|
|
750
|
+
'box-shadow': getCssVar('box-shadow'),
|
|
751
|
+
'title-font-size': getCssVar('font-size-large'),
|
|
752
|
+
'content-font-size': 14px,
|
|
753
|
+
'font-line-height': getCssVar('font-line-height-primary'),
|
|
754
|
+
'padding-primary': 20px,
|
|
755
|
+
'border-radius': getCssVar('border-radius-small'),
|
|
756
|
+
),
|
|
757
|
+
$dialog
|
|
758
|
+
);
|
|
759
|
+
|
|
760
|
+
// Table
|
|
761
|
+
// css3 var in packages/theme-chalk/src/table.scss
|
|
762
|
+
$table: () !default;
|
|
763
|
+
$table: map.merge(
|
|
764
|
+
(
|
|
765
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
766
|
+
'border': 1px solid getCssVar('table-border-color'),
|
|
767
|
+
'text-color': getCssVar('text-color-regular'),
|
|
768
|
+
'header-text-color': getCssVar('text-color-secondary'),
|
|
769
|
+
'row-hover-bg-color': getCssVar('fill-color', 'light'),
|
|
770
|
+
'current-row-bg-color': getCssVar('color-primary-light-9'),
|
|
771
|
+
'header-bg-color': getCssVar('bg-color'),
|
|
772
|
+
'fixed-box-shadow': getCssVar('box-shadow', 'light'),
|
|
773
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
774
|
+
'tr-bg-color': getCssVar('fill-color', 'blank'),
|
|
775
|
+
'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
|
|
776
|
+
'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
|
|
777
|
+
'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
|
|
778
|
+
),
|
|
779
|
+
$table
|
|
780
|
+
);
|
|
781
|
+
|
|
782
|
+
$table-font-size: () !default;
|
|
783
|
+
$table-font-size: map.merge(
|
|
784
|
+
(
|
|
785
|
+
'large': getCssVar('font-size', 'base'),
|
|
786
|
+
'default': 14px,
|
|
787
|
+
'small': 12px,
|
|
788
|
+
),
|
|
789
|
+
$table-font-size
|
|
790
|
+
);
|
|
791
|
+
|
|
792
|
+
$table-padding: () !default;
|
|
793
|
+
$table-padding: map.merge(
|
|
794
|
+
(
|
|
795
|
+
'large': 12px 0,
|
|
796
|
+
'default': 8px 0,
|
|
797
|
+
'small': 4px 0,
|
|
798
|
+
),
|
|
799
|
+
$table-padding
|
|
800
|
+
);
|
|
801
|
+
|
|
802
|
+
$table-cell-padding: () !default;
|
|
803
|
+
$table-cell-padding: map.merge(
|
|
804
|
+
(
|
|
805
|
+
'large': 0 16px,
|
|
806
|
+
'default': 0 12px,
|
|
807
|
+
'small': 0 8px,
|
|
808
|
+
),
|
|
809
|
+
$table-cell-padding
|
|
810
|
+
);
|
|
811
|
+
|
|
812
|
+
// Pagination
|
|
813
|
+
// css3 var in packages/theme-chalk/src/pagination.scss
|
|
814
|
+
$pagination: () !default;
|
|
815
|
+
$pagination: map.merge(
|
|
816
|
+
(
|
|
817
|
+
'font-size': 14px,
|
|
818
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
819
|
+
'text-color': getCssVar('text-color-primary'),
|
|
820
|
+
'border-radius': 2px,
|
|
821
|
+
'button-color': getCssVar('text-color-primary'),
|
|
822
|
+
'button-width': 32px,
|
|
823
|
+
'button-height': 32px,
|
|
824
|
+
'button-disabled-color': getCssVar('text-color-placeholder'),
|
|
825
|
+
'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
|
|
826
|
+
'button-bg-color': getCssVar('fill-color'),
|
|
827
|
+
'hover-color': getCssVar('color-primary'),
|
|
828
|
+
'font-size-small': 12px,
|
|
829
|
+
'button-width-small': 24px,
|
|
830
|
+
'button-height-small': 24px,
|
|
831
|
+
'item-gap': 16px,
|
|
832
|
+
),
|
|
833
|
+
$pagination
|
|
834
|
+
);
|
|
835
|
+
|
|
836
|
+
// Popup
|
|
837
|
+
// css3 var in packages/theme-chalk/src/popup.scss
|
|
838
|
+
$popup: () !default;
|
|
839
|
+
$popup: map.merge(
|
|
840
|
+
(
|
|
841
|
+
'modal-bg-color': getCssVar('color-black'),
|
|
842
|
+
'modal-opacity': 0.5,
|
|
843
|
+
),
|
|
844
|
+
$popup
|
|
845
|
+
);
|
|
846
|
+
|
|
847
|
+
// Popover
|
|
848
|
+
// css3 var in packages/theme-chalk/src/popover.scss
|
|
849
|
+
$popover: () !default;
|
|
850
|
+
$popover: map.merge(
|
|
851
|
+
(
|
|
852
|
+
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
853
|
+
'font-size': getCssVar('font-size-base'),
|
|
854
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
855
|
+
'padding': 12px,
|
|
856
|
+
'padding-large': 18px 20px,
|
|
857
|
+
'title-font-size': 16px,
|
|
858
|
+
'title-text-color': getCssVar('text-color-primary'),
|
|
859
|
+
'border-radius': 4px,
|
|
860
|
+
),
|
|
861
|
+
$popover
|
|
862
|
+
);
|
|
863
|
+
|
|
864
|
+
// popper
|
|
865
|
+
// Pay attention to the difference between 'popper' and 'popover'
|
|
866
|
+
$popper: () !default;
|
|
867
|
+
$popper: map.merge(
|
|
868
|
+
(
|
|
869
|
+
'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
|
|
870
|
+
),
|
|
871
|
+
$popper
|
|
872
|
+
);
|
|
873
|
+
|
|
874
|
+
// skeleton
|
|
875
|
+
$skeleton: () !default;
|
|
876
|
+
$skeleton: map.merge(
|
|
877
|
+
(
|
|
878
|
+
'color': getCssVar('fill-color'),
|
|
879
|
+
'to-color': getCssVar('fill-color', 'darker'),
|
|
880
|
+
),
|
|
881
|
+
$skeleton
|
|
882
|
+
);
|
|
883
|
+
|
|
884
|
+
// Tag
|
|
885
|
+
// css3 var in packages/theme-chalk/src/tag.scss
|
|
886
|
+
$tag: () !default;
|
|
887
|
+
$tag: map.merge(
|
|
888
|
+
(
|
|
889
|
+
'font-size': 12px,
|
|
890
|
+
'border-radius': 4px,
|
|
891
|
+
'border-radius-rounded': 9999px,
|
|
892
|
+
),
|
|
893
|
+
$tag
|
|
894
|
+
);
|
|
895
|
+
|
|
896
|
+
$tag-height: () !default;
|
|
897
|
+
$tag-height: map.merge(
|
|
898
|
+
(
|
|
899
|
+
'large': 32px,
|
|
900
|
+
'default': 24px,
|
|
901
|
+
'small': 20px,
|
|
902
|
+
),
|
|
903
|
+
$tag-height
|
|
904
|
+
);
|
|
905
|
+
|
|
906
|
+
$tag-padding: () !default;
|
|
907
|
+
$tag-padding: map.merge(
|
|
908
|
+
(
|
|
909
|
+
'large': 12px,
|
|
910
|
+
'default': 10px,
|
|
911
|
+
'small': 8px,
|
|
912
|
+
),
|
|
913
|
+
$tag-padding
|
|
914
|
+
);
|
|
915
|
+
|
|
916
|
+
$tag-icon-size: () !default;
|
|
917
|
+
$tag-icon-size: map.merge(
|
|
918
|
+
(
|
|
919
|
+
'large': 16px,
|
|
920
|
+
'default': 14px,
|
|
921
|
+
'small': 12px,
|
|
922
|
+
),
|
|
923
|
+
$tag-icon-size
|
|
924
|
+
);
|
|
925
|
+
|
|
926
|
+
// Tree
|
|
927
|
+
// css3 var in packages/theme-chalk/src/tree.scss
|
|
928
|
+
$tree: () !default;
|
|
929
|
+
$tree: map.merge(
|
|
930
|
+
(
|
|
931
|
+
'node-hover-bg-color': getCssVar('fill-color', 'light'),
|
|
932
|
+
'text-color': getCssVar('text-color-regular'),
|
|
933
|
+
'expand-icon-color': getCssVar('text-color-placeholder'),
|
|
934
|
+
),
|
|
935
|
+
$tree
|
|
936
|
+
);
|
|
937
|
+
|
|
938
|
+
// Dropdown
|
|
939
|
+
$dropdown: () !default;
|
|
940
|
+
$dropdown: map.merge(
|
|
941
|
+
(
|
|
942
|
+
'menu-box-shadow': getCssVar('box-shadow-light'),
|
|
943
|
+
'menuItem-hover-fill': getCssVar('color-primary-light-9'),
|
|
944
|
+
'menuItem-hover-color': getCssVar('color-primary'),
|
|
945
|
+
'menu-index': 10,
|
|
946
|
+
),
|
|
947
|
+
$dropdown
|
|
948
|
+
);
|
|
949
|
+
|
|
950
|
+
// drawer
|
|
951
|
+
$drawer: () !default;
|
|
952
|
+
$drawer: map.merge(
|
|
953
|
+
(
|
|
954
|
+
'bg-color':
|
|
955
|
+
var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
|
|
956
|
+
'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
|
|
957
|
+
),
|
|
958
|
+
$drawer
|
|
959
|
+
);
|
|
960
|
+
|
|
961
|
+
// Badge
|
|
962
|
+
// css3 var in packages/theme-chalk/src/badge.scss
|
|
963
|
+
$badge: () !default;
|
|
964
|
+
$badge: map.merge(
|
|
965
|
+
(
|
|
966
|
+
'bg-color': getCssVar('color-danger'),
|
|
967
|
+
'radius': 10px,
|
|
968
|
+
'font-size': 12px,
|
|
969
|
+
'padding': 6px,
|
|
970
|
+
'size': 18px,
|
|
971
|
+
),
|
|
972
|
+
$badge
|
|
973
|
+
);
|
|
974
|
+
|
|
975
|
+
// Card
|
|
976
|
+
$card: () !default;
|
|
977
|
+
$card: map.merge(
|
|
978
|
+
(
|
|
979
|
+
'border-color': getCssVar('border-color', 'light'),
|
|
980
|
+
'border-radius': 4px,
|
|
981
|
+
'padding': 20px,
|
|
982
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
983
|
+
),
|
|
984
|
+
$card
|
|
985
|
+
);
|
|
986
|
+
|
|
987
|
+
// Slider
|
|
988
|
+
// css3 var in packages/theme-chalk/src/slider.scss
|
|
989
|
+
$slider: () !default;
|
|
990
|
+
$slider: map.merge(
|
|
991
|
+
(
|
|
992
|
+
'main-bg-color': getCssVar('color-primary'),
|
|
993
|
+
'runway-bg-color': getCssVar('border-color-light'),
|
|
994
|
+
'stop-bg-color': getCssVar('color-white'),
|
|
995
|
+
'disabled-color': getCssVar('text-color-placeholder'),
|
|
996
|
+
'border-radius': 3px,
|
|
997
|
+
'height': 6px,
|
|
998
|
+
'button-size': 20px,
|
|
999
|
+
'button-wrapper-size': 36px,
|
|
1000
|
+
'button-wrapper-offset': -15px,
|
|
1001
|
+
),
|
|
1002
|
+
$slider
|
|
1003
|
+
);
|
|
1004
|
+
|
|
1005
|
+
// Menu
|
|
1006
|
+
// css3 var in packages/theme-chalk/src/menu.scss
|
|
1007
|
+
$menu: () !default;
|
|
1008
|
+
$menu: map.merge(
|
|
1009
|
+
(
|
|
1010
|
+
'active-color': getCssVar('color-primary'),
|
|
1011
|
+
'text-color': getCssVar('text-color-primary'),
|
|
1012
|
+
'hover-text-color': getCssVar('color-primary'),
|
|
1013
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
1014
|
+
'hover-bg-color': getCssVar('color-primary-light-9'),
|
|
1015
|
+
'item-height': 56px,
|
|
1016
|
+
'sub-item-height': calc(#{getCssVar('menu-item-height')} - 6px),
|
|
1017
|
+
'horizontal-sub-item-height': 36px,
|
|
1018
|
+
'item-font-size': getCssVar('font-size-base'),
|
|
1019
|
+
'item-hover-fill': getCssVar('color-primary-light-9'),
|
|
1020
|
+
'border-color': getCssVar('border-color'),
|
|
1021
|
+
'base-level-padding': 20px,
|
|
1022
|
+
'level-padding': 20px,
|
|
1023
|
+
'icon-width': 24px,
|
|
1024
|
+
),
|
|
1025
|
+
$menu
|
|
1026
|
+
);
|
|
1027
|
+
|
|
1028
|
+
// Rate
|
|
1029
|
+
$rate: () !default;
|
|
1030
|
+
$rate: map.merge(
|
|
1031
|
+
(
|
|
1032
|
+
'height': 20px,
|
|
1033
|
+
'font-size': getCssVar('font-size-base'),
|
|
1034
|
+
'icon-size': 18px,
|
|
1035
|
+
'icon-margin': 6px,
|
|
1036
|
+
// seems not be used, to be removed
|
|
1037
|
+
// 'icon-color': getCssVar('text-color-placeholder),
|
|
1038
|
+
'void-color': getCssVar('border-color', 'darker'),
|
|
1039
|
+
'fill-color': #f7ba2a,
|
|
1040
|
+
'disabled-void-color': getCssVar('fill-color'),
|
|
1041
|
+
'text-color': getCssVar('text-color', 'primary'),
|
|
1042
|
+
),
|
|
1043
|
+
$rate
|
|
1044
|
+
);
|
|
1045
|
+
|
|
1046
|
+
// DatePicker
|
|
1047
|
+
// css3 var packages/theme-chalk/src/date-picker/var.scss
|
|
1048
|
+
$datepicker: () !default;
|
|
1049
|
+
$datepicker: map.merge(
|
|
1050
|
+
(
|
|
1051
|
+
'text-color': getCssVar('text-color-regular'),
|
|
1052
|
+
'off-text-color': getCssVar('text-color-placeholder'),
|
|
1053
|
+
'header-text-color': getCssVar('text-color-regular'),
|
|
1054
|
+
'icon-color': getCssVar('text-color-primary'),
|
|
1055
|
+
'border-color': getCssVar('disabled-border-color'),
|
|
1056
|
+
'inner-border-color': getCssVar('border-color-light'),
|
|
1057
|
+
'inrange-bg-color': getCssVar('border-color-extra-light'),
|
|
1058
|
+
'inrange-hover-bg-color': getCssVar('border-color-extra-light'),
|
|
1059
|
+
'active-color': getCssVar('color-primary'),
|
|
1060
|
+
'hover-text-color': getCssVar('color-primary'),
|
|
1061
|
+
),
|
|
1062
|
+
$datepicker
|
|
1063
|
+
);
|
|
1064
|
+
|
|
1065
|
+
$date-editor: () !default;
|
|
1066
|
+
$date-editor: map.merge(
|
|
1067
|
+
(
|
|
1068
|
+
'width': 220px,
|
|
1069
|
+
'monthrange-width': 300px,
|
|
1070
|
+
'daterange-width': 350px,
|
|
1071
|
+
'datetimerange-width': 400px,
|
|
1072
|
+
),
|
|
1073
|
+
$date-editor
|
|
1074
|
+
);
|
|
1075
|
+
|
|
1076
|
+
// Loading
|
|
1077
|
+
// css3 var in packages/theme-chalk/src/loading.scss
|
|
1078
|
+
$loading: () !default;
|
|
1079
|
+
$loading: map.merge(
|
|
1080
|
+
(
|
|
1081
|
+
'spinner-size': 42px,
|
|
1082
|
+
'fullscreen-spinner-size': 50px,
|
|
1083
|
+
),
|
|
1084
|
+
$loading
|
|
1085
|
+
);
|
|
1086
|
+
|
|
1087
|
+
// Scrollbar
|
|
1088
|
+
// css3 var in packages/theme-chalk/src/scrollbar.scss
|
|
1089
|
+
$scrollbar: () !default;
|
|
1090
|
+
$scrollbar: map.merge(
|
|
1091
|
+
(
|
|
1092
|
+
'opacity': 0.3,
|
|
1093
|
+
'bg-color': getCssVar('text-color-secondary'),
|
|
1094
|
+
'hover-opacity': 0.5,
|
|
1095
|
+
'hover-bg-color': getCssVar('text-color-secondary'),
|
|
1096
|
+
),
|
|
1097
|
+
$scrollbar
|
|
1098
|
+
);
|
|
1099
|
+
|
|
1100
|
+
// Carousel
|
|
1101
|
+
// css3 var in packages/theme-chalk/src/carousel.scss
|
|
1102
|
+
$carousel: () !default;
|
|
1103
|
+
$carousel: map.merge(
|
|
1104
|
+
(
|
|
1105
|
+
'arrow-font-size': 12px,
|
|
1106
|
+
'arrow-size': 36px,
|
|
1107
|
+
'arrow-background': rgba(31, 45, 61, 0.11),
|
|
1108
|
+
'arrow-hover-background': rgba(31, 45, 61, 0.23),
|
|
1109
|
+
'indicator-width': 30px,
|
|
1110
|
+
'indicator-height': 2px,
|
|
1111
|
+
'indicator-padding-horizontal': 4px,
|
|
1112
|
+
'indicator-padding-vertical': 12px,
|
|
1113
|
+
'indicator-out-color': getCssVar('border-color-hover'),
|
|
1114
|
+
),
|
|
1115
|
+
$carousel
|
|
1116
|
+
);
|
|
1117
|
+
|
|
1118
|
+
// Collapse
|
|
1119
|
+
// css3 var in packages/theme-chalk/src/collapse.scss
|
|
1120
|
+
$collapse: () !default;
|
|
1121
|
+
$collapse: map.merge(
|
|
1122
|
+
(
|
|
1123
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
1124
|
+
'header-height': 48px,
|
|
1125
|
+
'header-bg-color': getCssVar('fill-color', 'blank'),
|
|
1126
|
+
'header-text-color': getCssVar('text-color-primary'),
|
|
1127
|
+
'header-font-size': 13px,
|
|
1128
|
+
'content-bg-color': getCssVar('fill-color', 'blank'),
|
|
1129
|
+
'content-font-size': 13px,
|
|
1130
|
+
'content-text-color': getCssVar('text-color-primary'),
|
|
1131
|
+
),
|
|
1132
|
+
$collapse
|
|
1133
|
+
);
|
|
1134
|
+
|
|
1135
|
+
// Transfer
|
|
1136
|
+
// css3 var in packages/theme-chalk/src/transfer.scss
|
|
1137
|
+
$transfer: () !default;
|
|
1138
|
+
$transfer: map.merge(
|
|
1139
|
+
(
|
|
1140
|
+
'border-color': getCssVar('border-color-lighter'),
|
|
1141
|
+
'border-radius': getCssVar('border-radius-base'),
|
|
1142
|
+
'panel-width': 200px,
|
|
1143
|
+
'panel-header-height': 40px,
|
|
1144
|
+
'panel-header-bg-color': getCssVar('fill-color', 'light'),
|
|
1145
|
+
'panel-footer-height': 40px,
|
|
1146
|
+
'panel-body-height': 278px,
|
|
1147
|
+
'item-height': 30px,
|
|
1148
|
+
'filter-height': 32px,
|
|
1149
|
+
),
|
|
1150
|
+
$transfer
|
|
1151
|
+
);
|
|
1152
|
+
|
|
1153
|
+
// Timeline
|
|
1154
|
+
// css3 var in packages/theme-chalk/src/timeline-item.scss
|
|
1155
|
+
$timeline: () !default;
|
|
1156
|
+
$timeline: map.merge(
|
|
1157
|
+
(
|
|
1158
|
+
'node-size-normal': 12px,
|
|
1159
|
+
'node-size-large': 14px,
|
|
1160
|
+
'node-color': getCssVar('border-color-light'),
|
|
1161
|
+
),
|
|
1162
|
+
$timeline
|
|
1163
|
+
);
|
|
1164
|
+
|
|
1165
|
+
// Tabs
|
|
1166
|
+
// css3 var in packages/theme-chalk/src/tabs.scss
|
|
1167
|
+
$tabs: () !default;
|
|
1168
|
+
$tabs: map.merge(
|
|
1169
|
+
(
|
|
1170
|
+
'header-height': 40px,
|
|
1171
|
+
),
|
|
1172
|
+
$tabs
|
|
1173
|
+
);
|
|
1174
|
+
|
|
1175
|
+
// Backtop
|
|
1176
|
+
// css3 var in packages/theme-chalk/src/backtop.scss
|
|
1177
|
+
$backtop: () !default;
|
|
1178
|
+
$backtop: map.merge(
|
|
1179
|
+
(
|
|
1180
|
+
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
1181
|
+
'text-color': getCssVar('color-primary'),
|
|
1182
|
+
'hover-bg-color': getCssVar('border-color-extra-light'),
|
|
1183
|
+
),
|
|
1184
|
+
$backtop
|
|
1185
|
+
);
|
|
1186
|
+
|
|
1187
|
+
// Link
|
|
1188
|
+
// css3 var in packages/theme-chalk/src/link.scss
|
|
1189
|
+
$link: () !default;
|
|
1190
|
+
$link: map.merge(
|
|
1191
|
+
(
|
|
1192
|
+
'font-size': getCssVar('font-size-base'),
|
|
1193
|
+
'font-weight': getCssVar('font-weight-primary'),
|
|
1194
|
+
'text-color': getCssVar('text-color-regular'),
|
|
1195
|
+
'hover-text-color': getCssVar('color-primary'),
|
|
1196
|
+
'disabled-text-color': getCssVar('text-color-placeholder'),
|
|
1197
|
+
),
|
|
1198
|
+
$link
|
|
1199
|
+
);
|
|
1200
|
+
|
|
1201
|
+
$link-text-color: () !default;
|
|
1202
|
+
|
|
1203
|
+
@each $type in $types {
|
|
1204
|
+
$link-text-color: map.merge(
|
|
1205
|
+
$link-text-color,
|
|
1206
|
+
(
|
|
1207
|
+
$type: map.get($colors, $type, 'base'),
|
|
1208
|
+
)
|
|
1209
|
+
) !global;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
// Calendar
|
|
1213
|
+
// css3 var in packages/theme-chalk/src/calendar.scss
|
|
1214
|
+
$calendar: () !default;
|
|
1215
|
+
$calendar: map.merge(
|
|
1216
|
+
(
|
|
1217
|
+
'border':
|
|
1218
|
+
var(
|
|
1219
|
+
#{getCssVarName('table-border')},
|
|
1220
|
+
1px solid #{getCssVar('border-color-lighter')}
|
|
1221
|
+
),
|
|
1222
|
+
'header-border-bottom': getCssVar('calendar-border'),
|
|
1223
|
+
'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
|
|
1224
|
+
'cell-width': 85px,
|
|
1225
|
+
),
|
|
1226
|
+
$calendar
|
|
1227
|
+
);
|
|
1228
|
+
|
|
1229
|
+
// Form
|
|
1230
|
+
// css3 var in packages/theme-chalk/src/form.scss
|
|
1231
|
+
$form: () !default;
|
|
1232
|
+
$form: map.merge(
|
|
1233
|
+
(
|
|
1234
|
+
'label-font-size': getCssVar('font-size-base'),
|
|
1235
|
+
),
|
|
1236
|
+
$form
|
|
1237
|
+
);
|
|
1238
|
+
|
|
1239
|
+
// Avatar
|
|
1240
|
+
// css3 var in packages/theme-chalk/src/avatar.scss
|
|
1241
|
+
$avatar: () !default;
|
|
1242
|
+
$avatar: map.merge(
|
|
1243
|
+
(
|
|
1244
|
+
'text-color': getCssVar('color-white'),
|
|
1245
|
+
'bg-color': getCssVar('text-color', 'disabled'),
|
|
1246
|
+
'text-size': 14px,
|
|
1247
|
+
'icon-size': 18px,
|
|
1248
|
+
'border-radius': getCssVar('border-radius-base'),
|
|
1249
|
+
),
|
|
1250
|
+
$avatar
|
|
1251
|
+
);
|
|
1252
|
+
|
|
1253
|
+
$avatar-size: () !default;
|
|
1254
|
+
$avatar-size: map.merge(
|
|
1255
|
+
(
|
|
1256
|
+
'large': 56px,
|
|
1257
|
+
'default': 40px,
|
|
1258
|
+
'small': 24px,
|
|
1259
|
+
),
|
|
1260
|
+
$avatar-size
|
|
1261
|
+
);
|
|
1262
|
+
|
|
1263
|
+
// Empty
|
|
1264
|
+
// css3 var in packages/theme-chalk/src/empty.scss
|
|
1265
|
+
$empty: () !default;
|
|
1266
|
+
$empty: map.merge(
|
|
1267
|
+
(
|
|
1268
|
+
'padding': 40px 0,
|
|
1269
|
+
'image-width': 160px,
|
|
1270
|
+
'description-margin-top': 20px,
|
|
1271
|
+
'bottom-margin-top': 20px,
|
|
1272
|
+
'fill-color-0': getCssVar('color-white'),
|
|
1273
|
+
'fill-color-1': #fcfcfd,
|
|
1274
|
+
'fill-color-2': #f8f9fb,
|
|
1275
|
+
'fill-color-3': #f7f8fc,
|
|
1276
|
+
'fill-color-4': #eeeff3,
|
|
1277
|
+
'fill-color-5': #edeef2,
|
|
1278
|
+
'fill-color-6': #e9ebef,
|
|
1279
|
+
'fill-color-7': #e5e7e9,
|
|
1280
|
+
'fill-color-8': #e0e3e9,
|
|
1281
|
+
'fill-color-9': #d5d7de,
|
|
1282
|
+
),
|
|
1283
|
+
$empty
|
|
1284
|
+
);
|
|
1285
|
+
|
|
1286
|
+
// Descriptions
|
|
1287
|
+
// css3 var in packages/theme-chalk/src/descriptions.scss
|
|
1288
|
+
$descriptions: () !default;
|
|
1289
|
+
$descriptions: map.merge(
|
|
1290
|
+
(
|
|
1291
|
+
'table-border': 1px solid getCssVar('border-color-lighter'),
|
|
1292
|
+
'item-bordered-label-background': getCssVar('fill-color', 'light'),
|
|
1293
|
+
),
|
|
1294
|
+
$descriptions
|
|
1295
|
+
);
|
|
1296
|
+
|
|
1297
|
+
// Result
|
|
1298
|
+
// css3 var in packages/theme-chalk/src/result.scss
|
|
1299
|
+
$result: () !default;
|
|
1300
|
+
$result: map.merge(
|
|
1301
|
+
(
|
|
1302
|
+
'padding': 40px 30px,
|
|
1303
|
+
'icon-font-size': 64px,
|
|
1304
|
+
'title-font-size': 20px,
|
|
1305
|
+
'title-margin-top': 20px,
|
|
1306
|
+
'subtitle-margin-top': 10px,
|
|
1307
|
+
'extra-margin-top': 30px,
|
|
1308
|
+
),
|
|
1309
|
+
$result
|
|
1310
|
+
);
|
|
1311
|
+
|
|
1312
|
+
// Upload
|
|
1313
|
+
// css3 var in packages/theme-chalk/src/upload.scss
|
|
1314
|
+
$upload: () !default;
|
|
1315
|
+
$upload: map.merge(
|
|
1316
|
+
(
|
|
1317
|
+
'dragger-padding-horizontal': 40px,
|
|
1318
|
+
'dragger-padding-vertical': 10px,
|
|
1319
|
+
),
|
|
1320
|
+
$upload
|
|
1321
|
+
);
|
|
1322
|
+
|
|
1323
|
+
// transition
|
|
1324
|
+
$transition: () !default;
|
|
1325
|
+
$transition: map.merge(
|
|
1326
|
+
(
|
|
1327
|
+
'all': all getCssVar('transition-duration')
|
|
1328
|
+
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1329
|
+
'fade': opacity getCssVar('transition-duration')
|
|
1330
|
+
getCssVar('transition-function-fast-bezier'),
|
|
1331
|
+
'md-fade': (
|
|
1332
|
+
transform getCssVar('transition-duration')
|
|
1333
|
+
getCssVar('transition-function-fast-bezier'),
|
|
1334
|
+
opacity getCssVar('transition-duration')
|
|
1335
|
+
getCssVar('transition-function-fast-bezier'),
|
|
1336
|
+
),
|
|
1337
|
+
'fade-linear': opacity getCssVar('transition-duration-fast') linear,
|
|
1338
|
+
'border': border-color getCssVar('transition-duration-fast')
|
|
1339
|
+
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1340
|
+
'box-shadow': box-shadow getCssVar('transition-duration-fast')
|
|
1341
|
+
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1342
|
+
'color': color getCssVar('transition-duration-fast')
|
|
1343
|
+
getCssVar('transition-function-ease-in-out-bezier'),
|
|
1344
|
+
),
|
|
1345
|
+
$transition
|
|
1346
|
+
);
|
|
1347
|
+
|
|
1348
|
+
$transition-duration: () !default;
|
|
1349
|
+
$transition-duration: map.merge(
|
|
1350
|
+
(
|
|
1351
|
+
'': 0.3s,
|
|
1352
|
+
'fast': 0.2s,
|
|
1353
|
+
),
|
|
1354
|
+
$transition-duration
|
|
1355
|
+
);
|
|
1356
|
+
|
|
1357
|
+
$transition-function: () !default;
|
|
1358
|
+
$transition-function: map.merge(
|
|
1359
|
+
(
|
|
1360
|
+
'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
|
|
1361
|
+
'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
|
|
1362
|
+
),
|
|
1363
|
+
$transition-function
|
|
1364
|
+
);
|
|
1365
|
+
|
|
1366
|
+
// header
|
|
1367
|
+
$header: () !default;
|
|
1368
|
+
$header: map.merge(
|
|
1369
|
+
(
|
|
1370
|
+
'padding': 0 20px,
|
|
1371
|
+
'height': 60px,
|
|
1372
|
+
),
|
|
1373
|
+
$header
|
|
1374
|
+
);
|
|
1375
|
+
// main
|
|
1376
|
+
$main: () !default;
|
|
1377
|
+
$main: map.merge(
|
|
1378
|
+
(
|
|
1379
|
+
'padding': 20px,
|
|
1380
|
+
),
|
|
1381
|
+
$main
|
|
1382
|
+
);
|
|
1383
|
+
// footer
|
|
1384
|
+
$footer: () !default;
|
|
1385
|
+
$footer: map.merge(
|
|
1386
|
+
(
|
|
1387
|
+
'padding': 0 20px,
|
|
1388
|
+
'height': 60px,
|
|
1389
|
+
),
|
|
1390
|
+
$footer
|
|
1391
|
+
);
|
|
1392
|
+
|
|
1393
|
+
// Break-point
|
|
1394
|
+
$sm: 768px !default;
|
|
1395
|
+
$md: 992px !default;
|
|
1396
|
+
$lg: 1200px !default;
|
|
1397
|
+
$xl: 1920px !default;
|
|
1398
|
+
|
|
1399
|
+
$breakpoints: (
|
|
1400
|
+
'xs': '(max-width: #{$sm})',
|
|
1401
|
+
'sm': '(min-width: #{$sm})',
|
|
1402
|
+
'md': '(min-width: #{$md})',
|
|
1403
|
+
'lg': '(min-width: #{$lg})',
|
|
1404
|
+
'xl': '(min-width: #{$xl})',
|
|
1405
|
+
) !default;
|
|
1406
|
+
|
|
1407
|
+
$breakpoints-spec: (
|
|
1408
|
+
'xs-only': '(max-width: #{$sm - 1})',
|
|
1409
|
+
'sm-and-up': '(min-width: #{$sm})',
|
|
1410
|
+
'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
|
|
1411
|
+
'sm-and-down': '(max-width: #{$md - 1})',
|
|
1412
|
+
'md-and-up': '(min-width: #{$md})',
|
|
1413
|
+
'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
|
|
1414
|
+
'md-and-down': '(max-width: #{$lg - 1})',
|
|
1415
|
+
'lg-and-up': '(min-width: #{$lg})',
|
|
1416
|
+
'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
|
|
1417
|
+
'lg-and-down': '(max-width: #{$xl - 1})',
|
|
1418
|
+
'xl-only': '(min-width: #{$xl})',
|
|
1419
|
+
) !default;
|