TabBar.wxss
1.33 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
/* components/TabBar/TabBar.wxss */
.tab {
height: var(--fontSize88);
margin-top: var(--fontSize14);
line-height: var(--fontSize88);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #5A5E66;
border-bottom: var(--fontSize1) solid #F2F3F5;
}
.scroll {
height: var(--fontSize88);
margin-top: var(--fontSize14);
box-sizing: border-box;
color: #5A5E66;
width: 100%;
display: flex;
line-height: var(--fontSize88);
font-size: 0;
}
.active {
/* font-size: var(--fontSize32); */
font-weight: 600;
color: #347BFF;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize4);
border-radius: var(--fontSize2) var(--fontSize2) 0 0;
transition: all .25s;
}
.tab .tab-item {
text-align: center;
}
.tab-item .text-item {
height: 38rpx;
display: flex;
align-items: center;
justify-content: center;
}
.scroll .tab-item {
width: fit-content;
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
padding: 0 var(--fontSize24);
}
.scroll .tab-item .text-item {
margin-top: 20rpx;
}
.scroll .active::after {
position: absolute;
bottom: 1rpx;
left: 50%;
transform: translateX(-50%);
width: 64rpx;
height: var(--fontSize4);
background-color: #347BFF;
content: '';
}