style: improve select style (#26181)

This commit is contained in:
xrkffgg 2020-08-13 13:33:38 +08:00 committed by GitHub
parent 7df2c4053a
commit e8c43d4d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View File

@ -44,10 +44,7 @@
}
}
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selector {
padding-right: @font-size-base * 1.5;
}
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selector,
&.@{select-prefix-cls}-allow-clear .@{select-prefix-cls}-selector {
padding-right: @font-size-sm + @control-padding-horizontal;
}

View File

@ -55,6 +55,7 @@
);
.@{select-prefix-cls}-multiple {
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selector,
&.@{select-prefix-cls}-allow-clear .@{select-prefix-cls}-selector {
.@{select-prefix-cls}-rtl& {
padding-right: @input-padding-vertical-base;
@ -62,13 +63,6 @@
}
}
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selector {
.@{select-prefix-cls}-rtl& {
padding-right: @input-padding-vertical-base;
padding-left: @font-size-base * 1.5;
}
}
// ======================== Selections ========================
.@{select-prefix-cls}-selection-item {
.@{select-prefix-cls}-rtl& {