You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
2.6 KiB
124 lines
2.6 KiB
.tabbar { |
|
padding: 0 0 calc(env(safe-area-inset-bottom) + 12rpx); |
|
display: flex; |
|
justify-content: space-between; |
|
background-color: #fff; |
|
box-shadow: 0rpx 3rpx 27rpx 0rpx rgba(40, 48, 49, 0.1); |
|
.custom { |
|
flex-shrink: 0; |
|
position: relative; |
|
width: 94rpx; |
|
height: 64rpx; |
|
.add { |
|
position: absolute; |
|
top: -42rpx; |
|
width: 94rpx; |
|
height: 94rpx; |
|
} |
|
.popup-tip { |
|
padding: 22rpx 48rpx; |
|
position: absolute; |
|
top: -50rpx; |
|
left: 50%; |
|
transform: translate(-50%, -100%); |
|
border-radius: 16rpx; |
|
background-color: rgba(20, 21, 21, 0.76); |
|
.content { |
|
text-align: center; |
|
font-size: 28rpx; |
|
color: #fff; |
|
white-space: nowrap; |
|
line-height: 32rpx; |
|
.plus { |
|
font-size: 52rpx; |
|
font-weight: bold; |
|
} |
|
} |
|
.pt-footer { |
|
margin-top: 16rpx; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
gap: 24rpx; |
|
.cancel { |
|
padding: 8rpx 28rpx; |
|
font-size: 24rpx; |
|
color: rgba(255, 255, 255, 1); |
|
} |
|
.ok { |
|
padding: 8rpx 28rpx; |
|
font-size: 24rpx; |
|
color: rgba(20, 21, 21, 1); |
|
line-height: 32rpx; |
|
border-radius: 80rpx; |
|
background-color: #fff; |
|
} |
|
} |
|
&::after { |
|
position: absolute; |
|
content: ""; |
|
bottom: -10rpx; |
|
left: 50%; |
|
transform: translateX(-50%); |
|
width: 0; |
|
height: 0; |
|
border-style: solid; |
|
border-width: 12rpx 12rpx 0 12rpx; |
|
border-color: rgba(20, 21, 21, 0.76) transparent transparent transparent; |
|
} |
|
} |
|
} |
|
.tab-item { |
|
position: relative; |
|
padding-top: 10rpx; |
|
flex: 1; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
|
|
.icon-wrap { |
|
position: relative; |
|
width: 48rpx; |
|
height: 48rpx; |
|
.icon { |
|
display: block; |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.icon-active { |
|
display: none; |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.dot { |
|
position: absolute; |
|
top: 0; |
|
right: 0; |
|
width: 10rpx; |
|
height: 10rpx; |
|
border-radius: 50%; |
|
background-color: #ED4F39; |
|
} |
|
} |
|
.name { |
|
margin-top: 8rpx; |
|
font-size: 22rpx; |
|
color: rgba(20, 21, 21, 1); |
|
line-height: 21rpx; |
|
} |
|
&.active { |
|
.icon-wrap { |
|
.icon { |
|
display: none; |
|
} |
|
.icon-active { |
|
display: block; |
|
} |
|
} |
|
.name { |
|
color: rgba(0, 180, 197, 1); |
|
} |
|
} |
|
} |
|
}
|
|
|