style: optimized InputNumber handler show in rtl (#32272)

This commit is contained in:
xrkffgg 2021-09-24 11:35:58 +08:00 committed by GitHub
parent f9edeb8122
commit 4054c767cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,17 +9,33 @@
direction: rtl; direction: rtl;
} }
&-handler-wrap { &-handler {
.@{input-number-prefix-cls}-rtl & { .@{input-number-prefix-cls}-rtl & {
right: auto;
left: 0;
border-right: @border-width-base @border-style-base @input-number-handler-border-color; border-right: @border-width-base @border-style-base @input-number-handler-border-color;
border-left: 0; border-left: 0;
border-radius: @border-radius-base 0 0 @border-radius-base;
} }
.@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & { &-wrap {
border-right-width: 0; .@{input-number-prefix-cls}-rtl & {
right: auto;
left: 0;
}
.@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & {
border-right-width: 0;
}
}
&-up {
.@{input-number-prefix-cls}-rtl & {
border-top-right-radius: 0;
}
}
&-down {
.@{input-number-prefix-cls}-rtl & {
border-bottom-right-radius: 0;
}
} }
} }