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

62 lines
1.5 KiB
Plaintext
Raw Normal View History

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