@ttk/component
Version:
ttk组件库
29 lines • 665 B
text/less
.@{mk-prefix}-switch {
font-family: "微软雅黑";
}
.@{ant-prefix}-switch {
min-width: 55px;
&:before, &:after {
width: 16px;
height: 16px;
top: 3px;
left: 3px;
}
&-checked {
&:before, &:after {
left: 100%;
}
}
&:not(.@{ant-prefix}-switch-checked) {
border: 1px solid @border-color-base;
background-color: #fff;
.@{ant-prefix}-switch-inner {
color: #999;
text-align: center;
}
&:before, &:after {
background-color: #d2d2d2;
box-shadow: none;
}
}
}