提交 2cacfe78 编写于 作者: A afc163

Fix switch overflow in certain situation, close #9928

上级 152cae4d
......@@ -104,23 +104,16 @@
}
&-small&-checked {
&:before,
&:after {
&:before {
left: 100%;
margin-left: @switch-sm-checked-margin-left;
}
.@{switch-prefix-cls}-inner {
margin-left: 3px;
margin-right: 18px;
}
}
&-small:active&-checked:before,
&-small:active&-checked:after {
margin-left: -16.5px;
}
&-small&-loading:before {
animation: AntSwitchSmallLoadingCircle 1s infinite linear;
font-weight: bold;
......@@ -134,15 +127,15 @@
margin-right: 24px;
}
&:before,
&:after {
&:before {
left: 100%;
margin-left: -19px;
}
&:active:before,
&:active:after {
margin-left: -25px;
&:after {
left: 100%;
transform: translateX(-100%);
margin-left: -1px;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册