index.wxss
1.39 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
.nav-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
background: transparent;
}
.status-bar {
width: 100%;
}
.nav-bar-content {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.nav-bar-left {
display: flex;
align-items: center;
flex-shrink: 0;
z-index: 2;
}
.nav-bar-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 8px;
margin-right: 4px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.nav-bar-btn:active {
background: rgba(255, 255, 255, 0.4);
transform: scale(0.95);
}
/* 返回按钮箭头 */
.back-icon {
width: 10px;
height: 10px;
margin-left: 4px;
border-left: 1.5px solid #fff;
border-bottom: 1.5px solid #fff;
transform: rotate(45deg);
}
/* 首页图标 */
.home-icon {
font-size: 20px;
font-weight: 600;
line-height: 1;
}
.nav-bar-title {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
font-weight: bold;
max-width: 60%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
z-index: 1;
}
.nav-bar-right {
display: flex;
align-items: center;
flex-shrink: 0;
min-width: 32px;
justify-content: flex-end;
z-index: 2;
}
.nav-bar-placeholder {
width: 100%;
}