switch minxin修改
This commit is contained in:
parent
98110f8ee3
commit
8c020105fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue