vant/packages/vant-css/src/checkbox.css
neverland d6a4e43af3
[new feature] normalize size of all icons (#292)
* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components

* [Doc] add custom theme document

* [new feature] Notice bar support more props

* [bugfix] PullRefresh test cases

* [bugfix] unused NoticeBar style

* [bugfix] Swipe width calc error

* [Doc] english document of all action components

* [Doc] change document site path to /zanui/vant

* [Doc] fix

* [bugfix] uploader style error

* [bugfix] tabs document demo

* [new feature] Cell support vue-router target route

* [bugfix] add cell test cases

* update yarn.lock

* [bugfix] Tabbar cann't display info when use icon slot

* [Doc] update document title

* [bugfix] Dialog should reset button text when showed

* [new feature] CouponList add showCloseButton prop

* [new feature] Swipe add 'initialSwipe' prop

* [bugfix] NoticeBar text disappeared when page back

* [new feature] ImagePreview support startPosition

* fix: improve imagePreview test cases

* [bugfix] Steps style error when has more than 4 items

* [new feature] normalize size of all icons
2017-11-08 00:52:44 -06:00

72 lines
1.2 KiB
CSS

@import './common/var.css';
$van-checkbox-size: 20px;
.van-checkbox {
overflow: hidden;
.van-icon-success {
color: $white;
display: block;
line-height: 1;
font-size: 12px;
text-align: center;
pointer-events: none;
border: 1px solid #aaa;
width: $van-checkbox-size;
height: $van-checkbox-size;
box-sizing: border-box;
&::before {
margin: 0 auto;
line-height: $van-checkbox-size;
}
}
&__input {
position: relative;
height: $van-checkbox-size;
margin-right: 15px;
float: left;
}
&__control {
position: absolute;
top: 0;
left: 0;
opacity: 0;
margin: 0;
width: $van-checkbox-size;
height: $van-checkbox-size;
}
&__label {
display: block;
margin-left: 37px;
line-height: $van-checkbox-size;
}
&--round {
.van-icon-success {
border-radius: 100%;
}
}
&__control:checked + .van-icon-success {
border-color: $green;
background-color: $green;
}
&--disabled {
.van-icon-success {
border-color: #d1dbe5;
background-color: transparent;
}
.van-checkbox__control:checked + .van-icon-success {
border-color: #d1dbe5;
background-color: #d1dbe5;
}
}
}