feat: less vars for select and anchor (#18444)

This commit is contained in:
信鑫-King 2019-08-23 22:19:04 +08:00 committed by 偏右
parent 721a545211
commit 021e9af227
3 changed files with 11 additions and 4 deletions

View File

@ -27,7 +27,7 @@
width: @anchor-border-width; width: @anchor-border-width;
height: 100%; height: 100%;
margin: 0 auto; margin: 0 auto;
background-color: @border-color-split; background-color: @anchor-border-color;
content: ' '; content: ' ';
} }
&-ball { &-ball {

View File

@ -443,7 +443,7 @@
// https://github.com/ant-design/ant-design/issues/11456 // https://github.com/ant-design/ant-design/issues/11456
// https://github.com/ant-design/ant-design/issues/11843 // https://github.com/ant-design/ant-design/issues/11843
font-variant: initial; font-variant: initial;
background-color: @component-background; background-color: @select-dropdown-bg;
border-radius: @border-radius-base; border-radius: @border-radius-base;
outline: none; outline: none;
box-shadow: @box-shadow-base; box-shadow: @box-shadow-base;
@ -528,7 +528,7 @@
&-selected { &-selected {
color: @text-color; color: @text-color;
font-weight: @select-item-selected-font-weight; font-weight: @select-item-selected-font-weight;
background-color: @background-color-light; background-color: @select-item-selected-bg;
} }
&-disabled { &-disabled {
@ -542,7 +542,7 @@
} }
&-active:not(&-disabled) { &-active:not(&-disabled) {
background-color: @item-active-bg; background-color: @select-item-active-bg;
} }
&-divider { &-divider {

View File

@ -326,6 +326,13 @@
// --- // ---
@select-border-color: @border-color-base; @select-border-color: @border-color-base;
@select-item-selected-font-weight: 600; @select-item-selected-font-weight: 600;
@select-dropdown-bg: @component-background;
@select-item-selected-bg: @background-color-light;
@select-item-active-bg: @item-active-bg;
// Anchor
// ---
@anchor-border-color: @border-color-split;
// Tooltip // Tooltip
// --- // ---