|
1 | 1 | /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
2 | 2 | @import '../color/colors';
|
| 3 | + |
3 | 4 | @theme: default;
|
| 5 | + |
4 | 6 | // The prefix to use on all css classes from ant.
|
5 | 7 | @ant-prefix: ant;
|
6 | 8 |
|
|
9 | 11 |
|
10 | 12 | // -------- Colors -----------
|
11 | 13 | @primary-color: @blue-6;
|
12 |
| -@info-color: @blue-6; |
| 14 | +@info-color: @primary-color; |
13 | 15 | @success-color: @green-6;
|
14 | 16 | @processing-color: @blue-6;
|
15 |
| -@error-color: @red-6; |
16 |
| -@highlight-color: @red-6; |
| 17 | +@error-color: @red-5; |
| 18 | +@highlight-color: @red-5; |
17 | 19 | @warning-color: @gold-6;
|
18 | 20 | @normal-color: #d9d9d9;
|
19 | 21 | @white: #fff;
|
|
43 | 45 | @component-background: #fff;
|
44 | 46 | // Popover background color
|
45 | 47 | @popover-background: @component-background;
|
46 |
| -@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', |
47 |
| - 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', |
48 |
| - 'Segoe UI Emoji', 'Segoe UI Symbol'; |
| 48 | +@popover-customize-border-color: @border-color-split; |
| 49 | +@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, |
| 50 | + 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', |
| 51 | + 'Noto Color Emoji'; |
49 | 52 | @code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
50 | 53 | @text-color: fade(@black, 85%);
|
51 | 54 | @text-color-secondary: fade(@black, 45%);
|
52 | 55 | @text-color-inverse: @white;
|
53 | 56 | @icon-color: inherit;
|
54 | 57 | @icon-color-hover: fade(@black, 75%);
|
55 |
| -@heading-color: fade(#000, 85%); |
56 |
| -@heading-color-dark: fade(@white, 100%); |
| 58 | +@heading-color: fade(@black, 85%); |
57 | 59 | @text-color-dark: fade(@white, 85%);
|
58 | 60 | @text-color-secondary-dark: fade(@white, 65%);
|
59 | 61 | @text-selection-bg: @primary-color;
|
|
62 | 64 | @font-size-base: 14px;
|
63 | 65 | @font-size-lg: @font-size-base + 2px;
|
64 | 66 | @font-size-sm: 12px;
|
65 |
| -@heading-1-size: ceil((@font-size-base * 2.71)); |
66 |
| -@heading-2-size: ceil((@font-size-base * 2.14)); |
67 |
| -@heading-3-size: ceil((@font-size-base * 1.71)); |
68 |
| -@heading-4-size: ceil((@font-size-base * 1.42)); |
| 67 | +@heading-1-size: ceil(@font-size-base * 2.71); |
| 68 | +@heading-2-size: ceil(@font-size-base * 2.14); |
| 69 | +@heading-3-size: ceil(@font-size-base * 1.71); |
| 70 | +@heading-4-size: ceil(@font-size-base * 1.42); |
| 71 | +@heading-5-size: ceil(@font-size-base * 1.14); |
| 72 | +// https://github.com/ant-design/ant-design/issues/20210 |
69 | 73 | @line-height-base: 1.5715;
|
70 | 74 | @border-radius-base: 2px;
|
71 | 75 | @border-radius-sm: @border-radius-base;
|
|
75 | 79 | @padding-md: 16px; // small containers and buttons
|
76 | 80 | @padding-sm: 12px; // Form controls and items
|
77 | 81 | @padding-xs: 8px; // small items
|
| 82 | +@padding-xss: 4px; // more small |
78 | 83 |
|
79 | 84 | // vertical padding for all form controls
|
80 | 85 | @control-padding-horizontal: @padding-sm;
|
81 | 86 | @control-padding-horizontal-sm: @padding-xs;
|
82 | 87 |
|
| 88 | +// vertical margins |
| 89 | +@margin-lg: 24px; // containers |
| 90 | +@margin-md: 16px; // small containers and buttons |
| 91 | +@margin-sm: 12px; // Form controls and items |
| 92 | +@margin-xs: 8px; // small items |
| 93 | +@margin-xss: 4px; // more small |
| 94 | + |
| 95 | +// height rules |
| 96 | +@height-base: 32px; |
| 97 | +@height-lg: 40px; |
| 98 | +@height-sm: 24px; |
| 99 | + |
83 | 100 | // The background colors for active and hover states for things like
|
84 | 101 | // list items or table cells.
|
85 | 102 | @item-active-bg: @primary-1;
|
|
0 commit comments