40 lines
666 B
Plaintext
40 lines
666 B
Plaintext
/* 自定义底部导航栏 — 模拟系统 TabBar 外观 */
|
|
.tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
height: 100rpx;
|
|
background: #ffffff;
|
|
border-top: 1rpx solid #eeeeee;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
z-index: 50;
|
|
}
|
|
|
|
.tab-bar-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
gap: 4rpx;
|
|
}
|
|
|
|
.tab-bar-icon {
|
|
width: 44rpx;
|
|
height: 44rpx;
|
|
}
|
|
|
|
.tab-bar-label {
|
|
font-size: 20rpx;
|
|
color: #8b8b8b;
|
|
}
|
|
|
|
.tab-bar-item--active .tab-bar-label {
|
|
color: #0052d9;
|
|
font-weight: 500;
|
|
}
|