materialTab.sass
819 Bytes
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
/* packageStudy/pages/sceneMarket/components/materialTab/materialTab.wxss */
.scroll {
width: 100%;
height: 88rpx;
border-bottom: 1rpx solid #eff0f2;
background: #ffffff;
box-shadow: inset 0 -2rpx 0 0 #0000001a;
display: flex;
.tab-item {
display: flex;
align-items: center;
justify-content: center;
width: fit-content;
height: 100%;
flex-shrink: 0;
font-size: 32rpx;
color: #666;
text-align: center;
position: relative;
padding: 0 24rpx;
transition: all .15s;
}
.active {
color: #2C66F7;
font-weight: 500;
&::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
content: '';
width: 40rpx;
height: 8rpx;
border-radius: 596rpx;
background: #2C66F7;
}
}
}