ant-design/components/radio/style/rtl.less

62 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-03-19 19:53:24 +08:00
@import '../../style/themes/index';
@import '../../style/mixins/index';
@radio-prefix-cls: ~'@{ant-prefix}-radio';
@radio-group-prefix-cls: ~'@{radio-prefix-cls}-group';
@radio-prefix-cls-button-wrapper: ~'@{radio-prefix-cls}-button-wrapper';
2020-03-19 19:53:24 +08:00
.@{radio-group-prefix-cls} {
&&-rtl {
2020-03-19 19:53:24 +08:00
direction: rtl;
}
}
// 一般状态
.@{radio-prefix-cls}-wrapper {
&&-rtl {
2020-03-19 19:53:24 +08:00
margin-right: 0;
margin-left: @radio-wrapper-margin-right;
direction: rtl;
2020-03-19 19:53:24 +08:00
}
}
.@{radio-prefix-cls-button-wrapper} {
&&-rtl {
2020-03-19 19:53:24 +08:00
border-right-width: 0;
border-left-width: @border-width-base;
}
&:not(:first-child) {
&::before {
.@{radio-prefix-cls-button-wrapper}.@{radio-prefix-cls-button-wrapper}-rtl& {
2020-03-19 19:53:24 +08:00
right: -1px;
left: 0;
}
}
}
&:first-child {
.@{radio-prefix-cls-button-wrapper}.@{radio-prefix-cls-button-wrapper}-rtl& {
2020-03-19 19:53:24 +08:00
border-right: @border-width-base @border-style-base @border-color-base;
border-radius: 0 @border-radius-base @border-radius-base 0;
}
.@{radio-prefix-cls-button-wrapper}-checked:not([class*=~"' @{radio-prefix-cls}-button-wrapper-disabled'"])& {
2020-03-19 19:53:24 +08:00
border-right-color: @radio-button-hover-color;
}
}
&:last-child {
.@{radio-prefix-cls-button-wrapper}.@{radio-prefix-cls-button-wrapper}-rtl& {
2020-03-19 19:53:24 +08:00
border-radius: @border-radius-base 0 0 @border-radius-base;
}
}
&-disabled {
&:first-child {
.@{radio-prefix-cls-button-wrapper}.@{radio-prefix-cls-button-wrapper}-rtl& {
2020-03-19 19:53:24 +08:00
border-right-color: @border-color-base;
}
}
}
}