mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
Switch 组件: 个人建议加了动画效果 (#59)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@import './mixins/border_retina.css';
|
||||
|
||||
@component-namespace van {
|
||||
@b switch {
|
||||
@b switch {
|
||||
height: 31px;
|
||||
width: 51px;
|
||||
display: inline-block;
|
||||
@@ -24,6 +24,7 @@
|
||||
left: 1px;
|
||||
top: 1px;
|
||||
z-index: 2;
|
||||
transition: transform .3s;
|
||||
&::after {
|
||||
@mixin border-retina (top, right, bottom, left), rgba(0, 0, 0, .1);
|
||||
border-radius: 27px;
|
||||
|
Reference in New Issue
Block a user