mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
74 lines
1.3 KiB
Plaintext
74 lines
1.3 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@switch-prefix-cls: ~'@{ant-prefix}-switch';
|
|
|
|
.@{switch-prefix-cls} {
|
|
&-rtl {
|
|
direction: rtl;
|
|
}
|
|
|
|
&-inner {
|
|
.@{switch-prefix-cls}-rtl & {
|
|
margin-right: @switch-inner-margin-max;
|
|
margin-left: @switch-inner-margin-min;
|
|
}
|
|
}
|
|
|
|
&-loading-icon,
|
|
&::after {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
left: 100%;
|
|
margin-left: -1px;
|
|
transform: translateX(-100%);
|
|
}
|
|
}
|
|
|
|
&-small {
|
|
.@{switch-prefix-cls}-inner {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
margin-right: 18px;
|
|
margin-left: 3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-small &-loading-icon {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
margin-left: 12px;
|
|
}
|
|
}
|
|
|
|
&-small&-checked {
|
|
.@{switch-prefix-cls}-inner {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
margin-right: 3px;
|
|
margin-left: 18px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-checked {
|
|
.@{switch-prefix-cls}-inner {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
margin-right: @switch-inner-margin-min;
|
|
margin-left: @switch-inner-margin-max;
|
|
}
|
|
}
|
|
|
|
&::after {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
left: 1px;
|
|
margin-left: 0;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-checked &-loading-icon {
|
|
.@{switch-prefix-cls}-rtl& {
|
|
margin-left: -41px;
|
|
}
|
|
}
|
|
}
|