index.wxss
728 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
.sidebar-item {
height: 88rpx;
line-height: 88rpx;
/* background: rgba(204, 206, 209, 0.20); */
}
.inner-text {
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFangSC-Medium;
font-size: 24rpx;
color: #2D2D33;
text-align: center;
padding-left: 10rpx;
line-height: 30rpx;
height: 100%;
}
.sidebar-item-active {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 24rpx;
color: #5850FF;
background: #fff;
}
.sidebar-item-active:after {
display: block;
content: "";
width: 6rpx;
height: 40rpx;
background: #5850FF;
border-radius: 0 4rpx 4rpx 0;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}