TabView.wxss
1.29 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
90
91
92
93
94
/* components/tabView/tabView.wxss */
.tab-box {
display: flex;
}
.tab {
width: 24%;
box-sizing: border-box;
text-align: center;
background: #f7f8fa;
position: relative;
z-index: 3;
}
.view {
width: 76%;
height: 100%;
position: relative;
background: #fff;
}
.tab-item {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 116rpx;
font-size: 24rpx;
color: #707071;
box-sizing: border-box;
padding: 0 14rpx;
transition: all .5s;
background-color: #f7f8fa;
position: relative;
}
.tab-item .text {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
.active {
font-weight: 500;
background: #fff;
position: sticky;
top: 0;
color: #2D2D2E;
}
.active::after {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 6rpx;
height: 40rpx;
border-radius: 0 596rpx 596rpx 0;
background: #2C66F7;
content: '';
}
@keyframes show-border {
0% {
height: 0;
}
100% {
height: 60rpx;
}
}
.refresherEnabled {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
}
.content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}