[improvement] Picker: prevent style be override by base.css (#4136)

This commit is contained in:
neverland
2019-08-16 21:15:38 +08:00
committed by GitHub
parent a6b256aa01
commit 34d2395ad3
11 changed files with 49 additions and 38 deletions
+14 -4
View File
@@ -1,14 +1,21 @@
@import './mixins/hairline';
[class*='van-hairline'] {
position: relative;
&::after {
.hairline();
}
}
.van-hairline {
&--top,
&--left,
&--right,
&--bottom,
&--surround,
&--top-bottom {
position: relative;
}
&--top::after {
border-top-width: 1px;
}
@@ -25,8 +32,11 @@
border-bottom-width: 1px;
}
&--top-bottom::after {
border-width: 1px 0;
&,
&-unset {
&--top-bottom::after {
border-width: 1px 0;
}
}
&--surround::after {