Skip to content

Commit 716c2d6

Browse files
authored
Merge pull request mxdi9i7#36 from mxdi9i7/trista/style
Trista/style
2 parents c19d1b8 + 3447875 commit 716c2d6

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

src/styles/style.scss

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.vant-ellipsis {
2+
overflow: hidden;
3+
white-space: nowrap;
4+
text-overflow: ellipsis;
5+
}
6+
7+
.vant-multi-ellipsis {
8+
display: -webkit-box;
9+
overflow: hidden;
10+
text-overflow: ellipsis;
11+
-webkit-box-orient: vertical;
12+
13+
&--l2 {
14+
-webkit-line-clamp: 2;
15+
}
16+
17+
&--l3 {
18+
-webkit-line-clamp: 3;
19+
}
20+
}
21+
22+
.vant-hairline {
23+
border: 0 solid #ebedf0;
24+
25+
&--top {
26+
border-top-width: 1px;
27+
}
28+
&--bottom {
29+
border-bottom-width: 1px;
30+
}
31+
&--left {
32+
border-left-width: 1px;
33+
}
34+
&--right {
35+
border-right-width: 1px;
36+
}
37+
&--top-bottom {
38+
border-top-width: 1px;
39+
border-bottom-width: 1px;
40+
}
41+
&--surround {
42+
border-width: 1px;
43+
}
44+
}
45+
46+
.vant-fade {
47+
visibility: visible;
48+
transition: all 0.3s ease-out;
49+
}
50+
51+
.vant-slide {
52+
visibility: visible;
53+
transition: all 0.3s ease-out;
54+
55+
&-up {
56+
transform: translateY(-100%);
57+
}
58+
59+
&-down {
60+
transform: translateY(100%);
61+
}
62+
63+
&-left {
64+
transform: translateX(100%);
65+
}
66+
67+
&-right {
68+
transform: translateX(-100%);
69+
}
70+
}

0 commit comments

Comments
 (0)