forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.less
More file actions
64 lines (55 loc) · 1.04 KB
/
index.less
File metadata and controls
64 lines (55 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@import '../style/var';
.van-divider {
display: flex;
align-items: center;
margin: @divider-margin;
color: @divider-text-color;
font-size: @divider-font-size;
line-height: @divider-line-height;
border-color: @divider-border-color;
border-style: solid;
border-width: 0;
&::before,
&::after {
display: block;
flex: 1;
box-sizing: border-box;
height: 1px;
border-color: inherit;
border-style: inherit;
border-width: @border-width-base 0 0;
}
&::before {
content: '';
}
&--hairline {
&::before,
&::after {
transform: scaleY(.5);
}
}
&--dashed {
border-style: dashed;
}
&--content-center,
&--content-left,
&--content-right {
&::before {
margin-right: @divider-content-padding;
}
&::after {
margin-left: @divider-content-padding;
content: '';
}
}
&--content-left {
&::before {
max-width: @divider-content-left-width;
}
}
&--content-right {
&::after {
max-width: @divider-content-right-width;
}
}
}