switch minxin修改

This commit is contained in:
ahua52 2016-11-24 10:28:54 +08:00
parent 98110f8ee3
commit 8c020105fc
1 changed files with 2 additions and 23 deletions

View File

@ -426,29 +426,8 @@
}
//switch colors
@mixin switch-styles-variant($color){
&.is-checked{
.u-switch-track{
background: $color;
border: 1px solid $color;
}
}
}
//switch size
@mixin switch-size($width, $height, $border-radius, $border-left) {
.u-switch-track{
width:$width;
height:$height;
border-radius:$border-radius;
}
.u-switch-thumb{
width:$height;
height:$height;
}
&.is-checked{
.u-switch-thumb{
left:$border-left;
}
}
background: $color;
border: 1px solid $color;
}
//tooltips