good-tab.wxss
980 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* components/Tab/Tab.wxss */
@import "/assets/style/common.wxss";
.goods-tabs-container {
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
padding: 16rpx 24rpx 0;
}
.fixed-tabs, .dynamic-tabs {
white-space: nowrap;
padding: 8rpx 0;
}
.fixed-tabs .tab-item {
display: inline-flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #5E6579;
font-weight: 500;
margin-right: 32rpx;
}
.fixed-tabs .tab-item.active {
color: #FB8A32;
font-size: 28rpx;
}
.fixed-tabs .underline {
display: inline-block;
width: 36rpx;
height: 6rpx;
background-color: #FB8A32;
border-radius: 6rpx;
}
.dynamic-tabs .tab-item{
display: inline-block;
padding: 10rpx 24rpx;
margin-right: 16rpx;
border-radius: 24rpx;
font-size: 22rpx;
color: #666666;
background-color: #EBEFF3;
}
.dynamic-tabs .tab-item.active {
color: #FB8A32;
background-color: #FFF3EA;
}