vant components

This commit is contained in:
cookfront
2017-04-19 17:46:40 +08:00
parent 06e333eb3e
commit 5e7ea19b1a
42 changed files with 2382 additions and 2 deletions
@@ -0,0 +1,20 @@
$border-poses: top, right, bottom, left;
@define-mixin border-retina $poses: $border-poses, $border-retina-color: #e5e5e5 {
content: '';
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
width: 200%;
height: 200%;
transform: scale(.5);
transform-origin: left top;
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
pointer-events: none;
@each $pos in $poses {
border-$(pos): 1px solid $border-retina-color;
}
}
@@ -0,0 +1,7 @@
@define-mixin clearfix {
&::after {
content: '';
display: table;
clear: both;
}
}
@@ -0,0 +1,7 @@
@define-mixin multi-ellipsis $lines {
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
}