style: --van-border-color should affect hairline (#9751)

This commit is contained in:
neverland 2021-10-29 16:35:28 +08:00 committed by GitHub
parent 112215a74d
commit 1c630fb87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
pointer-events: none;
}
.hairline(@color: @border-color) {
.hairline(@color: var(--van-border-color)) {
.hairline-common();
top: -50%;
@ -18,7 +18,7 @@
transform: scale(0.5);
}
.hairline-top(@color: @border-color, @left: 0, @right: 0) {
.hairline-top(@color: var(--van-border-color), @left: 0, @right: 0) {
.hairline-common();
top: 0;
@ -28,7 +28,7 @@
transform: scaleY(0.5);
}
.hairline-bottom(@color: @border-color, @left: 0, @right: 0) {
.hairline-bottom(@color: var(--van-border-color), @left: 0, @right: 0) {
.hairline-common();
right: @right;