mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
e13c4d4131
* chore: create additional entry * fix: rm recv call * chore: Add default.less as index.less * chore: update entry * fix: row should also translate * chore: rename index-default to index and add index-pure instead * fix: missing transfer customize styl
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@switch-prefix-cls: ~'@{ant-prefix}-switch';
|
|
|
|
@switch-pin-size: @switch-height - 4px;
|
|
@switch-sm-pin-size: @switch-sm-height - 4px;
|
|
|
|
.@{switch-prefix-cls}-rtl {
|
|
direction: rtl;
|
|
|
|
.@{switch-prefix-cls}-inner {
|
|
margin: 0 @switch-inner-margin-max 0 @switch-inner-margin-min;
|
|
}
|
|
|
|
.@{switch-prefix-cls}-handle {
|
|
right: @switch-padding;
|
|
left: auto;
|
|
}
|
|
|
|
&:not(&-disabled):active {
|
|
.@{switch-prefix-cls}-handle::before {
|
|
right: 0;
|
|
left: -30%;
|
|
}
|
|
|
|
&.@{switch-prefix-cls}-checked {
|
|
.@{switch-prefix-cls}-handle::before {
|
|
right: -30%;
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.@{switch-prefix-cls}-checked {
|
|
.@{switch-prefix-cls}-inner {
|
|
margin: 0 @switch-inner-margin-min 0 @switch-inner-margin-max;
|
|
}
|
|
|
|
.@{switch-prefix-cls}-handle {
|
|
right: calc(100% - @switch-pin-size - @switch-padding);
|
|
}
|
|
}
|
|
|
|
&.@{switch-prefix-cls}-small {
|
|
&.@{switch-prefix-cls}-checked {
|
|
.@{switch-prefix-cls}-handle {
|
|
right: calc(100% - @switch-sm-pin-size - @switch-padding);
|
|
}
|
|
}
|
|
}
|
|
}
|