mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
34 lines
700 B
Plaintext
34 lines
700 B
Plaintext
@import '../var.pcss';
|
|
|
|
$border-poses: top, right, bottom, left;
|
|
|
|
@define-mixin border-retina $poses: $border-poses, $border-retina-color: $border-color {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
left: -50%;
|
|
right: -50%;
|
|
bottom: -50%;
|
|
transform: scale(0.5);
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
|
|
@each $pos in $poses {
|
|
border-$(pos): 1px solid $border-retina-color;
|
|
}
|
|
}
|
|
|
|
@define-mixin hairline $border-retina-color: $border-color {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 200%;
|
|
height: 200%;
|
|
transform: scale(.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
border: 0 solid $border-retina-color;
|
|
}
|