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
+3 -12
View File
@@ -1,7 +1,4 @@
@import './common/var.css';
@import './mixins/border_retina.css';
@import './cell.css';
@import './icon.css';
.van-field {
@@ -44,7 +41,7 @@
&--disabled {
.van-field__control {
color: $c-gray-dark;
color: $gray-dark;
}
}
@@ -52,7 +49,7 @@
.van-field__control {
&,
&::placeholder {
color: $c-red;
color: $red;
}
}
}
@@ -64,17 +61,12 @@
&::after {
border-radius: 2px;
@mixin border-retina (top, right, bottom, left);
}
&:last-child::after {
@mixin border-retina (bottom);
}
}
&--autosize {
.van-field__control {
min-height: 0px;
min-height: 0;
}
}
@@ -93,7 +85,6 @@
display: block;
width: 100%;
resize: none;
outline: 0;
}
&__icon {