mirror of
https://github.com/youzan/vant.git
synced 2025-12-14 02:00:43 +08:00
fix: can't custom hairline border color (#4939)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@import '../var';
|
||||
|
||||
.hairline-common() {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
@@ -5,23 +7,23 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hairline(@border-color: #ebedf0) {
|
||||
.hairline(@color: @border-color) {
|
||||
.hairline-common();
|
||||
|
||||
top: -50%;
|
||||
right: -50%;
|
||||
bottom: -50%;
|
||||
left: -50%;
|
||||
border: 0 solid @border-color;
|
||||
border: 0 solid @color;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
.hairline-bottom(@border-color: #ebedf0, @left: 0) {
|
||||
.hairline-bottom(@color: @border-color, @left: 0) {
|
||||
.hairline-common();
|
||||
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: @left;
|
||||
border-bottom: 1px solid @border-color;
|
||||
border-bottom: 1px solid @color;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user