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,13 +9,16 @@
direction: rtl;
}
&-handler-wrap {
&-handler {
.@{input-number-prefix-cls}-rtl & {
border-right: @border-width-base @border-style-base @input-number-handler-border-color;
border-left: 0;
}
&-wrap {
.@{input-number-prefix-cls}-rtl & {
right: auto;
left: 0;
border-right: @border-width-base @border-style-base @input-number-handler-border-color;
border-left: 0;
border-radius: @border-radius-base 0 0 @border-radius-base;
}
.@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & {
@ -23,6 +26,19 @@
}
}
&-up {
.@{input-number-prefix-cls}-rtl & {
border-top-right-radius: 0;
}
}
&-down {
.@{input-number-prefix-cls}-rtl & {
border-bottom-right-radius: 0;
}
}
}
&-input {
.@{input-number-prefix-cls}-rtl & {
direction: ltr;