[breaking change] rebuild style struct (#2021)

This commit is contained in:
neverland
2018-11-03 21:08:06 +08:00
committed by GitHub
parent a5576762d8
commit 11ce2a602f
165 changed files with 1371 additions and 4729 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export default {
};
</script>
<style lang="postcss">
<style lang="less">
.demo-checkbox {
.van-checkbox {
margin: 10px 0 0 20px;
+65
View File
@@ -0,0 +1,65 @@
@import '../style/var';
.van-checkbox {
overflow: hidden;
user-select: none;
&__icon,
&__label {
display: inline-block;
vertical-align: middle;
line-height: @van-checkbox-size;
}
&__icon {
.van-icon {
font-size: 12px;
color: transparent;
text-align: center;
line-height: inherit;
border: 1px solid @gray-light;
width: @van-checkbox-size;
height: @van-checkbox-size;
box-sizing: border-box;
transition: .2s;
}
&--round {
.van-icon {
border-radius: 100%;
}
}
&--checked {
.van-icon {
color: @white;
border-color: @blue;
background-color: @blue;
}
}
&--disabled {
.van-icon {
color: @background-color;
border-color: @border-color;
background-color: currentColor;
}
}
&--disabled&--checked {
.van-icon {
border-color: @border-color;
background-color: @border-color;
}
}
}
&__label {
margin-left: 10px;
&--left {
float: left;
margin: 0 10px 0 0;
}
}
}