TabBar.wxss
1.13 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
/* components/TabBar/TabBar.wxss */
.tab {
position: relative;
height: var(--fontSize88);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #222222;
padding: 0 24rpx;
font-weight: 600;
}
.scroll {
height: var(--fontSize88);
box-sizing: border-box;
color: #222222;
width: 100%;
display: flex;
line-height: var(--fontSize88);
font-size: 0;
padding: 0 24rpx;
}
.active {
font-size: var(--fontSize34) !important;
color: #2C66F7;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize6);
border-radius: var(--fontSize6);
transition: all .25s;
}
.tab .tab-item {
text-align: center;
margin-right: 32rpx;
}
.scroll .tab-item {
width: fit-content;
min-width: var(--fontSize144);
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
margin-right: 32rpx;
}
.scroll .active::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 36rpx;
height: var(--fontSize6);
border-radius: var(--fontSize6);
background-color: #2C66F7;
content: '';
}