inl-ui 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1122 +1,1122 @@
1
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
- @import '../color/colors';
3
-
4
- @theme: variable;
5
-
6
- // The prefix to use on all css classes from ant.
7
- @ant-prefix: ant;
8
-
9
- // An override for the html selector for theme prefixes
10
- @html-selector: html;
11
-
12
- @base-primary: @blue-6;
13
-
14
- html {
15
- // ========= Primary Color =========
16
- --@{ant-prefix}-primary-color: @base-primary;
17
- --@{ant-prefix}-primary-color-hover: color(~`colorPalette('@{base-primary}', 5) `);
18
- --@{ant-prefix}-primary-color-active: color(~`colorPalette('@{base-primary}', 7) `);
19
- --@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade);
20
-
21
- // Legacy
22
- @legacy-primary-1: color(~`colorPalette('@{base-primary}', 1) `);
23
-
24
- --@{ant-prefix}-primary-1: @legacy-primary-1;
25
- --@{ant-prefix}-primary-2: color(~`colorPalette('@{base-primary}', 2) `);
26
- --@{ant-prefix}-primary-3: color(~`colorPalette('@{base-primary}', 3) `);
27
- --@{ant-prefix}-primary-4: color(~`colorPalette('@{base-primary}', 4) `);
28
- --@{ant-prefix}-primary-5: color(~`colorPalette('@{base-primary}', 5) `);
29
- --@{ant-prefix}-primary-6: @base-primary;
30
- --@{ant-prefix}-primary-7: color(~`colorPalette('@{base-primary}', 7) `);
31
-
32
- // Deprecated
33
- --@{ant-prefix}-primary-color-deprecated-pure: ~'';
34
- --@{ant-prefix}-primary-color-deprecated-l-35: lighten(@base-primary, 35%);
35
- --@{ant-prefix}-primary-color-deprecated-l-20: lighten(@base-primary, 20%);
36
- --@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%);
37
- --@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%);
38
- --@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%);
39
- --@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%);
40
- --@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%);
41
-
42
- // ========= Success Color =========
43
- --@{ant-prefix}-success-color: @green-6;
44
- --@{ant-prefix}-success-color-hover: color(~`colorPalette('@{green-6}', 5) `);
45
- --@{ant-prefix}-success-color-active: color(~`colorPalette('@{green-6}', 7) `);
46
- --@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade);
47
- --@{ant-prefix}-success-color-deprecated-bg: ~`colorPalette('@{green-6}', 1) `;
48
- --@{ant-prefix}-success-color-deprecated-border: ~`colorPalette('@{green-6}', 3) `;
49
-
50
- // ========== Error Color ==========
51
- --@{ant-prefix}-error-color: @red-5;
52
- --@{ant-prefix}-error-color-hover: color(~`colorPalette('@{red-5}', 5) `);
53
- --@{ant-prefix}-error-color-active: color(~`colorPalette('@{red-5}', 7) `);
54
- --@{ant-prefix}-error-color-outline: fade(@red-5, @outline-fade);
55
- --@{ant-prefix}-error-color-deprecated-bg: ~`colorPalette('@{red-5}', 1) `;
56
- --@{ant-prefix}-error-color-deprecated-border: ~`colorPalette('@{red-5}', 3) `;
57
-
58
- // ========= Warning Color =========
59
- --@{ant-prefix}-warning-color: @gold-6;
60
- --@{ant-prefix}-warning-color-hover: color(~`colorPalette('@{gold-6}', 5) `);
61
- --@{ant-prefix}-warning-color-active: color(~`colorPalette('@{gold-6}', 7) `);
62
- --@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade);
63
- --@{ant-prefix}-warning-color-deprecated-bg: ~`colorPalette('@{gold-6}', 1) `;
64
- --@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette('@{gold-6}', 3) `;
65
-
66
- // ========== Info Color ===========
67
- --@{ant-prefix}-info-color: @base-primary;
68
- --@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1) `;
69
- --@{ant-prefix}-info-color-deprecated-border: ~`colorPalette('@{base-primary}', 3) `;
70
- }
71
-
72
- // -------- Colors -----------
73
- // >>> Primary
74
- @primary-color: ~'var(--@{ant-prefix}-primary-color)';
75
- @primary-color-hover: ~'var(--@{ant-prefix}-primary-color-hover)';
76
- @primary-color-active: ~'var(--@{ant-prefix}-primary-color-active)';
77
- @primary-color-outline: ~'var(--@{ant-prefix}-primary-color-outline)';
78
-
79
- @processing-color: @primary-color;
80
-
81
- // >>> Info
82
- @info-color: ~'var(--@{ant-prefix}-info-color)';
83
- @info-color-deprecated-bg: ~'var(--@{ant-prefix}-info-color-deprecated-bg)';
84
- @info-color-deprecated-border: ~'var(--@{ant-prefix}-info-color-deprecated-border)';
85
-
86
- // >>> Success
87
- @success-color: ~'var(--@{ant-prefix}-success-color)';
88
- @success-color-hover: ~'var(--@{ant-prefix}-success-color-hover)';
89
- @success-color-active: ~'var(--@{ant-prefix}-success-color-active)';
90
- @success-color-outline: ~'var(--@{ant-prefix}-success-color-outline)';
91
- @success-color-deprecated-bg: ~'var(--@{ant-prefix}-success-color-deprecated-bg)';
92
- @success-color-deprecated-border: ~'var(--@{ant-prefix}-success-color-deprecated-border)';
93
-
94
- // >>> Warning
95
- @warning-color: ~'var(--@{ant-prefix}-warning-color)';
96
- @warning-color-hover: ~'var(--@{ant-prefix}-warning-color-hover)';
97
- @warning-color-active: ~'var(--@{ant-prefix}-warning-color-active)';
98
- @warning-color-outline: ~'var(--@{ant-prefix}-warning-color-outline)';
99
- @warning-color-deprecated-bg: ~'var(--@{ant-prefix}-warning-color-deprecated-bg)';
100
- @warning-color-deprecated-border: ~'var(--@{ant-prefix}-warning-color-deprecated-border)';
101
-
102
- // >>> Error
103
- @error-color: ~'var(--@{ant-prefix}-error-color)';
104
- @error-color-hover: ~'var(--@{ant-prefix}-error-color-hover)';
105
- @error-color-active: ~'var(--@{ant-prefix}-error-color-active)';
106
- @error-color-outline: ~'var(--@{ant-prefix}-error-color-outline)';
107
- @error-color-deprecated-bg: ~'var(--@{ant-prefix}-error-color-deprecated-bg)';
108
- @error-color-deprecated-border: ~'var(--@{ant-prefix}-error-color-deprecated-border)';
109
-
110
- @highlight-color: @red-5;
111
- @normal-color: #d9d9d9;
112
- @white: #fff;
113
- @black: #000;
114
-
115
- // Color used by default to control hover and active backgrounds and for
116
- // alert info backgrounds.
117
- @primary-1: ~'var(--@{ant-prefix}-primary-1)'; // replace tint(@primary-color, 90%)
118
- @primary-2: ~'var(--@{ant-prefix}-primary-2)'; // replace tint(@primary-color, 80%)
119
- @primary-3: ~'var(--@{ant-prefix}-primary-3)'; // unused
120
- @primary-4: ~'var(--@{ant-prefix}-primary-4)'; // unused
121
- @primary-5: ~'var(--@{ant-prefix}-primary-5)'; // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
122
- @primary-6: ~'var(--@{ant-prefix}-primary-6)'; // color used to control the text color of active buttons, don't use, use @primary-color
123
- @primary-7: ~'var(--@{ant-prefix}-primary-7)'; // replace shade(@primary-color, 5%)
124
- @primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
125
- @primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
126
- @primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
127
-
128
- // Base Scaffolding Variables
129
- // ---
130
-
131
- // Background color for `<body>`
132
- @body-background: #fff;
133
- // Base background color for most components
134
- @component-background: #fff;
135
- // Popover background color
136
- @popover-background: @component-background;
137
- @popover-customize-border-color: @border-color-split;
138
- @font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
139
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
140
- 'Noto Color Emoji';
141
- @code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
142
- @text-color: fade(@black, 85%);
143
- @text-color-secondary: fade(@black, 45%);
144
- @text-color-inverse: @white;
145
- @icon-color: inherit;
146
- @icon-color-hover: fade(@black, 75%);
147
- @heading-color: fade(@black, 85%);
148
- @text-color-dark: fade(@white, 85%);
149
- @text-color-secondary-dark: fade(@white, 65%);
150
- @text-selection-bg: @primary-color;
151
- @font-variant-base: tabular-nums;
152
- @font-feature-settings-base: 'tnum';
153
- @font-size-base: 14px;
154
- @font-size-lg: @font-size-base + 2px;
155
- @font-size-sm: 12px;
156
- @heading-1-size: ceil(@font-size-base * 2.71);
157
- @heading-2-size: ceil(@font-size-base * 2.14);
158
- @heading-3-size: ceil(@font-size-base * 1.71);
159
- @heading-4-size: ceil(@font-size-base * 1.42);
160
- @heading-5-size: ceil(@font-size-base * 1.14);
161
- // https://github.com/ant-design/ant-design/issues/20210
162
- @line-height-base: 1.5715;
163
- @border-radius-base: 2px;
164
- @border-radius-sm: @border-radius-base;
165
-
166
- // vertical paddings
167
- @padding-lg: 24px; // containers
168
- @padding-md: 16px; // small containers and buttons
169
- @padding-sm: 12px; // Form controls and items
170
- @padding-xs: 8px; // small items
171
- @padding-xss: 4px; // more small
172
-
173
- // vertical padding for all form controls
174
- @control-padding-horizontal: @padding-sm;
175
- @control-padding-horizontal-sm: @padding-xs;
176
-
177
- // vertical margins
178
- @margin-lg: 24px; // containers
179
- @margin-md: 16px; // small containers and buttons
180
- @margin-sm: 12px; // Form controls and items
181
- @margin-xs: 8px; // small items
182
- @margin-xss: 4px; // more small
183
-
184
- // height rules
185
- @height-base: 32px;
186
- @height-lg: 40px;
187
- @height-sm: 24px;
188
-
189
- // The background colors for active and hover states for things like
190
- // list items or table cells.
191
- @item-active-bg: @primary-1;
192
- @item-hover-bg: #f5f5f5;
193
-
194
- // ICONFONT
195
- @iconfont-css-prefix: anticon;
196
-
197
- // LINK
198
- @link-color: @primary-color;
199
- @link-hover-color: @primary-color-hover;
200
- @link-active-color: @primary-color-active;
201
- @link-decoration: none;
202
- @link-hover-decoration: none;
203
- @link-focus-decoration: none;
204
- @link-focus-outline: 0;
205
-
206
- // Animation
207
- @ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
208
- @ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
209
- @ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
210
- @ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
211
- @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
212
- @ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
213
- @ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
214
- @ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
215
- @ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
216
- @ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
217
- @ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
218
- @ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
219
- @ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
220
- @ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
221
-
222
- // Border color
223
- @border-color-base: hsv(0, 0, 85%); // base border outline a component
224
- @border-color-split: hsv(0, 0, 94%); // split border inside a component
225
- @border-color-inverse: @white;
226
- @border-width-base: 1px; // width of the border for a component
227
- @border-style-base: solid; // style of a components border
228
-
229
- // Outline
230
- @outline-blur-size: 0;
231
- @outline-width: 2px;
232
- @outline-color: @primary-color; // No use anymore
233
- @outline-fade: 20%;
234
-
235
- @background-color-light: hsv(0, 0, 98%); // background of header and selected item
236
- @background-color-base: hsv(0, 0, 96%); // Default grey background color
237
-
238
- // Disabled states
239
- @disabled-color: fade(#000, 25%);
240
- @disabled-bg: @background-color-base;
241
- @disabled-active-bg: tint(@black, 90%);
242
- @disabled-color-dark: fade(#fff, 35%);
243
-
244
- // Shadow
245
- @shadow-color: rgba(0, 0, 0, 0.15);
246
- @shadow-color-inverse: @component-background;
247
- @box-shadow-base: @shadow-2;
248
- @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
249
- 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
250
- @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
251
- 0 12px 48px 16px rgba(0, 0, 0, 0.03);
252
- @shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
253
- -12px 0 48px 16px rgba(0, 0, 0, 0.03);
254
- @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
255
- 12px 0 48px 16px rgba(0, 0, 0, 0.03);
256
- @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
257
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
258
-
259
- // Buttons
260
- @btn-font-weight: 400;
261
- @btn-border-radius-base: @border-radius-base;
262
- @btn-border-radius-sm: @border-radius-base;
263
- @btn-border-width: @border-width-base;
264
- @btn-border-style: @border-style-base;
265
- @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
266
- @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
267
- @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
268
-
269
- @btn-primary-color: #fff;
270
- @btn-primary-bg: @primary-color;
271
-
272
- @btn-default-color: @text-color;
273
- @btn-default-bg: @component-background;
274
- @btn-default-border: @border-color-base;
275
-
276
- @btn-danger-color: #fff;
277
- @btn-danger-bg: @error-color;
278
- @btn-danger-border: @error-color;
279
-
280
- @btn-disable-color: @disabled-color;
281
- @btn-disable-bg: @disabled-bg;
282
- @btn-disable-border: @border-color-base;
283
-
284
- @btn-default-ghost-color: @component-background;
285
- @btn-default-ghost-bg: transparent;
286
- @btn-default-ghost-border: @component-background;
287
-
288
- @btn-font-size-lg: @font-size-lg;
289
- @btn-font-size-sm: @font-size-base;
290
- @btn-padding-horizontal-base: @padding-md - 1px;
291
- @btn-padding-horizontal-lg: @btn-padding-horizontal-base;
292
- @btn-padding-horizontal-sm: @padding-xs - 1px;
293
-
294
- @btn-height-base: @height-base;
295
- @btn-height-lg: @height-lg;
296
- @btn-height-sm: @height-sm;
297
-
298
- @btn-line-height: @line-height-base;
299
-
300
- @btn-circle-size: @btn-height-base;
301
- @btn-circle-size-lg: @btn-height-lg;
302
- @btn-circle-size-sm: @btn-height-sm;
303
-
304
- @btn-square-size: @btn-height-base;
305
- @btn-square-size-lg: @btn-height-lg;
306
- @btn-square-size-sm: @btn-height-sm;
307
- @btn-square-only-icon-size: @font-size-base + 2px;
308
- @btn-square-only-icon-size-sm: @font-size-base;
309
- @btn-square-only-icon-size-lg: @btn-font-size-lg + 2px;
310
-
311
- @btn-group-border: @primary-5;
312
-
313
- @btn-link-hover-bg: transparent;
314
- @btn-text-hover-bg: rgba(0, 0, 0, 0.018);
315
-
316
- // Checkbox
317
- @checkbox-size: 16px;
318
- @checkbox-color: @primary-color;
319
- @checkbox-check-color: #fff;
320
- @checkbox-check-bg: @checkbox-check-color;
321
- @checkbox-border-width: @border-width-base;
322
- @checkbox-border-radius: @border-radius-base;
323
- @checkbox-group-item-margin-right: 8px;
324
-
325
- // Descriptions
326
- @descriptions-bg: #fafafa;
327
- @descriptions-title-margin-bottom: 20px;
328
- @descriptions-default-padding: @padding-md @padding-lg;
329
- @descriptions-middle-padding: @padding-sm @padding-lg;
330
- @descriptions-small-padding: @padding-xs @padding-md;
331
- @descriptions-item-padding-bottom: @padding-md;
332
- @descriptions-item-trailing-colon: true;
333
- @descriptions-item-label-colon-margin-right: 8px;
334
- @descriptions-item-label-colon-margin-left: 2px;
335
- @descriptions-extra-color: @text-color;
336
-
337
- // Divider
338
- @divider-text-padding: 1em;
339
- @divider-orientation-margin: 5%;
340
- @divider-color: rgba(0, 0, 0, 6%);
341
- @divider-vertical-gutter: 8px;
342
-
343
- // Dropdown
344
- @dropdown-selected-color: @primary-color;
345
- @dropdown-menu-submenu-disabled-bg: @component-background;
346
- @dropdown-selected-bg: @item-active-bg;
347
-
348
- // Empty
349
- @empty-font-size: @font-size-base;
350
-
351
- // Radio
352
- @radio-size: 16px;
353
- @radio-top: 0.2em;
354
- @radio-border-width: 1px;
355
- @radio-dot-size: @radio-size - 8px;
356
- @radio-dot-color: @primary-color;
357
- @radio-dot-disabled-color: fade(@black, 20%);
358
- @radio-solid-checked-color: @component-background;
359
-
360
- // Radio buttons
361
- @radio-button-bg: @btn-default-bg;
362
- @radio-button-checked-bg: @btn-default-bg;
363
- @radio-button-color: @btn-default-color;
364
- @radio-button-hover-color: @primary-5;
365
- @radio-button-active-color: @primary-7;
366
- @radio-button-padding-horizontal: @padding-md - 1px;
367
- @radio-disabled-button-checked-bg: @disabled-active-bg;
368
- @radio-disabled-button-checked-color: @disabled-color;
369
- @radio-wrapper-margin-right: 8px;
370
-
371
- // Media queries breakpoints
372
- // @screen-xs and @screen-xs-min is not used in Grid
373
- // smallest break point is @screen-md
374
- @screen-xs: 480px;
375
- @screen-xs-min: @screen-xs;
376
- // 👆 Extra small screen / phone
377
-
378
- // 👇 Small screen / tablet
379
- @screen-sm: 576px;
380
- @screen-sm-min: @screen-sm;
381
-
382
- // Medium screen / desktop
383
- @screen-md: 768px;
384
- @screen-md-min: @screen-md;
385
-
386
- // Large screen / wide desktop
387
- @screen-lg: 992px;
388
- @screen-lg-min: @screen-lg;
389
-
390
- // Extra large screen / full hd
391
- @screen-xl: 1200px;
392
- @screen-xl-min: @screen-xl;
393
-
394
- // Extra extra large screen / large desktop
395
- @screen-xxl: 1600px;
396
- @screen-xxl-min: @screen-xxl;
397
- @screen-xxxl: 2000px;
398
- @screen-xxxl-min: @screen-xxxl;
399
-
400
- // provide a maximum
401
- @screen-xs-max: (@screen-sm-min - 1px);
402
- @screen-sm-max: (@screen-md-min - 1px);
403
- @screen-md-max: (@screen-lg-min - 1px);
404
- @screen-lg-max: (@screen-xl-min - 1px);
405
- @screen-xl-max: (@screen-xxl-min - 1px);
406
- @screen-xxl-max: (@screen-xxxl-min - 1px);
407
-
408
- // Grid system
409
- @grid-columns: 24;
410
-
411
- // Layout
412
- @layout-body-background: #f0f2f5;
413
- @layout-header-background: #001529;
414
- @layout-header-height: 64px;
415
- @layout-header-padding: 0 50px;
416
- @layout-header-color: @text-color;
417
- @layout-footer-padding: 24px 50px;
418
- @layout-footer-background: @layout-body-background;
419
- @layout-sider-background: @layout-header-background;
420
- @layout-trigger-height: 48px;
421
- @layout-trigger-background: #002140;
422
- @layout-trigger-color: #fff;
423
- @layout-zero-trigger-width: 36px;
424
- @layout-zero-trigger-height: 42px;
425
- // Layout light theme
426
- @layout-sider-background-light: #fff;
427
- @layout-trigger-background-light: #fff;
428
- @layout-trigger-color-light: @text-color;
429
-
430
- // z-index list, order by `z-index`
431
- @zindex-badge: auto;
432
- @zindex-table-fixed: 2;
433
- @zindex-affix: 10;
434
- @zindex-back-top: 10;
435
- @zindex-picker-panel: 10;
436
- @zindex-popup-close: 10;
437
- @zindex-modal: 1000;
438
- @zindex-modal-mask: 1000;
439
- @zindex-message: 1010;
440
- @zindex-notification: 1010;
441
- @zindex-popover: 1030;
442
- @zindex-dropdown: 1050;
443
- @zindex-picker: 1050;
444
- @zindex-popoconfirm: 1060;
445
- @zindex-tooltip: 1070;
446
- @zindex-image: 1080;
447
-
448
- // Animation
449
- @animation-duration-slow: 0.3s; // Modal
450
- @animation-duration-base: 0.2s;
451
- @animation-duration-fast: 0.1s; // Tooltip
452
-
453
- //CollapsePanel
454
- @collapse-panel-border-radius: @border-radius-base;
455
-
456
- //Dropdown
457
- @dropdown-menu-bg: @component-background;
458
- @dropdown-vertical-padding: 5px;
459
- @dropdown-edge-child-vertical-padding: 4px;
460
- @dropdown-font-size: @font-size-base;
461
- @dropdown-line-height: 22px;
462
-
463
- // Form
464
- // ---
465
- @label-required-color: @highlight-color;
466
- @label-color: @heading-color;
467
- @form-warning-input-bg: @input-bg;
468
- @form-item-margin-bottom: 24px;
469
- @form-item-trailing-colon: true;
470
- @form-vertical-label-padding: 0 0 8px;
471
- @form-vertical-label-margin: 0;
472
- @form-item-label-font-size: @font-size-base;
473
- @form-item-label-height: @input-height-base;
474
- @form-item-label-colon-margin-right: 8px;
475
- @form-item-label-colon-margin-left: 2px;
476
- @form-error-input-bg: @input-bg;
477
-
478
- // Input
479
- // ---
480
- @input-height-base: @height-base;
481
- @input-height-lg: @height-lg;
482
- @input-height-sm: @height-sm;
483
- @input-padding-horizontal: @control-padding-horizontal - 1px;
484
- @input-padding-horizontal-base: @input-padding-horizontal;
485
- @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
486
- @input-padding-horizontal-lg: @input-padding-horizontal;
487
- @input-padding-vertical-base: max(
488
- (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
489
- @border-width-base,
490
- 3px
491
- );
492
- @input-padding-vertical-sm: max(
493
- (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
494
- @border-width-base,
495
- 0
496
- );
497
- @input-padding-vertical-lg: (
498
- ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10
499
- ) - @border-width-base;
500
- @input-placeholder-color: hsv(0, 0, 75%);
501
- @input-color: @text-color;
502
- @input-icon-color: @input-color;
503
- @input-border-color: @border-color-base;
504
- @input-bg: @component-background;
505
- @input-number-hover-border-color: @input-hover-border-color;
506
- @input-number-handler-active-bg: #f4f4f4;
507
- @input-number-handler-hover-bg: @primary-5;
508
- @input-number-handler-bg: @component-background;
509
- @input-number-handler-border-color: @border-color-base;
510
- @input-addon-bg: @background-color-light;
511
- @input-hover-border-color: @primary-5;
512
- @input-disabled-bg: @disabled-bg;
513
- @input-outline-offset: 0 0;
514
- @input-icon-hover-color: fade(@black, 85%);
515
- @input-disabled-color: @disabled-color;
516
-
517
- // Mentions
518
- // ---
519
- @mentions-dropdown-bg: @component-background;
520
- @mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg;
521
-
522
- // Select
523
- // ---
524
- @select-border-color: @border-color-base;
525
- @select-item-selected-color: @text-color;
526
- @select-item-selected-font-weight: 600;
527
- @select-dropdown-bg: @component-background;
528
- @select-item-selected-bg: @primary-1;
529
- @select-item-active-bg: @item-hover-bg;
530
- @select-dropdown-vertical-padding: @dropdown-vertical-padding;
531
- @select-dropdown-font-size: @dropdown-font-size;
532
- @select-dropdown-line-height: @dropdown-line-height;
533
- @select-dropdown-height: 32px;
534
- @select-background: @component-background;
535
- @select-clear-background: @select-background;
536
- @select-selection-item-bg: @background-color-base;
537
- @select-selection-item-border-color: @border-color-split;
538
- @select-single-item-height-lg: 40px;
539
- @select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
540
- @select-multiple-item-height-lg: 32px;
541
- @select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
542
- @select-multiple-disabled-background: @input-disabled-bg;
543
- @select-multiple-item-disabled-color: #bfbfbf;
544
- @select-multiple-item-disabled-border-color: @select-border-color;
545
-
546
- // Cascader
547
- // ---
548
- @cascader-bg: @component-background;
549
- @cascader-item-selected-bg: @primary-1;
550
- @cascader-menu-bg: @component-background;
551
- @cascader-menu-border-color-split: @border-color-split;
552
-
553
- // Cascader
554
- // ----
555
- @cascader-dropdown-vertical-padding: @dropdown-vertical-padding;
556
- @cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding;
557
- @cascader-dropdown-font-size: @dropdown-font-size;
558
- @cascader-dropdown-line-height: @dropdown-line-height;
559
-
560
- // Anchor
561
- // ---
562
- @anchor-bg: transparent;
563
- @anchor-border-color: @border-color-split;
564
- @anchor-link-top: 7px;
565
- @anchor-link-left: 16px;
566
- @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
567
-
568
- // Tooltip
569
- // ---
570
- // Tooltip max width
571
- @tooltip-max-width: 250px;
572
- // Tooltip text color
573
- @tooltip-color: #fff;
574
- // Tooltip background color
575
- @tooltip-bg: rgba(0, 0, 0, 0.75);
576
- // Tooltip arrow width
577
- @tooltip-arrow-width: 5px;
578
- // Tooltip distance with trigger
579
- @tooltip-distance: @tooltip-arrow-width - 1px + 4px;
580
- // Tooltip arrow color
581
- @tooltip-arrow-color: @tooltip-bg;
582
-
583
- // Popover
584
- // ---
585
- // Popover body background color
586
- @popover-bg: @component-background;
587
- // Popover text color
588
- @popover-color: @text-color;
589
- // Popover maximum width
590
- @popover-min-width: 177px;
591
- @popover-min-height: 32px;
592
- // Popover arrow width
593
- @popover-arrow-width: 6px;
594
- // Popover arrow color
595
- @popover-arrow-color: @popover-bg;
596
- // Popover outer arrow width
597
- // Popover outer arrow color
598
- @popover-arrow-outer-color: @popover-bg;
599
- // Popover distance with trigger
600
- @popover-distance: @popover-arrow-width + 4px;
601
- @popover-padding-horizontal: @padding-md;
602
-
603
- // Modal
604
- // --
605
- @modal-header-padding-vertical: @padding-md;
606
- @modal-header-padding-horizontal: @padding-lg;
607
- @modal-body-padding: @padding-lg;
608
- @modal-header-bg: @component-background;
609
- @modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
610
- @modal-header-border-width: @border-width-base;
611
- @modal-header-border-style: @border-style-base;
612
- @modal-header-title-line-height: 22px;
613
- @modal-header-title-font-size: @font-size-lg;
614
- @modal-header-border-color-split: @border-color-split;
615
- @modal-header-close-size: 56px;
616
- @modal-content-bg: @component-background;
617
- @modal-heading-color: @heading-color;
618
- @modal-close-color: @text-color-secondary;
619
- @modal-footer-bg: transparent;
620
- @modal-footer-border-color-split: @border-color-split;
621
- @modal-footer-border-style: @border-style-base;
622
- @modal-footer-padding-vertical: 10px;
623
- @modal-footer-padding-horizontal: 16px;
624
- @modal-footer-border-width: @border-width-base;
625
- @modal-mask-bg: fade(@black, 45%);
626
- @modal-confirm-body-padding: 32px 32px 24px;
627
- @modal-confirm-title-font-size: @font-size-lg;
628
-
629
- // Progress
630
- // --
631
- @progress-default-color: @processing-color;
632
- @progress-remaining-color: @background-color-base;
633
- @progress-info-text-color: @progress-text-color;
634
- @progress-radius: 100px;
635
- @progress-steps-item-bg: #f3f3f3;
636
- @progress-text-font-size: 1em;
637
- @progress-text-color: @text-color; // This is for circle text color, should be renamed better
638
- @progress-circle-text-font-size: 1em;
639
- // Menu
640
- // ---
641
- @menu-inline-toplevel-item-height: 40px;
642
- @menu-item-height: 40px;
643
- @menu-item-group-height: @line-height-base;
644
- @menu-collapsed-width: 80px;
645
- @menu-bg: @component-background;
646
- @menu-popup-bg: @component-background;
647
- @menu-item-color: @text-color;
648
- @menu-inline-submenu-bg: @background-color-light;
649
- @menu-highlight-color: @primary-color;
650
- @menu-highlight-danger-color: @error-color;
651
- @menu-item-active-bg: @primary-1;
652
- @menu-item-active-danger-bg: @red-1;
653
- @menu-item-active-border-width: 3px;
654
- @menu-item-group-title-color: @text-color-secondary;
655
- @menu-item-vertical-margin: 4px;
656
- @menu-item-font-size: @font-size-base;
657
- @menu-item-boundary-margin: 8px;
658
- @menu-item-padding-horizontal: 20px;
659
- @menu-item-padding: 0 @menu-item-padding-horizontal;
660
- @menu-horizontal-line-height: 46px;
661
- @menu-icon-margin-right: 10px;
662
- @menu-icon-size: @menu-item-font-size;
663
- @menu-icon-size-lg: @font-size-lg;
664
- @menu-item-group-title-font-size: @menu-item-font-size;
665
-
666
- // dark theme
667
- @menu-dark-color: @text-color-secondary-dark;
668
- @menu-dark-danger-color: @error-color;
669
- @menu-dark-bg: @layout-header-background;
670
- @menu-dark-arrow-color: #fff;
671
- @menu-dark-inline-submenu-bg: #000c17;
672
- @menu-dark-highlight-color: #fff;
673
- @menu-dark-item-active-bg: @primary-color;
674
- @menu-dark-item-active-danger-bg: @error-color;
675
- @menu-dark-selected-item-icon-color: @white;
676
- @menu-dark-selected-item-text-color: @white;
677
- @menu-dark-item-hover-bg: transparent;
678
- // Spin
679
- // ---
680
- @spin-dot-size-sm: 14px;
681
- @spin-dot-size: 20px;
682
- @spin-dot-size-lg: 32px;
683
-
684
- // Table
685
- // --
686
- @table-bg: @component-background;
687
- @table-header-bg: @background-color-light;
688
- @table-header-color: @heading-color;
689
- @table-header-sort-bg: @background-color-base;
690
- @table-body-sort-bg: #fafafa;
691
- @table-row-hover-bg: @background-color-light;
692
- @table-selected-row-color: inherit;
693
- @table-selected-row-bg: @primary-1;
694
- @table-body-selected-sort-bg: @table-selected-row-bg;
695
- @table-selected-row-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
696
- @table-expanded-row-bg: #fbfbfb;
697
- @table-padding-vertical: 16px;
698
- @table-padding-horizontal: 16px;
699
- @table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
700
- @table-padding-horizontal-md: (@table-padding-horizontal / 2);
701
- @table-padding-vertical-sm: (@table-padding-vertical / 2);
702
- @table-padding-horizontal-sm: (@table-padding-horizontal / 2);
703
- @table-border-color: @border-color-split;
704
- @table-border-radius-base: @border-radius-base;
705
- @table-footer-bg: @background-color-light;
706
- @table-footer-color: @heading-color;
707
- @table-header-bg-sm: @table-header-bg;
708
- @table-font-size: @font-size-base;
709
- @table-font-size-md: @table-font-size;
710
- @table-font-size-sm: @table-font-size;
711
- @table-header-cell-split-color: rgba(0, 0, 0, 0.06);
712
- // Sorter
713
- // Legacy: `table-header-sort-active-bg` is used for hover not real active
714
- @table-header-sort-active-bg: rgba(0, 0, 0, 0.04);
715
- @table-fixed-header-sort-active-bg: hsv(0, 0, 96%);
716
-
717
- // Filter
718
- @table-header-filter-active-bg: rgba(0, 0, 0, 0.04);
719
- @table-filter-btns-bg: inherit;
720
- @table-filter-dropdown-bg: @component-background;
721
- @table-expand-icon-bg: @component-background;
722
- @table-selection-column-width: 32px;
723
- // Sticky
724
- @table-sticky-scroll-bar-bg: fade(#000, 35%);
725
- @table-sticky-scroll-bar-radius: 4px;
726
-
727
- // Tag
728
- // --
729
- @tag-default-bg: @background-color-light;
730
- @tag-default-color: @text-color;
731
- @tag-font-size: @font-size-sm;
732
- @tag-line-height: 20px;
733
-
734
- // TimePicker
735
- // ---
736
- @picker-bg: @component-background;
737
- @picker-basic-cell-hover-color: @item-hover-bg;
738
- @picker-basic-cell-active-with-range-color: @primary-1;
739
- @picker-basic-cell-hover-with-range-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-35)';
740
- @picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04);
741
- @picker-border-color: @border-color-split;
742
- @picker-date-hover-range-border-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-20)';
743
- @picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color;
744
- @picker-time-panel-column-width: 56px;
745
- @picker-time-panel-column-height: 224px;
746
- @picker-time-panel-cell-height: 28px;
747
- @picker-panel-cell-height: 24px;
748
- @picker-panel-cell-width: 36px;
749
- @picker-text-height: 40px;
750
- @picker-panel-without-time-cell-height: 66px;
751
-
752
- // Calendar
753
- // ---
754
- @calendar-bg: @component-background;
755
- @calendar-input-bg: @input-bg;
756
- @calendar-border-color: @border-color-inverse;
757
- @calendar-item-active-bg: @item-active-bg;
758
- @calendar-column-active-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-f-30)';
759
- @calendar-full-bg: @calendar-bg;
760
- @calendar-full-panel-bg: @calendar-full-bg;
761
-
762
- // Carousel
763
- // ---
764
- @carousel-dot-width: 16px;
765
- @carousel-dot-height: 3px;
766
- @carousel-dot-active-width: 24px;
767
-
768
- // Badge
769
- // ---
770
- @badge-height: 20px;
771
- @badge-height-sm: 14px;
772
- @badge-dot-size: 6px;
773
- @badge-font-size: @font-size-sm;
774
- @badge-font-size-sm: @font-size-sm;
775
- @badge-font-weight: normal;
776
- @badge-status-size: 6px;
777
- @badge-text-color: @component-background;
778
- @badge-color: @highlight-color;
779
-
780
- // Rate
781
- // ---
782
- @rate-star-color: @yellow-6;
783
- @rate-star-bg: @border-color-split;
784
- @rate-star-size: 20px;
785
- @rate-star-hover-scale: scale(1.1);
786
-
787
- // Card
788
- // ---
789
- @card-head-color: @heading-color;
790
- @card-head-background: transparent;
791
- @card-head-font-size: @font-size-lg;
792
- @card-head-font-size-sm: @font-size-base;
793
- @card-head-padding: 16px;
794
- @card-head-padding-sm: (@card-head-padding / 2);
795
- @card-head-height: 48px;
796
- @card-head-height-sm: 36px;
797
- @card-inner-head-padding: 12px;
798
- @card-padding-base: 24px;
799
- @card-padding-base-sm: (@card-padding-base / 2);
800
- @card-actions-background: @component-background;
801
- @card-actions-li-margin: 12px 0;
802
- @card-skeleton-bg: #cfd8dc;
803
- @card-background: @component-background;
804
- @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
805
- 0 5px 12px 4px rgba(0, 0, 0, 0.09);
806
- @card-radius: @border-radius-base;
807
- @card-head-tabs-margin-bottom: -17px;
808
- @card-head-extra-color: @text-color;
809
-
810
- // Comment
811
- // ---
812
- @comment-bg: inherit;
813
- @comment-padding-base: @padding-md 0;
814
- @comment-nest-indent: 44px;
815
- @comment-font-size-base: @font-size-base;
816
- @comment-font-size-sm: @font-size-sm;
817
- @comment-author-name-color: @text-color-secondary;
818
- @comment-author-time-color: #ccc;
819
- @comment-action-color: @text-color-secondary;
820
- @comment-action-hover-color: #595959;
821
- @comment-actions-margin-bottom: inherit;
822
- @comment-actions-margin-top: @margin-sm;
823
- @comment-content-detail-p-margin-bottom: inherit;
824
-
825
- // Tabs
826
- // ---
827
- @tabs-card-head-background: @background-color-light;
828
- @tabs-card-height: 40px;
829
- @tabs-card-active-color: @primary-color;
830
- @tabs-card-horizontal-padding: (
831
- (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2
832
- ) - @border-width-base @padding-md;
833
- @tabs-card-horizontal-padding-sm: 6px @padding-md;
834
- @tabs-card-horizontal-padding-lg: 7px @padding-md 6px;
835
- @tabs-title-font-size: @font-size-base;
836
- @tabs-title-font-size-lg: @font-size-lg;
837
- @tabs-title-font-size-sm: @font-size-base;
838
- @tabs-ink-bar-color: @primary-color;
839
- @tabs-bar-margin: 0 0 @margin-md 0;
840
- @tabs-horizontal-gutter: 32px;
841
- @tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter;
842
- @tabs-horizontal-margin-rtl: 0 0 0 32px;
843
- @tabs-horizontal-padding: @padding-sm 0;
844
- @tabs-horizontal-padding-lg: @padding-md 0;
845
- @tabs-horizontal-padding-sm: @padding-xs 0;
846
- @tabs-vertical-padding: @padding-xs @padding-lg;
847
- @tabs-vertical-margin: @margin-md 0 0 0;
848
- @tabs-scrolling-size: 32px;
849
- @tabs-highlight-color: @primary-color;
850
- @tabs-hover-color: @primary-5;
851
- @tabs-active-color: @primary-7;
852
- @tabs-card-gutter: 2px;
853
- @tabs-card-tab-active-border-top: 2px solid transparent;
854
-
855
- // BackTop
856
- // ---
857
- @back-top-color: #fff;
858
- @back-top-bg: @text-color-secondary;
859
- @back-top-hover-bg: @text-color;
860
-
861
- // Avatar
862
- // ---
863
- @avatar-size-base: 32px;
864
- @avatar-size-lg: 40px;
865
- @avatar-size-sm: 24px;
866
- @avatar-font-size-base: 18px;
867
- @avatar-font-size-lg: 24px;
868
- @avatar-font-size-sm: 14px;
869
- @avatar-bg: #ccc;
870
- @avatar-color: #fff;
871
- @avatar-border-radius: @border-radius-base;
872
- @avatar-group-overlapping: -8px;
873
- @avatar-group-space: 3px;
874
- @avatar-group-border-color: #fff;
875
-
876
- // Switch
877
- // ---
878
- @switch-height: 22px;
879
- @switch-sm-height: 16px;
880
- @switch-min-width: 44px;
881
- @switch-sm-min-width: 28px;
882
- @switch-disabled-opacity: 0.4;
883
- @switch-color: @primary-color;
884
- @switch-bg: @component-background;
885
- @switch-shadow-color: fade(#00230b, 20%);
886
- @switch-padding: 2px;
887
- @switch-inner-margin-min: ceil(@switch-height * 0.3);
888
- @switch-inner-margin-max: ceil(@switch-height * 1.1);
889
- @switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3);
890
- @switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1);
891
-
892
- // Pagination
893
- // ---
894
- @pagination-item-bg: @component-background;
895
- @pagination-item-size: @height-base;
896
- @pagination-item-size-sm: 24px;
897
- @pagination-font-family: @font-family;
898
- @pagination-font-weight-active: 500;
899
- @pagination-item-bg-active: @component-background;
900
- @pagination-item-link-bg: @component-background;
901
- @pagination-item-disabled-color-active: @disabled-color;
902
- @pagination-item-disabled-bg-active: @disabled-active-bg;
903
- @pagination-item-input-bg: @component-background;
904
- @pagination-mini-options-size-changer-top: 0px;
905
-
906
- // PageHeader
907
- // ---
908
- @page-header-padding: @padding-lg;
909
- @page-header-padding-vertical: @padding-md;
910
- @page-header-padding-breadcrumb: @padding-sm;
911
- @page-header-content-padding-vertical: @padding-sm;
912
- @page-header-back-color: #000;
913
- @page-header-ghost-bg: inherit;
914
- @page-header-heading-title: @heading-4-size;
915
- @page-header-heading-sub-title: 14px;
916
- @page-header-tabs-tab-font-size: 16px;
917
-
918
- // Breadcrumb
919
- // ---
920
- @breadcrumb-base-color: @text-color-secondary;
921
- @breadcrumb-last-item-color: @text-color;
922
- @breadcrumb-font-size: @font-size-base;
923
- @breadcrumb-icon-font-size: @font-size-base;
924
- @breadcrumb-link-color: @text-color-secondary;
925
- @breadcrumb-link-color-hover: @primary-5;
926
- @breadcrumb-separator-color: @text-color-secondary;
927
- @breadcrumb-separator-margin: 0 @padding-xs;
928
-
929
- // Slider
930
- // ---
931
- @slider-margin: 10px 6px 10px;
932
- @slider-rail-background-color: @background-color-base;
933
- @slider-rail-background-color-hover: #e1e1e1;
934
- @slider-track-background-color: @primary-3;
935
- @slider-track-background-color-hover: @primary-4;
936
- @slider-handle-border-width: 2px;
937
- @slider-handle-background-color: @component-background;
938
- @slider-handle-color: @primary-3;
939
- @slider-handle-color-hover: @primary-4;
940
- @slider-handle-color-focus: ~'var(--@{ant-prefix}-primary-color-deprecated-t-20)';
941
- @slider-handle-color-focus-shadow: ~'var(--@{ant-prefix}-primary-color-deprecated-f-12)';
942
- @slider-handle-color-tooltip-open: @primary-color;
943
- @slider-handle-size: 14px;
944
- @slider-handle-margin-top: -5px;
945
- @slider-handle-shadow: 0;
946
- @slider-dot-border-color: @border-color-split;
947
- @slider-dot-border-color-active: ~'var(--@{ant-prefix}-primary-color-deprecated-t-50)';
948
- @slider-disabled-color: @disabled-color;
949
- @slider-disabled-background-color: @component-background;
950
-
951
- // Tree
952
- // ---
953
- @tree-bg: @component-background;
954
- @tree-title-height: 24px;
955
- @tree-child-padding: 18px;
956
- @tree-directory-selected-color: #fff;
957
- @tree-directory-selected-bg: @primary-color;
958
- @tree-node-hover-bg: @item-hover-bg;
959
- @tree-node-selected-bg: @primary-2;
960
-
961
- // Collapse
962
- // ---
963
- @collapse-header-padding: @padding-sm @padding-md;
964
- @collapse-header-padding-extra: 40px;
965
- @collapse-header-bg: @background-color-light;
966
- @collapse-content-padding: @padding-md;
967
- @collapse-content-bg: @component-background;
968
- @collapse-header-arrow-left: 16px;
969
-
970
- // Skeleton
971
- // ---
972
- @skeleton-color: rgba(190, 190, 190, 0.2);
973
- @skeleton-to-color: shade(@skeleton-color, 5%);
974
- @skeleton-paragraph-margin-top: 28px;
975
- @skeleton-paragraph-li-margin-top: @margin-md;
976
- @skeleton-paragraph-li-height: 16px;
977
- @skeleton-title-height: 16px;
978
- @skeleton-title-paragraph-margin-top: @margin-lg;
979
-
980
- // Transfer
981
- // ---
982
- @transfer-header-height: 40px;
983
- @transfer-item-height: @height-base;
984
- @transfer-disabled-bg: @disabled-bg;
985
- @transfer-list-height: 200px;
986
- @transfer-item-hover-bg: @item-hover-bg;
987
- @transfer-item-selected-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
988
- @transfer-item-padding-vertical: 6px;
989
- @transfer-list-search-icon-top: 12px;
990
-
991
- // Message
992
- // ---
993
- @message-notice-content-padding: 10px 16px;
994
- @message-notice-content-bg: @component-background;
995
- // Motion
996
- // ---
997
- @wave-animation-width: 6px;
998
-
999
- // Alert
1000
- // ---
1001
- @alert-success-border-color: @success-color-deprecated-border;
1002
- @alert-success-bg-color: @success-color-deprecated-bg;
1003
- @alert-success-icon-color: @success-color;
1004
- @alert-info-border-color: @info-color-deprecated-border;
1005
- @alert-info-bg-color: @info-color-deprecated-bg;
1006
- @alert-info-icon-color: @info-color;
1007
- @alert-warning-border-color: @warning-color-deprecated-border;
1008
- @alert-warning-bg-color: @warning-color-deprecated-bg;
1009
- @alert-warning-icon-color: @warning-color;
1010
- @alert-error-border-color: @error-color-deprecated-border;
1011
- @alert-error-bg-color: @error-color-deprecated-bg;
1012
- @alert-error-icon-color: @error-color;
1013
- @alert-message-color: @heading-color;
1014
- @alert-text-color: @text-color;
1015
- @alert-close-color: @text-color-secondary;
1016
- @alert-close-hover-color: @icon-color-hover;
1017
- @alert-no-icon-padding-vertical: @padding-xs;
1018
- @alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
1019
- @alert-with-description-padding-vertical: @padding-md - 1px;
1020
- @alert-with-description-padding: @alert-with-description-padding-vertical 15px
1021
- @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
1022
- @alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
1023
- @alert-with-description-icon-size: 24px;
1024
-
1025
- // List
1026
- // ---
1027
- @list-header-background: transparent;
1028
- @list-footer-background: transparent;
1029
- @list-empty-text-padding: @padding-md;
1030
- @list-item-padding: @padding-sm 0;
1031
- @list-item-padding-sm: @padding-xs @padding-md;
1032
- @list-item-padding-lg: 16px 24px;
1033
- @list-item-meta-margin-bottom: @padding-md;
1034
- @list-item-meta-avatar-margin-right: @padding-md;
1035
- @list-item-meta-title-margin-bottom: @padding-sm;
1036
- @list-customize-card-bg: @component-background;
1037
- @list-item-meta-description-font-size: @font-size-base;
1038
-
1039
- // Statistic
1040
- // ---
1041
- @statistic-title-font-size: @font-size-base;
1042
- @statistic-content-font-size: 24px;
1043
- @statistic-unit-font-size: 24px;
1044
- @statistic-font-family: @font-family;
1045
-
1046
- // Drawer
1047
- // ---
1048
- @drawer-header-padding: @padding-md @padding-lg;
1049
- @drawer-body-padding: @padding-lg;
1050
- @drawer-bg: @component-background;
1051
- @drawer-footer-padding-vertical: @modal-footer-padding-vertical;
1052
- @drawer-footer-padding-horizontal: @modal-footer-padding-horizontal;
1053
- @drawer-header-close-size: 56px;
1054
- @drawer-title-font-size: @font-size-lg;
1055
- @drawer-title-line-height: 22px;
1056
-
1057
- // Timeline
1058
- // ---
1059
- @timeline-width: 2px;
1060
- @timeline-color: @border-color-split;
1061
- @timeline-dot-border-width: 2px;
1062
- @timeline-dot-color: @primary-color;
1063
- @timeline-dot-bg: @component-background;
1064
- @timeline-item-padding-bottom: 20px;
1065
-
1066
- // Typography
1067
- // ---
1068
- @typography-title-font-weight: 600;
1069
- @typography-title-margin-top: 1.2em;
1070
- @typography-title-margin-bottom: 0.5em;
1071
-
1072
- // Upload
1073
- // ---
1074
- @upload-actions-color: @text-color-secondary;
1075
-
1076
- // Steps
1077
- // ---
1078
- @process-tail-color: @border-color-split;
1079
- @steps-nav-arrow-color: fade(@black, 25%);
1080
- @steps-background: @component-background;
1081
- @steps-icon-size: 32px;
1082
- @steps-icon-custom-size: @steps-icon-size;
1083
- @steps-icon-custom-top: 0px;
1084
- @steps-icon-custom-font-size: 24px;
1085
- @steps-icon-top: -0.5px;
1086
- @steps-icon-font-size: @font-size-lg;
1087
- @steps-icon-margin: 0 8px 0 0;
1088
- @steps-title-line-height: @height-base;
1089
- @steps-small-icon-size: 24px;
1090
- @steps-small-icon-margin: 0 8px 0 0;
1091
- @steps-dot-size: 8px;
1092
- @steps-dot-top: 2px;
1093
- @steps-current-dot-size: 10px;
1094
- @steps-description-max-width: 140px;
1095
- @steps-nav-content-max-width: auto;
1096
- @steps-vertical-icon-width: 16px;
1097
- @steps-vertical-tail-width: 16px;
1098
- @steps-vertical-tail-width-sm: 12px;
1099
-
1100
- // Notification
1101
- // ---
1102
- @notification-bg: @component-background;
1103
- @notification-padding-vertical: 16px;
1104
- @notification-padding-horizontal: 24px;
1105
-
1106
- // Result
1107
- // ---
1108
- @result-title-font-size: 24px;
1109
- @result-subtitle-font-size: @font-size-base;
1110
- @result-icon-font-size: 72px;
1111
- @result-extra-margin: 24px 0 0 0;
1112
-
1113
- // Image
1114
- // ---
1115
- @image-size-base: 48px;
1116
- @image-font-size-base: 24px;
1117
- @image-bg: #f5f5f5;
1118
- @image-color: #fff;
1119
- @image-mask-font-size: 16px;
1120
- @image-preview-operation-size: 18px;
1121
- @image-preview-operation-color: @text-color-dark;
1122
- @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ @import '../color/colors';
3
+
4
+ @theme: variable;
5
+
6
+ // The prefix to use on all css classes from ant.
7
+ @ant-prefix: ant;
8
+
9
+ // An override for the html selector for theme prefixes
10
+ @html-selector: html;
11
+
12
+ @base-primary: @blue-6;
13
+
14
+ html {
15
+ // ========= Primary Color =========
16
+ --@{ant-prefix}-primary-color: @base-primary;
17
+ --@{ant-prefix}-primary-color-hover: color(~`colorPalette('@{base-primary}', 5) `);
18
+ --@{ant-prefix}-primary-color-active: color(~`colorPalette('@{base-primary}', 7) `);
19
+ --@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade);
20
+
21
+ // Legacy
22
+ @legacy-primary-1: color(~`colorPalette('@{base-primary}', 1) `);
23
+
24
+ --@{ant-prefix}-primary-1: @legacy-primary-1;
25
+ --@{ant-prefix}-primary-2: color(~`colorPalette('@{base-primary}', 2) `);
26
+ --@{ant-prefix}-primary-3: color(~`colorPalette('@{base-primary}', 3) `);
27
+ --@{ant-prefix}-primary-4: color(~`colorPalette('@{base-primary}', 4) `);
28
+ --@{ant-prefix}-primary-5: color(~`colorPalette('@{base-primary}', 5) `);
29
+ --@{ant-prefix}-primary-6: @base-primary;
30
+ --@{ant-prefix}-primary-7: color(~`colorPalette('@{base-primary}', 7) `);
31
+
32
+ // Deprecated
33
+ --@{ant-prefix}-primary-color-deprecated-pure: ~'';
34
+ --@{ant-prefix}-primary-color-deprecated-l-35: lighten(@base-primary, 35%);
35
+ --@{ant-prefix}-primary-color-deprecated-l-20: lighten(@base-primary, 20%);
36
+ --@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%);
37
+ --@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%);
38
+ --@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%);
39
+ --@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%);
40
+ --@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%);
41
+
42
+ // ========= Success Color =========
43
+ --@{ant-prefix}-success-color: @green-6;
44
+ --@{ant-prefix}-success-color-hover: color(~`colorPalette('@{green-6}', 5) `);
45
+ --@{ant-prefix}-success-color-active: color(~`colorPalette('@{green-6}', 7) `);
46
+ --@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade);
47
+ --@{ant-prefix}-success-color-deprecated-bg: ~`colorPalette('@{green-6}', 1) `;
48
+ --@{ant-prefix}-success-color-deprecated-border: ~`colorPalette('@{green-6}', 3) `;
49
+
50
+ // ========== Error Color ==========
51
+ --@{ant-prefix}-error-color: @red-5;
52
+ --@{ant-prefix}-error-color-hover: color(~`colorPalette('@{red-5}', 5) `);
53
+ --@{ant-prefix}-error-color-active: color(~`colorPalette('@{red-5}', 7) `);
54
+ --@{ant-prefix}-error-color-outline: fade(@red-5, @outline-fade);
55
+ --@{ant-prefix}-error-color-deprecated-bg: ~`colorPalette('@{red-5}', 1) `;
56
+ --@{ant-prefix}-error-color-deprecated-border: ~`colorPalette('@{red-5}', 3) `;
57
+
58
+ // ========= Warning Color =========
59
+ --@{ant-prefix}-warning-color: @gold-6;
60
+ --@{ant-prefix}-warning-color-hover: color(~`colorPalette('@{gold-6}', 5) `);
61
+ --@{ant-prefix}-warning-color-active: color(~`colorPalette('@{gold-6}', 7) `);
62
+ --@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade);
63
+ --@{ant-prefix}-warning-color-deprecated-bg: ~`colorPalette('@{gold-6}', 1) `;
64
+ --@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette('@{gold-6}', 3) `;
65
+
66
+ // ========== Info Color ===========
67
+ --@{ant-prefix}-info-color: @base-primary;
68
+ --@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1) `;
69
+ --@{ant-prefix}-info-color-deprecated-border: ~`colorPalette('@{base-primary}', 3) `;
70
+ }
71
+
72
+ // -------- Colors -----------
73
+ // >>> Primary
74
+ @primary-color: ~'var(--@{ant-prefix}-primary-color)';
75
+ @primary-color-hover: ~'var(--@{ant-prefix}-primary-color-hover)';
76
+ @primary-color-active: ~'var(--@{ant-prefix}-primary-color-active)';
77
+ @primary-color-outline: ~'var(--@{ant-prefix}-primary-color-outline)';
78
+
79
+ @processing-color: @primary-color;
80
+
81
+ // >>> Info
82
+ @info-color: ~'var(--@{ant-prefix}-info-color)';
83
+ @info-color-deprecated-bg: ~'var(--@{ant-prefix}-info-color-deprecated-bg)';
84
+ @info-color-deprecated-border: ~'var(--@{ant-prefix}-info-color-deprecated-border)';
85
+
86
+ // >>> Success
87
+ @success-color: ~'var(--@{ant-prefix}-success-color)';
88
+ @success-color-hover: ~'var(--@{ant-prefix}-success-color-hover)';
89
+ @success-color-active: ~'var(--@{ant-prefix}-success-color-active)';
90
+ @success-color-outline: ~'var(--@{ant-prefix}-success-color-outline)';
91
+ @success-color-deprecated-bg: ~'var(--@{ant-prefix}-success-color-deprecated-bg)';
92
+ @success-color-deprecated-border: ~'var(--@{ant-prefix}-success-color-deprecated-border)';
93
+
94
+ // >>> Warning
95
+ @warning-color: ~'var(--@{ant-prefix}-warning-color)';
96
+ @warning-color-hover: ~'var(--@{ant-prefix}-warning-color-hover)';
97
+ @warning-color-active: ~'var(--@{ant-prefix}-warning-color-active)';
98
+ @warning-color-outline: ~'var(--@{ant-prefix}-warning-color-outline)';
99
+ @warning-color-deprecated-bg: ~'var(--@{ant-prefix}-warning-color-deprecated-bg)';
100
+ @warning-color-deprecated-border: ~'var(--@{ant-prefix}-warning-color-deprecated-border)';
101
+
102
+ // >>> Error
103
+ @error-color: ~'var(--@{ant-prefix}-error-color)';
104
+ @error-color-hover: ~'var(--@{ant-prefix}-error-color-hover)';
105
+ @error-color-active: ~'var(--@{ant-prefix}-error-color-active)';
106
+ @error-color-outline: ~'var(--@{ant-prefix}-error-color-outline)';
107
+ @error-color-deprecated-bg: ~'var(--@{ant-prefix}-error-color-deprecated-bg)';
108
+ @error-color-deprecated-border: ~'var(--@{ant-prefix}-error-color-deprecated-border)';
109
+
110
+ @highlight-color: @red-5;
111
+ @normal-color: #d9d9d9;
112
+ @white: #fff;
113
+ @black: #000;
114
+
115
+ // Color used by default to control hover and active backgrounds and for
116
+ // alert info backgrounds.
117
+ @primary-1: ~'var(--@{ant-prefix}-primary-1)'; // replace tint(@primary-color, 90%)
118
+ @primary-2: ~'var(--@{ant-prefix}-primary-2)'; // replace tint(@primary-color, 80%)
119
+ @primary-3: ~'var(--@{ant-prefix}-primary-3)'; // unused
120
+ @primary-4: ~'var(--@{ant-prefix}-primary-4)'; // unused
121
+ @primary-5: ~'var(--@{ant-prefix}-primary-5)'; // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
122
+ @primary-6: ~'var(--@{ant-prefix}-primary-6)'; // color used to control the text color of active buttons, don't use, use @primary-color
123
+ @primary-7: ~'var(--@{ant-prefix}-primary-7)'; // replace shade(@primary-color, 5%)
124
+ @primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
125
+ @primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
126
+ @primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
127
+
128
+ // Base Scaffolding Variables
129
+ // ---
130
+
131
+ // Background color for `<body>`
132
+ @body-background: #fff;
133
+ // Base background color for most components
134
+ @component-background: #fff;
135
+ // Popover background color
136
+ @popover-background: @component-background;
137
+ @popover-customize-border-color: @border-color-split;
138
+ @font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
139
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
140
+ 'Noto Color Emoji';
141
+ @code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
142
+ @text-color: fade(@black, 85%);
143
+ @text-color-secondary: fade(@black, 45%);
144
+ @text-color-inverse: @white;
145
+ @icon-color: inherit;
146
+ @icon-color-hover: fade(@black, 75%);
147
+ @heading-color: fade(@black, 85%);
148
+ @text-color-dark: fade(@white, 85%);
149
+ @text-color-secondary-dark: fade(@white, 65%);
150
+ @text-selection-bg: @primary-color;
151
+ @font-variant-base: tabular-nums;
152
+ @font-feature-settings-base: 'tnum';
153
+ @font-size-base: 14px;
154
+ @font-size-lg: @font-size-base + 2px;
155
+ @font-size-sm: 12px;
156
+ @heading-1-size: ceil(@font-size-base * 2.71);
157
+ @heading-2-size: ceil(@font-size-base * 2.14);
158
+ @heading-3-size: ceil(@font-size-base * 1.71);
159
+ @heading-4-size: ceil(@font-size-base * 1.42);
160
+ @heading-5-size: ceil(@font-size-base * 1.14);
161
+ // https://github.com/ant-design/ant-design/issues/20210
162
+ @line-height-base: 1.5715;
163
+ @border-radius-base: 2px;
164
+ @border-radius-sm: @border-radius-base;
165
+
166
+ // vertical paddings
167
+ @padding-lg: 24px; // containers
168
+ @padding-md: 16px; // small containers and buttons
169
+ @padding-sm: 12px; // Form controls and items
170
+ @padding-xs: 8px; // small items
171
+ @padding-xss: 4px; // more small
172
+
173
+ // vertical padding for all form controls
174
+ @control-padding-horizontal: @padding-sm;
175
+ @control-padding-horizontal-sm: @padding-xs;
176
+
177
+ // vertical margins
178
+ @margin-lg: 24px; // containers
179
+ @margin-md: 16px; // small containers and buttons
180
+ @margin-sm: 12px; // Form controls and items
181
+ @margin-xs: 8px; // small items
182
+ @margin-xss: 4px; // more small
183
+
184
+ // height rules
185
+ @height-base: 32px;
186
+ @height-lg: 40px;
187
+ @height-sm: 24px;
188
+
189
+ // The background colors for active and hover states for things like
190
+ // list items or table cells.
191
+ @item-active-bg: @primary-1;
192
+ @item-hover-bg: #f5f5f5;
193
+
194
+ // ICONFONT
195
+ @iconfont-css-prefix: anticon;
196
+
197
+ // LINK
198
+ @link-color: @primary-color;
199
+ @link-hover-color: @primary-color-hover;
200
+ @link-active-color: @primary-color-active;
201
+ @link-decoration: none;
202
+ @link-hover-decoration: none;
203
+ @link-focus-decoration: none;
204
+ @link-focus-outline: 0;
205
+
206
+ // Animation
207
+ @ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
208
+ @ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
209
+ @ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
210
+ @ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
211
+ @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
212
+ @ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
213
+ @ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
214
+ @ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
215
+ @ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
216
+ @ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
217
+ @ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
218
+ @ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
219
+ @ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
220
+ @ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
221
+
222
+ // Border color
223
+ @border-color-base: hsv(0, 0, 85%); // base border outline a component
224
+ @border-color-split: hsv(0, 0, 94%); // split border inside a component
225
+ @border-color-inverse: @white;
226
+ @border-width-base: 1px; // width of the border for a component
227
+ @border-style-base: solid; // style of a components border
228
+
229
+ // Outline
230
+ @outline-blur-size: 0;
231
+ @outline-width: 2px;
232
+ @outline-color: @primary-color; // No use anymore
233
+ @outline-fade: 20%;
234
+
235
+ @background-color-light: hsv(0, 0, 98%); // background of header and selected item
236
+ @background-color-base: hsv(0, 0, 96%); // Default grey background color
237
+
238
+ // Disabled states
239
+ @disabled-color: fade(#000, 25%);
240
+ @disabled-bg: @background-color-base;
241
+ @disabled-active-bg: tint(@black, 90%);
242
+ @disabled-color-dark: fade(#fff, 35%);
243
+
244
+ // Shadow
245
+ @shadow-color: rgba(0, 0, 0, 0.15);
246
+ @shadow-color-inverse: @component-background;
247
+ @box-shadow-base: @shadow-2;
248
+ @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
249
+ 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
250
+ @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
251
+ 0 12px 48px 16px rgba(0, 0, 0, 0.03);
252
+ @shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
253
+ -12px 0 48px 16px rgba(0, 0, 0, 0.03);
254
+ @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
255
+ 12px 0 48px 16px rgba(0, 0, 0, 0.03);
256
+ @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
257
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
258
+
259
+ // Buttons
260
+ @btn-font-weight: 400;
261
+ @btn-border-radius-base: @border-radius-base;
262
+ @btn-border-radius-sm: @border-radius-base;
263
+ @btn-border-width: @border-width-base;
264
+ @btn-border-style: @border-style-base;
265
+ @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
266
+ @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
267
+ @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
268
+
269
+ @btn-primary-color: #fff;
270
+ @btn-primary-bg: @primary-color;
271
+
272
+ @btn-default-color: @text-color;
273
+ @btn-default-bg: @component-background;
274
+ @btn-default-border: @border-color-base;
275
+
276
+ @btn-danger-color: #fff;
277
+ @btn-danger-bg: @error-color;
278
+ @btn-danger-border: @error-color;
279
+
280
+ @btn-disable-color: @disabled-color;
281
+ @btn-disable-bg: @disabled-bg;
282
+ @btn-disable-border: @border-color-base;
283
+
284
+ @btn-default-ghost-color: @component-background;
285
+ @btn-default-ghost-bg: transparent;
286
+ @btn-default-ghost-border: @component-background;
287
+
288
+ @btn-font-size-lg: @font-size-lg;
289
+ @btn-font-size-sm: @font-size-base;
290
+ @btn-padding-horizontal-base: @padding-md - 1px;
291
+ @btn-padding-horizontal-lg: @btn-padding-horizontal-base;
292
+ @btn-padding-horizontal-sm: @padding-xs - 1px;
293
+
294
+ @btn-height-base: @height-base;
295
+ @btn-height-lg: @height-lg;
296
+ @btn-height-sm: @height-sm;
297
+
298
+ @btn-line-height: @line-height-base;
299
+
300
+ @btn-circle-size: @btn-height-base;
301
+ @btn-circle-size-lg: @btn-height-lg;
302
+ @btn-circle-size-sm: @btn-height-sm;
303
+
304
+ @btn-square-size: @btn-height-base;
305
+ @btn-square-size-lg: @btn-height-lg;
306
+ @btn-square-size-sm: @btn-height-sm;
307
+ @btn-square-only-icon-size: @font-size-base + 2px;
308
+ @btn-square-only-icon-size-sm: @font-size-base;
309
+ @btn-square-only-icon-size-lg: @btn-font-size-lg + 2px;
310
+
311
+ @btn-group-border: @primary-5;
312
+
313
+ @btn-link-hover-bg: transparent;
314
+ @btn-text-hover-bg: rgba(0, 0, 0, 0.018);
315
+
316
+ // Checkbox
317
+ @checkbox-size: 16px;
318
+ @checkbox-color: @primary-color;
319
+ @checkbox-check-color: #fff;
320
+ @checkbox-check-bg: @checkbox-check-color;
321
+ @checkbox-border-width: @border-width-base;
322
+ @checkbox-border-radius: @border-radius-base;
323
+ @checkbox-group-item-margin-right: 8px;
324
+
325
+ // Descriptions
326
+ @descriptions-bg: #fafafa;
327
+ @descriptions-title-margin-bottom: 20px;
328
+ @descriptions-default-padding: @padding-md @padding-lg;
329
+ @descriptions-middle-padding: @padding-sm @padding-lg;
330
+ @descriptions-small-padding: @padding-xs @padding-md;
331
+ @descriptions-item-padding-bottom: @padding-md;
332
+ @descriptions-item-trailing-colon: true;
333
+ @descriptions-item-label-colon-margin-right: 8px;
334
+ @descriptions-item-label-colon-margin-left: 2px;
335
+ @descriptions-extra-color: @text-color;
336
+
337
+ // Divider
338
+ @divider-text-padding: 1em;
339
+ @divider-orientation-margin: 5%;
340
+ @divider-color: rgba(0, 0, 0, 6%);
341
+ @divider-vertical-gutter: 8px;
342
+
343
+ // Dropdown
344
+ @dropdown-selected-color: @primary-color;
345
+ @dropdown-menu-submenu-disabled-bg: @component-background;
346
+ @dropdown-selected-bg: @item-active-bg;
347
+
348
+ // Empty
349
+ @empty-font-size: @font-size-base;
350
+
351
+ // Radio
352
+ @radio-size: 16px;
353
+ @radio-top: 0.2em;
354
+ @radio-border-width: 1px;
355
+ @radio-dot-size: @radio-size - 8px;
356
+ @radio-dot-color: @primary-color;
357
+ @radio-dot-disabled-color: fade(@black, 20%);
358
+ @radio-solid-checked-color: @component-background;
359
+
360
+ // Radio buttons
361
+ @radio-button-bg: @btn-default-bg;
362
+ @radio-button-checked-bg: @btn-default-bg;
363
+ @radio-button-color: @btn-default-color;
364
+ @radio-button-hover-color: @primary-5;
365
+ @radio-button-active-color: @primary-7;
366
+ @radio-button-padding-horizontal: @padding-md - 1px;
367
+ @radio-disabled-button-checked-bg: @disabled-active-bg;
368
+ @radio-disabled-button-checked-color: @disabled-color;
369
+ @radio-wrapper-margin-right: 8px;
370
+
371
+ // Media queries breakpoints
372
+ // @screen-xs and @screen-xs-min is not used in Grid
373
+ // smallest break point is @screen-md
374
+ @screen-xs: 480px;
375
+ @screen-xs-min: @screen-xs;
376
+ // 👆 Extra small screen / phone
377
+
378
+ // 👇 Small screen / tablet
379
+ @screen-sm: 576px;
380
+ @screen-sm-min: @screen-sm;
381
+
382
+ // Medium screen / desktop
383
+ @screen-md: 768px;
384
+ @screen-md-min: @screen-md;
385
+
386
+ // Large screen / wide desktop
387
+ @screen-lg: 992px;
388
+ @screen-lg-min: @screen-lg;
389
+
390
+ // Extra large screen / full hd
391
+ @screen-xl: 1200px;
392
+ @screen-xl-min: @screen-xl;
393
+
394
+ // Extra extra large screen / large desktop
395
+ @screen-xxl: 1600px;
396
+ @screen-xxl-min: @screen-xxl;
397
+ @screen-xxxl: 2000px;
398
+ @screen-xxxl-min: @screen-xxxl;
399
+
400
+ // provide a maximum
401
+ @screen-xs-max: (@screen-sm-min - 1px);
402
+ @screen-sm-max: (@screen-md-min - 1px);
403
+ @screen-md-max: (@screen-lg-min - 1px);
404
+ @screen-lg-max: (@screen-xl-min - 1px);
405
+ @screen-xl-max: (@screen-xxl-min - 1px);
406
+ @screen-xxl-max: (@screen-xxxl-min - 1px);
407
+
408
+ // Grid system
409
+ @grid-columns: 24;
410
+
411
+ // Layout
412
+ @layout-body-background: #f0f2f5;
413
+ @layout-header-background: #001529;
414
+ @layout-header-height: 64px;
415
+ @layout-header-padding: 0 50px;
416
+ @layout-header-color: @text-color;
417
+ @layout-footer-padding: 24px 50px;
418
+ @layout-footer-background: @layout-body-background;
419
+ @layout-sider-background: @layout-header-background;
420
+ @layout-trigger-height: 48px;
421
+ @layout-trigger-background: #002140;
422
+ @layout-trigger-color: #fff;
423
+ @layout-zero-trigger-width: 36px;
424
+ @layout-zero-trigger-height: 42px;
425
+ // Layout light theme
426
+ @layout-sider-background-light: #fff;
427
+ @layout-trigger-background-light: #fff;
428
+ @layout-trigger-color-light: @text-color;
429
+
430
+ // z-index list, order by `z-index`
431
+ @zindex-badge: auto;
432
+ @zindex-table-fixed: 2;
433
+ @zindex-affix: 10;
434
+ @zindex-back-top: 10;
435
+ @zindex-picker-panel: 10;
436
+ @zindex-popup-close: 10;
437
+ @zindex-modal: 1000;
438
+ @zindex-modal-mask: 1000;
439
+ @zindex-message: 1010;
440
+ @zindex-notification: 1010;
441
+ @zindex-popover: 1030;
442
+ @zindex-dropdown: 1050;
443
+ @zindex-picker: 1050;
444
+ @zindex-popoconfirm: 1060;
445
+ @zindex-tooltip: 1070;
446
+ @zindex-image: 1080;
447
+
448
+ // Animation
449
+ @animation-duration-slow: 0.3s; // Modal
450
+ @animation-duration-base: 0.2s;
451
+ @animation-duration-fast: 0.1s; // Tooltip
452
+
453
+ //CollapsePanel
454
+ @collapse-panel-border-radius: @border-radius-base;
455
+
456
+ //Dropdown
457
+ @dropdown-menu-bg: @component-background;
458
+ @dropdown-vertical-padding: 5px;
459
+ @dropdown-edge-child-vertical-padding: 4px;
460
+ @dropdown-font-size: @font-size-base;
461
+ @dropdown-line-height: 22px;
462
+
463
+ // Form
464
+ // ---
465
+ @label-required-color: @highlight-color;
466
+ @label-color: @heading-color;
467
+ @form-warning-input-bg: @input-bg;
468
+ @form-item-margin-bottom: 24px;
469
+ @form-item-trailing-colon: true;
470
+ @form-vertical-label-padding: 0 0 8px;
471
+ @form-vertical-label-margin: 0;
472
+ @form-item-label-font-size: @font-size-base;
473
+ @form-item-label-height: @input-height-base;
474
+ @form-item-label-colon-margin-right: 8px;
475
+ @form-item-label-colon-margin-left: 2px;
476
+ @form-error-input-bg: @input-bg;
477
+
478
+ // Input
479
+ // ---
480
+ @input-height-base: @height-base;
481
+ @input-height-lg: @height-lg;
482
+ @input-height-sm: @height-sm;
483
+ @input-padding-horizontal: @control-padding-horizontal - 1px;
484
+ @input-padding-horizontal-base: @input-padding-horizontal;
485
+ @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
486
+ @input-padding-horizontal-lg: @input-padding-horizontal;
487
+ @input-padding-vertical-base: max(
488
+ (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
489
+ @border-width-base,
490
+ 3px
491
+ );
492
+ @input-padding-vertical-sm: max(
493
+ (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
494
+ @border-width-base,
495
+ 0
496
+ );
497
+ @input-padding-vertical-lg: (
498
+ ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10
499
+ ) - @border-width-base;
500
+ @input-placeholder-color: hsv(0, 0, 75%);
501
+ @input-color: @text-color;
502
+ @input-icon-color: @input-color;
503
+ @input-border-color: @border-color-base;
504
+ @input-bg: @component-background;
505
+ @input-number-hover-border-color: @input-hover-border-color;
506
+ @input-number-handler-active-bg: #f4f4f4;
507
+ @input-number-handler-hover-bg: @primary-5;
508
+ @input-number-handler-bg: @component-background;
509
+ @input-number-handler-border-color: @border-color-base;
510
+ @input-addon-bg: @background-color-light;
511
+ @input-hover-border-color: @primary-5;
512
+ @input-disabled-bg: @disabled-bg;
513
+ @input-outline-offset: 0 0;
514
+ @input-icon-hover-color: fade(@black, 85%);
515
+ @input-disabled-color: @disabled-color;
516
+
517
+ // Mentions
518
+ // ---
519
+ @mentions-dropdown-bg: @component-background;
520
+ @mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg;
521
+
522
+ // Select
523
+ // ---
524
+ @select-border-color: @border-color-base;
525
+ @select-item-selected-color: @text-color;
526
+ @select-item-selected-font-weight: 600;
527
+ @select-dropdown-bg: @component-background;
528
+ @select-item-selected-bg: @primary-1;
529
+ @select-item-active-bg: @item-hover-bg;
530
+ @select-dropdown-vertical-padding: @dropdown-vertical-padding;
531
+ @select-dropdown-font-size: @dropdown-font-size;
532
+ @select-dropdown-line-height: @dropdown-line-height;
533
+ @select-dropdown-height: 32px;
534
+ @select-background: @component-background;
535
+ @select-clear-background: @select-background;
536
+ @select-selection-item-bg: @background-color-base;
537
+ @select-selection-item-border-color: @border-color-split;
538
+ @select-single-item-height-lg: 40px;
539
+ @select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
540
+ @select-multiple-item-height-lg: 32px;
541
+ @select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
542
+ @select-multiple-disabled-background: @input-disabled-bg;
543
+ @select-multiple-item-disabled-color: #bfbfbf;
544
+ @select-multiple-item-disabled-border-color: @select-border-color;
545
+
546
+ // Cascader
547
+ // ---
548
+ @cascader-bg: @component-background;
549
+ @cascader-item-selected-bg: @primary-1;
550
+ @cascader-menu-bg: @component-background;
551
+ @cascader-menu-border-color-split: @border-color-split;
552
+
553
+ // Cascader
554
+ // ----
555
+ @cascader-dropdown-vertical-padding: @dropdown-vertical-padding;
556
+ @cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding;
557
+ @cascader-dropdown-font-size: @dropdown-font-size;
558
+ @cascader-dropdown-line-height: @dropdown-line-height;
559
+
560
+ // Anchor
561
+ // ---
562
+ @anchor-bg: transparent;
563
+ @anchor-border-color: @border-color-split;
564
+ @anchor-link-top: 7px;
565
+ @anchor-link-left: 16px;
566
+ @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
567
+
568
+ // Tooltip
569
+ // ---
570
+ // Tooltip max width
571
+ @tooltip-max-width: 250px;
572
+ // Tooltip text color
573
+ @tooltip-color: #fff;
574
+ // Tooltip background color
575
+ @tooltip-bg: rgba(0, 0, 0, 0.75);
576
+ // Tooltip arrow width
577
+ @tooltip-arrow-width: 5px;
578
+ // Tooltip distance with trigger
579
+ @tooltip-distance: @tooltip-arrow-width - 1px + 4px;
580
+ // Tooltip arrow color
581
+ @tooltip-arrow-color: @tooltip-bg;
582
+
583
+ // Popover
584
+ // ---
585
+ // Popover body background color
586
+ @popover-bg: @component-background;
587
+ // Popover text color
588
+ @popover-color: @text-color;
589
+ // Popover maximum width
590
+ @popover-min-width: 177px;
591
+ @popover-min-height: 32px;
592
+ // Popover arrow width
593
+ @popover-arrow-width: 6px;
594
+ // Popover arrow color
595
+ @popover-arrow-color: @popover-bg;
596
+ // Popover outer arrow width
597
+ // Popover outer arrow color
598
+ @popover-arrow-outer-color: @popover-bg;
599
+ // Popover distance with trigger
600
+ @popover-distance: @popover-arrow-width + 4px;
601
+ @popover-padding-horizontal: @padding-md;
602
+
603
+ // Modal
604
+ // --
605
+ @modal-header-padding-vertical: @padding-md;
606
+ @modal-header-padding-horizontal: @padding-lg;
607
+ @modal-body-padding: @padding-lg;
608
+ @modal-header-bg: @component-background;
609
+ @modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
610
+ @modal-header-border-width: @border-width-base;
611
+ @modal-header-border-style: @border-style-base;
612
+ @modal-header-title-line-height: 22px;
613
+ @modal-header-title-font-size: @font-size-lg;
614
+ @modal-header-border-color-split: @border-color-split;
615
+ @modal-header-close-size: 56px;
616
+ @modal-content-bg: @component-background;
617
+ @modal-heading-color: @heading-color;
618
+ @modal-close-color: @text-color-secondary;
619
+ @modal-footer-bg: transparent;
620
+ @modal-footer-border-color-split: @border-color-split;
621
+ @modal-footer-border-style: @border-style-base;
622
+ @modal-footer-padding-vertical: 10px;
623
+ @modal-footer-padding-horizontal: 16px;
624
+ @modal-footer-border-width: @border-width-base;
625
+ @modal-mask-bg: fade(@black, 45%);
626
+ @modal-confirm-body-padding: 32px 32px 24px;
627
+ @modal-confirm-title-font-size: @font-size-lg;
628
+
629
+ // Progress
630
+ // --
631
+ @progress-default-color: @processing-color;
632
+ @progress-remaining-color: @background-color-base;
633
+ @progress-info-text-color: @progress-text-color;
634
+ @progress-radius: 100px;
635
+ @progress-steps-item-bg: #f3f3f3;
636
+ @progress-text-font-size: 1em;
637
+ @progress-text-color: @text-color; // This is for circle text color, should be renamed better
638
+ @progress-circle-text-font-size: 1em;
639
+ // Menu
640
+ // ---
641
+ @menu-inline-toplevel-item-height: 40px;
642
+ @menu-item-height: 40px;
643
+ @menu-item-group-height: @line-height-base;
644
+ @menu-collapsed-width: 80px;
645
+ @menu-bg: @component-background;
646
+ @menu-popup-bg: @component-background;
647
+ @menu-item-color: @text-color;
648
+ @menu-inline-submenu-bg: @background-color-light;
649
+ @menu-highlight-color: @primary-color;
650
+ @menu-highlight-danger-color: @error-color;
651
+ @menu-item-active-bg: @primary-1;
652
+ @menu-item-active-danger-bg: @red-1;
653
+ @menu-item-active-border-width: 3px;
654
+ @menu-item-group-title-color: @text-color-secondary;
655
+ @menu-item-vertical-margin: 4px;
656
+ @menu-item-font-size: @font-size-base;
657
+ @menu-item-boundary-margin: 8px;
658
+ @menu-item-padding-horizontal: 20px;
659
+ @menu-item-padding: 0 @menu-item-padding-horizontal;
660
+ @menu-horizontal-line-height: 46px;
661
+ @menu-icon-margin-right: 10px;
662
+ @menu-icon-size: @menu-item-font-size;
663
+ @menu-icon-size-lg: @font-size-lg;
664
+ @menu-item-group-title-font-size: @menu-item-font-size;
665
+
666
+ // dark theme
667
+ @menu-dark-color: @text-color-secondary-dark;
668
+ @menu-dark-danger-color: @error-color;
669
+ @menu-dark-bg: @layout-header-background;
670
+ @menu-dark-arrow-color: #fff;
671
+ @menu-dark-inline-submenu-bg: #000c17;
672
+ @menu-dark-highlight-color: #fff;
673
+ @menu-dark-item-active-bg: @primary-color;
674
+ @menu-dark-item-active-danger-bg: @error-color;
675
+ @menu-dark-selected-item-icon-color: @white;
676
+ @menu-dark-selected-item-text-color: @white;
677
+ @menu-dark-item-hover-bg: transparent;
678
+ // Spin
679
+ // ---
680
+ @spin-dot-size-sm: 14px;
681
+ @spin-dot-size: 20px;
682
+ @spin-dot-size-lg: 32px;
683
+
684
+ // Table
685
+ // --
686
+ @table-bg: @component-background;
687
+ @table-header-bg: @background-color-light;
688
+ @table-header-color: @heading-color;
689
+ @table-header-sort-bg: @background-color-base;
690
+ @table-body-sort-bg: #fafafa;
691
+ @table-row-hover-bg: @background-color-light;
692
+ @table-selected-row-color: inherit;
693
+ @table-selected-row-bg: @primary-1;
694
+ @table-body-selected-sort-bg: @table-selected-row-bg;
695
+ @table-selected-row-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
696
+ @table-expanded-row-bg: #fbfbfb;
697
+ @table-padding-vertical: 16px;
698
+ @table-padding-horizontal: 16px;
699
+ @table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
700
+ @table-padding-horizontal-md: (@table-padding-horizontal / 2);
701
+ @table-padding-vertical-sm: (@table-padding-vertical / 2);
702
+ @table-padding-horizontal-sm: (@table-padding-horizontal / 2);
703
+ @table-border-color: @border-color-split;
704
+ @table-border-radius-base: @border-radius-base;
705
+ @table-footer-bg: @background-color-light;
706
+ @table-footer-color: @heading-color;
707
+ @table-header-bg-sm: @table-header-bg;
708
+ @table-font-size: @font-size-base;
709
+ @table-font-size-md: @table-font-size;
710
+ @table-font-size-sm: @table-font-size;
711
+ @table-header-cell-split-color: rgba(0, 0, 0, 0.06);
712
+ // Sorter
713
+ // Legacy: `table-header-sort-active-bg` is used for hover not real active
714
+ @table-header-sort-active-bg: rgba(0, 0, 0, 0.04);
715
+ @table-fixed-header-sort-active-bg: hsv(0, 0, 96%);
716
+
717
+ // Filter
718
+ @table-header-filter-active-bg: rgba(0, 0, 0, 0.04);
719
+ @table-filter-btns-bg: inherit;
720
+ @table-filter-dropdown-bg: @component-background;
721
+ @table-expand-icon-bg: @component-background;
722
+ @table-selection-column-width: 32px;
723
+ // Sticky
724
+ @table-sticky-scroll-bar-bg: fade(#000, 35%);
725
+ @table-sticky-scroll-bar-radius: 4px;
726
+
727
+ // Tag
728
+ // --
729
+ @tag-default-bg: @background-color-light;
730
+ @tag-default-color: @text-color;
731
+ @tag-font-size: @font-size-sm;
732
+ @tag-line-height: 20px;
733
+
734
+ // TimePicker
735
+ // ---
736
+ @picker-bg: @component-background;
737
+ @picker-basic-cell-hover-color: @item-hover-bg;
738
+ @picker-basic-cell-active-with-range-color: @primary-1;
739
+ @picker-basic-cell-hover-with-range-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-35)';
740
+ @picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04);
741
+ @picker-border-color: @border-color-split;
742
+ @picker-date-hover-range-border-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-20)';
743
+ @picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color;
744
+ @picker-time-panel-column-width: 56px;
745
+ @picker-time-panel-column-height: 224px;
746
+ @picker-time-panel-cell-height: 28px;
747
+ @picker-panel-cell-height: 24px;
748
+ @picker-panel-cell-width: 36px;
749
+ @picker-text-height: 40px;
750
+ @picker-panel-without-time-cell-height: 66px;
751
+
752
+ // Calendar
753
+ // ---
754
+ @calendar-bg: @component-background;
755
+ @calendar-input-bg: @input-bg;
756
+ @calendar-border-color: @border-color-inverse;
757
+ @calendar-item-active-bg: @item-active-bg;
758
+ @calendar-column-active-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-f-30)';
759
+ @calendar-full-bg: @calendar-bg;
760
+ @calendar-full-panel-bg: @calendar-full-bg;
761
+
762
+ // Carousel
763
+ // ---
764
+ @carousel-dot-width: 16px;
765
+ @carousel-dot-height: 3px;
766
+ @carousel-dot-active-width: 24px;
767
+
768
+ // Badge
769
+ // ---
770
+ @badge-height: 20px;
771
+ @badge-height-sm: 14px;
772
+ @badge-dot-size: 6px;
773
+ @badge-font-size: @font-size-sm;
774
+ @badge-font-size-sm: @font-size-sm;
775
+ @badge-font-weight: normal;
776
+ @badge-status-size: 6px;
777
+ @badge-text-color: @component-background;
778
+ @badge-color: @highlight-color;
779
+
780
+ // Rate
781
+ // ---
782
+ @rate-star-color: @yellow-6;
783
+ @rate-star-bg: @border-color-split;
784
+ @rate-star-size: 20px;
785
+ @rate-star-hover-scale: scale(1.1);
786
+
787
+ // Card
788
+ // ---
789
+ @card-head-color: @heading-color;
790
+ @card-head-background: transparent;
791
+ @card-head-font-size: @font-size-lg;
792
+ @card-head-font-size-sm: @font-size-base;
793
+ @card-head-padding: 16px;
794
+ @card-head-padding-sm: (@card-head-padding / 2);
795
+ @card-head-height: 48px;
796
+ @card-head-height-sm: 36px;
797
+ @card-inner-head-padding: 12px;
798
+ @card-padding-base: 24px;
799
+ @card-padding-base-sm: (@card-padding-base / 2);
800
+ @card-actions-background: @component-background;
801
+ @card-actions-li-margin: 12px 0;
802
+ @card-skeleton-bg: #cfd8dc;
803
+ @card-background: @component-background;
804
+ @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
805
+ 0 5px 12px 4px rgba(0, 0, 0, 0.09);
806
+ @card-radius: @border-radius-base;
807
+ @card-head-tabs-margin-bottom: -17px;
808
+ @card-head-extra-color: @text-color;
809
+
810
+ // Comment
811
+ // ---
812
+ @comment-bg: inherit;
813
+ @comment-padding-base: @padding-md 0;
814
+ @comment-nest-indent: 44px;
815
+ @comment-font-size-base: @font-size-base;
816
+ @comment-font-size-sm: @font-size-sm;
817
+ @comment-author-name-color: @text-color-secondary;
818
+ @comment-author-time-color: #ccc;
819
+ @comment-action-color: @text-color-secondary;
820
+ @comment-action-hover-color: #595959;
821
+ @comment-actions-margin-bottom: inherit;
822
+ @comment-actions-margin-top: @margin-sm;
823
+ @comment-content-detail-p-margin-bottom: inherit;
824
+
825
+ // Tabs
826
+ // ---
827
+ @tabs-card-head-background: @background-color-light;
828
+ @tabs-card-height: 40px;
829
+ @tabs-card-active-color: @primary-color;
830
+ @tabs-card-horizontal-padding: (
831
+ (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2
832
+ ) - @border-width-base @padding-md;
833
+ @tabs-card-horizontal-padding-sm: 6px @padding-md;
834
+ @tabs-card-horizontal-padding-lg: 7px @padding-md 6px;
835
+ @tabs-title-font-size: @font-size-base;
836
+ @tabs-title-font-size-lg: @font-size-lg;
837
+ @tabs-title-font-size-sm: @font-size-base;
838
+ @tabs-ink-bar-color: @primary-color;
839
+ @tabs-bar-margin: 0 0 @margin-md 0;
840
+ @tabs-horizontal-gutter: 32px;
841
+ @tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter;
842
+ @tabs-horizontal-margin-rtl: 0 0 0 32px;
843
+ @tabs-horizontal-padding: @padding-sm 0;
844
+ @tabs-horizontal-padding-lg: @padding-md 0;
845
+ @tabs-horizontal-padding-sm: @padding-xs 0;
846
+ @tabs-vertical-padding: @padding-xs @padding-lg;
847
+ @tabs-vertical-margin: @margin-md 0 0 0;
848
+ @tabs-scrolling-size: 32px;
849
+ @tabs-highlight-color: @primary-color;
850
+ @tabs-hover-color: @primary-5;
851
+ @tabs-active-color: @primary-7;
852
+ @tabs-card-gutter: 2px;
853
+ @tabs-card-tab-active-border-top: 2px solid transparent;
854
+
855
+ // BackTop
856
+ // ---
857
+ @back-top-color: #fff;
858
+ @back-top-bg: @text-color-secondary;
859
+ @back-top-hover-bg: @text-color;
860
+
861
+ // Avatar
862
+ // ---
863
+ @avatar-size-base: 32px;
864
+ @avatar-size-lg: 40px;
865
+ @avatar-size-sm: 24px;
866
+ @avatar-font-size-base: 18px;
867
+ @avatar-font-size-lg: 24px;
868
+ @avatar-font-size-sm: 14px;
869
+ @avatar-bg: #ccc;
870
+ @avatar-color: #fff;
871
+ @avatar-border-radius: @border-radius-base;
872
+ @avatar-group-overlapping: -8px;
873
+ @avatar-group-space: 3px;
874
+ @avatar-group-border-color: #fff;
875
+
876
+ // Switch
877
+ // ---
878
+ @switch-height: 22px;
879
+ @switch-sm-height: 16px;
880
+ @switch-min-width: 44px;
881
+ @switch-sm-min-width: 28px;
882
+ @switch-disabled-opacity: 0.4;
883
+ @switch-color: @primary-color;
884
+ @switch-bg: @component-background;
885
+ @switch-shadow-color: fade(#00230b, 20%);
886
+ @switch-padding: 2px;
887
+ @switch-inner-margin-min: ceil(@switch-height * 0.3);
888
+ @switch-inner-margin-max: ceil(@switch-height * 1.1);
889
+ @switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3);
890
+ @switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1);
891
+
892
+ // Pagination
893
+ // ---
894
+ @pagination-item-bg: @component-background;
895
+ @pagination-item-size: @height-base;
896
+ @pagination-item-size-sm: 24px;
897
+ @pagination-font-family: @font-family;
898
+ @pagination-font-weight-active: 500;
899
+ @pagination-item-bg-active: @component-background;
900
+ @pagination-item-link-bg: @component-background;
901
+ @pagination-item-disabled-color-active: @disabled-color;
902
+ @pagination-item-disabled-bg-active: @disabled-active-bg;
903
+ @pagination-item-input-bg: @component-background;
904
+ @pagination-mini-options-size-changer-top: 0px;
905
+
906
+ // PageHeader
907
+ // ---
908
+ @page-header-padding: @padding-lg;
909
+ @page-header-padding-vertical: @padding-md;
910
+ @page-header-padding-breadcrumb: @padding-sm;
911
+ @page-header-content-padding-vertical: @padding-sm;
912
+ @page-header-back-color: #000;
913
+ @page-header-ghost-bg: inherit;
914
+ @page-header-heading-title: @heading-4-size;
915
+ @page-header-heading-sub-title: 14px;
916
+ @page-header-tabs-tab-font-size: 16px;
917
+
918
+ // Breadcrumb
919
+ // ---
920
+ @breadcrumb-base-color: @text-color-secondary;
921
+ @breadcrumb-last-item-color: @text-color;
922
+ @breadcrumb-font-size: @font-size-base;
923
+ @breadcrumb-icon-font-size: @font-size-base;
924
+ @breadcrumb-link-color: @text-color-secondary;
925
+ @breadcrumb-link-color-hover: @primary-5;
926
+ @breadcrumb-separator-color: @text-color-secondary;
927
+ @breadcrumb-separator-margin: 0 @padding-xs;
928
+
929
+ // Slider
930
+ // ---
931
+ @slider-margin: 10px 6px 10px;
932
+ @slider-rail-background-color: @background-color-base;
933
+ @slider-rail-background-color-hover: #e1e1e1;
934
+ @slider-track-background-color: @primary-3;
935
+ @slider-track-background-color-hover: @primary-4;
936
+ @slider-handle-border-width: 2px;
937
+ @slider-handle-background-color: @component-background;
938
+ @slider-handle-color: @primary-3;
939
+ @slider-handle-color-hover: @primary-4;
940
+ @slider-handle-color-focus: ~'var(--@{ant-prefix}-primary-color-deprecated-t-20)';
941
+ @slider-handle-color-focus-shadow: ~'var(--@{ant-prefix}-primary-color-deprecated-f-12)';
942
+ @slider-handle-color-tooltip-open: @primary-color;
943
+ @slider-handle-size: 14px;
944
+ @slider-handle-margin-top: -5px;
945
+ @slider-handle-shadow: 0;
946
+ @slider-dot-border-color: @border-color-split;
947
+ @slider-dot-border-color-active: ~'var(--@{ant-prefix}-primary-color-deprecated-t-50)';
948
+ @slider-disabled-color: @disabled-color;
949
+ @slider-disabled-background-color: @component-background;
950
+
951
+ // Tree
952
+ // ---
953
+ @tree-bg: @component-background;
954
+ @tree-title-height: 24px;
955
+ @tree-child-padding: 18px;
956
+ @tree-directory-selected-color: #fff;
957
+ @tree-directory-selected-bg: @primary-color;
958
+ @tree-node-hover-bg: @item-hover-bg;
959
+ @tree-node-selected-bg: @primary-2;
960
+
961
+ // Collapse
962
+ // ---
963
+ @collapse-header-padding: @padding-sm @padding-md;
964
+ @collapse-header-padding-extra: 40px;
965
+ @collapse-header-bg: @background-color-light;
966
+ @collapse-content-padding: @padding-md;
967
+ @collapse-content-bg: @component-background;
968
+ @collapse-header-arrow-left: 16px;
969
+
970
+ // Skeleton
971
+ // ---
972
+ @skeleton-color: rgba(190, 190, 190, 0.2);
973
+ @skeleton-to-color: shade(@skeleton-color, 5%);
974
+ @skeleton-paragraph-margin-top: 28px;
975
+ @skeleton-paragraph-li-margin-top: @margin-md;
976
+ @skeleton-paragraph-li-height: 16px;
977
+ @skeleton-title-height: 16px;
978
+ @skeleton-title-paragraph-margin-top: @margin-lg;
979
+
980
+ // Transfer
981
+ // ---
982
+ @transfer-header-height: 40px;
983
+ @transfer-item-height: @height-base;
984
+ @transfer-disabled-bg: @disabled-bg;
985
+ @transfer-list-height: 200px;
986
+ @transfer-item-hover-bg: @item-hover-bg;
987
+ @transfer-item-selected-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
988
+ @transfer-item-padding-vertical: 6px;
989
+ @transfer-list-search-icon-top: 12px;
990
+
991
+ // Message
992
+ // ---
993
+ @message-notice-content-padding: 10px 16px;
994
+ @message-notice-content-bg: @component-background;
995
+ // Motion
996
+ // ---
997
+ @wave-animation-width: 6px;
998
+
999
+ // Alert
1000
+ // ---
1001
+ @alert-success-border-color: @success-color-deprecated-border;
1002
+ @alert-success-bg-color: @success-color-deprecated-bg;
1003
+ @alert-success-icon-color: @success-color;
1004
+ @alert-info-border-color: @info-color-deprecated-border;
1005
+ @alert-info-bg-color: @info-color-deprecated-bg;
1006
+ @alert-info-icon-color: @info-color;
1007
+ @alert-warning-border-color: @warning-color-deprecated-border;
1008
+ @alert-warning-bg-color: @warning-color-deprecated-bg;
1009
+ @alert-warning-icon-color: @warning-color;
1010
+ @alert-error-border-color: @error-color-deprecated-border;
1011
+ @alert-error-bg-color: @error-color-deprecated-bg;
1012
+ @alert-error-icon-color: @error-color;
1013
+ @alert-message-color: @heading-color;
1014
+ @alert-text-color: @text-color;
1015
+ @alert-close-color: @text-color-secondary;
1016
+ @alert-close-hover-color: @icon-color-hover;
1017
+ @alert-no-icon-padding-vertical: @padding-xs;
1018
+ @alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
1019
+ @alert-with-description-padding-vertical: @padding-md - 1px;
1020
+ @alert-with-description-padding: @alert-with-description-padding-vertical 15px
1021
+ @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
1022
+ @alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
1023
+ @alert-with-description-icon-size: 24px;
1024
+
1025
+ // List
1026
+ // ---
1027
+ @list-header-background: transparent;
1028
+ @list-footer-background: transparent;
1029
+ @list-empty-text-padding: @padding-md;
1030
+ @list-item-padding: @padding-sm 0;
1031
+ @list-item-padding-sm: @padding-xs @padding-md;
1032
+ @list-item-padding-lg: 16px 24px;
1033
+ @list-item-meta-margin-bottom: @padding-md;
1034
+ @list-item-meta-avatar-margin-right: @padding-md;
1035
+ @list-item-meta-title-margin-bottom: @padding-sm;
1036
+ @list-customize-card-bg: @component-background;
1037
+ @list-item-meta-description-font-size: @font-size-base;
1038
+
1039
+ // Statistic
1040
+ // ---
1041
+ @statistic-title-font-size: @font-size-base;
1042
+ @statistic-content-font-size: 24px;
1043
+ @statistic-unit-font-size: 24px;
1044
+ @statistic-font-family: @font-family;
1045
+
1046
+ // Drawer
1047
+ // ---
1048
+ @drawer-header-padding: @padding-md @padding-lg;
1049
+ @drawer-body-padding: @padding-lg;
1050
+ @drawer-bg: @component-background;
1051
+ @drawer-footer-padding-vertical: @modal-footer-padding-vertical;
1052
+ @drawer-footer-padding-horizontal: @modal-footer-padding-horizontal;
1053
+ @drawer-header-close-size: 56px;
1054
+ @drawer-title-font-size: @font-size-lg;
1055
+ @drawer-title-line-height: 22px;
1056
+
1057
+ // Timeline
1058
+ // ---
1059
+ @timeline-width: 2px;
1060
+ @timeline-color: @border-color-split;
1061
+ @timeline-dot-border-width: 2px;
1062
+ @timeline-dot-color: @primary-color;
1063
+ @timeline-dot-bg: @component-background;
1064
+ @timeline-item-padding-bottom: 20px;
1065
+
1066
+ // Typography
1067
+ // ---
1068
+ @typography-title-font-weight: 600;
1069
+ @typography-title-margin-top: 1.2em;
1070
+ @typography-title-margin-bottom: 0.5em;
1071
+
1072
+ // Upload
1073
+ // ---
1074
+ @upload-actions-color: @text-color-secondary;
1075
+
1076
+ // Steps
1077
+ // ---
1078
+ @process-tail-color: @border-color-split;
1079
+ @steps-nav-arrow-color: fade(@black, 25%);
1080
+ @steps-background: @component-background;
1081
+ @steps-icon-size: 32px;
1082
+ @steps-icon-custom-size: @steps-icon-size;
1083
+ @steps-icon-custom-top: 0px;
1084
+ @steps-icon-custom-font-size: 24px;
1085
+ @steps-icon-top: -0.5px;
1086
+ @steps-icon-font-size: @font-size-lg;
1087
+ @steps-icon-margin: 0 8px 0 0;
1088
+ @steps-title-line-height: @height-base;
1089
+ @steps-small-icon-size: 24px;
1090
+ @steps-small-icon-margin: 0 8px 0 0;
1091
+ @steps-dot-size: 8px;
1092
+ @steps-dot-top: 2px;
1093
+ @steps-current-dot-size: 10px;
1094
+ @steps-description-max-width: 140px;
1095
+ @steps-nav-content-max-width: auto;
1096
+ @steps-vertical-icon-width: 16px;
1097
+ @steps-vertical-tail-width: 16px;
1098
+ @steps-vertical-tail-width-sm: 12px;
1099
+
1100
+ // Notification
1101
+ // ---
1102
+ @notification-bg: @component-background;
1103
+ @notification-padding-vertical: 16px;
1104
+ @notification-padding-horizontal: 24px;
1105
+
1106
+ // Result
1107
+ // ---
1108
+ @result-title-font-size: 24px;
1109
+ @result-subtitle-font-size: @font-size-base;
1110
+ @result-icon-font-size: 72px;
1111
+ @result-extra-margin: 24px 0 0 0;
1112
+
1113
+ // Image
1114
+ // ---
1115
+ @image-size-base: 48px;
1116
+ @image-font-size-base: 24px;
1117
+ @image-bg: #f5f5f5;
1118
+ @image-color: #fff;
1119
+ @image-mask-font-size: 16px;
1120
+ @image-preview-operation-size: 18px;
1121
+ @image-preview-operation-color: @text-color-dark;
1122
+ @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);