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
67 lines (56 loc) · 1.07 KB
/
index.less
File metadata and controls
67 lines (56 loc) · 1.07 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
65
66
67
@import '../style/var';
.van-nav-bar {
position: relative;
height: @nav-bar-height;
line-height: @nav-bar-height;
text-align: center;
background-color: @nav-bar-background-color;
user-select: none;
.van-icon {
color: @nav-bar-icon-color;
vertical-align: middle;
}
&__arrow {
min-width: 1em;
font-size: @nav-bar-arrow-size;
+ .van-nav-bar__text {
margin-left: -20px;
padding-left: 25px;
}
}
&--fixed {
position: fixed;
top: 0;
left: 0;
width: 100%;
}
&__title {
max-width: 60%;
margin: 0 auto;
color: @nav-bar-title-text-color;
font-weight: 500;
font-size: @nav-bar-title-font-size;
}
&__left,
&__right {
position: absolute;
bottom: 0;
font-size: @font-size-md;
}
&__left {
left: @padding-md;
}
&__right {
right: @padding-md;
}
&__text {
display: inline-block;
margin: 0 -@padding-md;
padding: 0 @padding-md;
color: @nav-bar-text-color;
vertical-align: middle;
&:active {
background-color: @active-color;
}
}
}