dapaijizhang3/components/custom-tabbar/custom-tabbar.wxss

54 lines
930 B
Plaintext

/* components/custom-tabbar/custom-tabbar.wxss */
.tabbar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 100rpx;
background: #1A1A1A;
border-top: 1rpx solid rgba(212, 175, 55, 0.2);
display: flex;
align-items: center;
justify-content: space-around;
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.8);
z-index: 999;
padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10rpx 0;
transition: all 0.3s ease;
}
.tabbar-item.active {
transform: translateY(-4rpx);
}
.tabbar-icon {
width: 48rpx;
height: 48rpx;
margin-bottom: 6rpx;
}
.tabbar-icon image {
width: 100%;
height: 100%;
}
.tabbar-text {
font-size: 22rpx;
color: #B0B0B0;
transition: all 0.3s ease;
}
.tabbar-item.active .tabbar-text {
font-weight: 600;
font-size: 24rpx;
color: #D4AF37;
}