Skip to content

Commit

Permalink
style: 优化switch UI
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Sep 16, 2019
1 parent e67c61c commit 0206f0c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions dist/style/weui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/weui.min.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/style/widget/weui-cell/weui-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@
position: relative;
width: 52px;
height: @weuiSwitchHeight;
border: 1px solid @weuiLineColorLight;
border: 2px solid @weuiLineColorLight;
outline: 0;
border-radius: 16px;
box-sizing: border-box;
background-color: @weuiLineColorLight;
background-color: #FFFFFF;
transition: background-color .1s, border .1s;

&:before{
content: " ";
position: absolute;
top: 0;
left: 0;
width: 50px;
height: @weuiSwitchHeight - 2;
bottom: 0;
right: 0;
border-radius: 15px;
background-color: #FDFDFD;
transition:transform .35s cubic-bezier(0.45, 1, 0.4, 1);
Expand All @@ -51,8 +51,8 @@
position: absolute;
top: 0;
left: 0;
width: @weuiSwitchHeight - 2;
height: @weuiSwitchHeight - 2;
width: @weuiSwitchHeight - 4;
height: @weuiSwitchHeight - 4;
border-radius: 15px;
background-color: #FFFFFF;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
Expand Down

0 comments on commit 0206f0c

Please sign in to comment.