vant-css: use hairline classes instead of mixins

This commit is contained in:
陈嘉涵
2017-09-05 10:50:17 +08:00
parent 99f712104e
commit 9dd8a93067
63 changed files with 414 additions and 466 deletions
+11 -6
View File
@@ -10,10 +10,9 @@
box-sizing: border-box;
font-size: 16px;
text-align: center;
outline: 0;
-webkit-appearance: none;
&::after {
&::before {
content: " ";
position: absolute;
top: 0;
@@ -21,11 +20,11 @@
right: 0;
bottom: 0;
opacity: 0;
background-color: #000;
background-color: $black;
border-radius: inherit; /* inherit parent's border radius */
}
&:not(.is-disabled):active::after {
&:not(.is-disabled):active::before {
opacity: .3;
}
@@ -39,7 +38,7 @@
border: 1px solid $button-default-border-color;
&:active {
color: $c-gray-dark;
color: $gray-dark;
}
}
@@ -73,6 +72,12 @@
font-size: 12px;
}
&--loading {
.van-button__text {
display: none;
}
}
/* mini图标默认宽度50px,文字不能超过4个 */
&--mini {
display: inline-block;
@@ -108,7 +113,7 @@
background-color: $bottom-action-button-default-background-color;
&:active {
color: #fff;
color: $white;
}
&.van-button--primary {