Files
code-bang/frontend/miniapp/custom-tab-bar/index.wxss
T
2026-10-08 16:28:21 +08:00

40 lines
845 B
Plaintext

.custom-tab-bar-wrapper {
display: flex;
flex-direction: column;
align-items: center;
transition: color 0.2s ease;
}
.custom-tab-bar-wrapper .text {
font-size: 20rpx;
line-height: 28rpx;
margin-top: 4rpx;
}
/* tab 图标容器:红点定位基准 */
.tab-icon-wrap {
position: relative;
}
/* 消息tab未读红点 */
.unread-dot {
position: absolute;
top: -2rpx;
right: -14rpx;
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background: #fa5151;
border: 2rpx solid #ffffff;
box-sizing: content-box;
}
/* 底部导航整体:顶部细分隔线 + 安全区自适应 */
.custom-tab-bar {
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(20rpx);
-webkit-backdrop-filter: blur(20rpx);
box-shadow: 0 -2rpx 20rpx rgba(29, 33, 41, 0.05);
border-top: 1rpx solid rgba(229, 230, 235, 0.6);
}