|
|
@ -8,8 +8,8 @@ |
|
|
|
position: relative; |
|
|
|
display: inline-block; |
|
|
|
box-sizing: border-box; |
|
|
|
width: 44px; |
|
|
|
height: 22px; |
|
|
|
min-width: 44px; |
|
|
|
line-height: 20px; |
|
|
|
vertical-align: middle; |
|
|
|
border-radius: 20px; |
|
|
@ -22,8 +22,8 @@ |
|
|
|
&-inner { |
|
|
|
color: #fff; |
|
|
|
font-size: 12px; |
|
|
|
position: absolute; |
|
|
|
left: 24px; |
|
|
|
margin-left: 24px; |
|
|
|
margin-right: 6px; |
|
|
|
} |
|
|
|
|
|
|
|
&:after { |
|
|
@ -32,11 +32,12 @@ |
|
|
|
height: 18px; |
|
|
|
left: 2px; |
|
|
|
top: 1px; |
|
|
|
|
|
|
|
border-radius: 18px; |
|
|
|
background-color: #fff; |
|
|
|
content: " "; |
|
|
|
cursor: pointer; |
|
|
|
transition: left @switch-duration @ease-in-out-circ, width @switch-duration @ease-in-out-circ; |
|
|
|
transition: all @switch-duration @ease-in-out-circ, width @switch-duration @ease-in-out-circ; |
|
|
|
} |
|
|
|
|
|
|
|
&:active:after { |
|
|
@ -54,23 +55,40 @@ |
|
|
|
|
|
|
|
&-small { |
|
|
|
height: 14px; |
|
|
|
min-width: 28px; |
|
|
|
line-height: 12px; |
|
|
|
width: 28px; |
|
|
|
|
|
|
|
.@{switch-prefix-cls}-inner { |
|
|
|
margin-left: 18px; |
|
|
|
margin-right: 3px; |
|
|
|
} |
|
|
|
|
|
|
|
&:after { |
|
|
|
width: 12px; |
|
|
|
height: 12px; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
} |
|
|
|
|
|
|
|
&:active:after { |
|
|
|
width: 16px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&-small&-checked:after { |
|
|
|
left: 14px; |
|
|
|
&-small&-checked { |
|
|
|
&:after { |
|
|
|
left: 100%; |
|
|
|
margin-left: -12px; |
|
|
|
} |
|
|
|
|
|
|
|
.@{switch-prefix-cls}-inner { |
|
|
|
margin-left: 3px; |
|
|
|
margin-right: 18px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&-small:active&-checked:after { |
|
|
|
left: 10px; |
|
|
|
} |
|
|
@ -80,11 +98,13 @@ |
|
|
|
background-color: @primary-color; |
|
|
|
|
|
|
|
.@{switch-prefix-cls}-inner { |
|
|
|
left: 6px; |
|
|
|
margin-left: 6px; |
|
|
|
margin-right: 24px; |
|
|
|
} |
|
|
|
|
|
|
|
&:after { |
|
|
|
left: 22px; |
|
|
|
left: 100%; |
|
|
|
margin-left: -20px; |
|
|
|
} |
|
|
|
|
|
|
|
&:active:after { |
|
|
|