navigationBar.wxss
1.67 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
/* components/navigationBar/navigationBar.wxss */
.navigation-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 99;
box-shadow: 0 var(--fontSize1) 0 0 #E9E9E9;
background-color: #fff;
/* padding-top: constant(safe-area-inset-top); */
/* padding-top: env(safe-area-inset-top); */
/* padding-top: 40px; */
}
.navigation-bar-box {
position: relative;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
font-size: var(--fontSize34);
}
.navigation-bar-titleText {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize34);
color: #2D2D2E;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
box-sizing: border-box;
text-align: center;
}
.back-box {
width: var(--fontSize160);
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.back {
position: absolute;
left: var(--fontSize20);
top: 50%;
transform: translateY(-50%);
width: var(--fontSize36);
height: var(--fontSize36);
}
.menu-box {
width: var(--fontSize160);
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.menu-box .menu-class {
position: absolute;
left: var(--fontSize20);
top: 50%;
transform: translateY(-50%);
width: var(--fontSize40);
height: var(--fontSize40);
}
@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
.navigation-bar-box {
font-size: var(--fontSize23);
}
.navigation-bar-titleText {
font-size: var(--fontSize23);
}
.back {
width: var(--fontSize18);
height: var(--fontSize18);
}
.menu-box .menu-class {
width: var(--fontSize40);
height: var(--fontSize40);
}
}