2020-03-20 14:43:32 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../input/style/mixin';
|
|
|
|
|
|
|
|
@input-number-prefix-cls: ~'@{ant-prefix}-input-number';
|
|
|
|
|
|
|
|
.@{input-number-prefix-cls} {
|
2020-04-09 12:39:10 +08:00
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2021-09-24 11:35:58 +08:00
|
|
|
&-handler {
|
2020-03-20 14:43:32 +08:00
|
|
|
.@{input-number-prefix-cls}-rtl & {
|
|
|
|
border-right: @border-width-base @border-style-base @input-number-handler-border-color;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2021-02-01 17:06:20 +08:00
|
|
|
|
2021-09-24 11:35:58 +08:00
|
|
|
&-wrap {
|
|
|
|
.@{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;
|
|
|
|
}
|
2021-02-01 17:06:20 +08:00
|
|
|
}
|
2020-03-20 14:43:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
.@{input-number-prefix-cls}-rtl & {
|
2020-06-22 14:48:44 +08:00
|
|
|
direction: ltr;
|
2020-03-20 14:43:32 +08:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-02 19:36:10 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/35870
|
|
|
|
.input-group(@input-number-prefix-cls) {
|
|
|
|
> .@{input-number-prefix-cls}-rtl:first-child {
|
|
|
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
|
|
}
|
|
|
|
> .@{input-number-prefix-cls}-rtl:last-child {
|
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-addon {
|
|
|
|
.@{input-number-prefix-cls}-group-rtl &:first-child {
|
|
|
|
border-right: @border-width-base @border-style-base @input-border-color;
|
|
|
|
border-left: 0;
|
|
|
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
|
|
}
|
|
|
|
.@{input-number-prefix-cls}-group-rtl &:last-child {
|
|
|
|
border-right: 0;
|
|
|
|
border-left: @border-width-base @border-style-base @input-border-color;
|
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|