navBar.less
1.51 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@charset "UTF-8";
.nav-bar {
position: fixed;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 44px;
background-color: transparent;
.box {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
width: 690px;
height: 100%;
margin: 0 auto;
.left-box {
.back {
width: 38px;
height: 38px;
.img {
display: block;
width: 38px;
height: 38px;
}
}
&.visibility {
visibility: hidden;
width: 38px;
height: 38px;
}
}
.center-box {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
pointer-events: none;
.title {
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
color: #333333;
font-size: 36px;
font-weight: 600;
width: 500px;
height: 44px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.right-box {
display: flex;
align-items: center;
.func-box {
display: flex;
align-items: center;
.img {
display: block;
width: 38px;
height: 38px;
& + .text {
margin-left: 10px;
}
}
.text {
color: #999999;
font-size: 28px;
font-weight: 400;
& + .symbol-img {
margin-left: 10px;
}
}
.symbol-img {
display: block;
width: 10px;
height: 10px;
}
& + .func-box {
margin-left: 20px;
}
}
&.visibility {
visibility: hidden;
width: 38px;
height: 38px;
}
}
}
}