mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 19:36:36 +08:00
* [Document] add english document of Checkbox * [Document] add english document of Field * [Document] add english document of NumberKeyboard * [bugfix] NumberKeyboard should not dispaly title when title is empty * [Document] add english document of PasswordInput * [Document] add english document of Radio * [document] add english document of Switch * [bugfix] remove redundent styles in english document * [Document] fix details * fix Switch test cases * [bugfix] Swipe shouid reinitialize when item changes * [new feature] ImagePreview reconstruct * [new feature] add Tabbar component * [bugfix] delete unnecessary style in sku
34 lines
719 B
CSS
34 lines
719 B
CSS
@import '../common/var.css';
|
|
|
|
$border-poses: top, right, bottom, left;
|
|
|
|
@define-mixin border-retina $poses: $border-poses, $border-retina-color: $gray-light {
|
|
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;
|
|
|
|
@each $pos in $poses {
|
|
border-$(pos): 1px solid $border-retina-color;
|
|
}
|
|
}
|
|
|
|
@define-mixin hairline $border-retina-color: $gray-light {
|
|
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;
|
|
} |