Browse Source

无JIRA fix: checkbox的自适应

es6
zsmj 2 years ago
parent
commit
bcdcb32ba8
  1. 11
      src/less/base/single/input/checkbox.less

11
src/less/base/single/input/checkbox.less

@ -9,17 +9,16 @@
&:after {
position: absolute;
display: table;
// 百分比会出现像素误差
top: 6px;
left: 2px;
top: 45%;
left: 20%;
border: 2px solid transparent;
border-top: 0;
border-left: 0;
width: 6px;
height: 9px;
width: 50%;
height: 75%;
.box-sizing(border-box);
.transform(rotate(45deg) scale(1) translate(-50%, -50%));
@transition: all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;
@transition: all .1s cubic-bezier(.71, -.46, .88, .6), opacity .1s;
.transition(@transition);
content: '';
}

Loading…
Cancel
Save