Skip to content

Commit

Permalink
fix(switch): android 0.5px bug
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Jul 18, 2017
1 parent fe1bc4f commit 86dabfe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/switch/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@

&&-android {
.checkbox {
width: 140px;
height: 44px;
width: 144px;
height: 46px;
border-radius: @radius-sm;
background: #a7aaa6;

Expand All @@ -105,10 +105,12 @@
}

&:after {
width: 67px;
height: 38px;
width: 70px;
height: 42px;
border-radius: @radius-xs;
box-shadow: none;
left: 2px;
top: 2px;
}
}

Expand All @@ -122,7 +124,7 @@
}

&:after {
transform: translateX(67px);
transform: translateX(70px);
}
}
}
Expand Down

0 comments on commit 86dabfe

Please sign in to comment.