- 底部导航去掉悬浮圆角胶囊,改为贴底全宽 + 顶部细分隔线 + 安全区 - 修复设备操作竖排:补 .ops-row display:flex - 顶部设备切换条改为卡片(复用 .card 阴影),删除占位说明文案 - 同步调整页面底部留白与 AGENTS.md 约定
70 lines
3.0 KiB
Plaintext
70 lines
3.0 KiB
Plaintext
/* 自定义 tabBar:贴底全宽,左右与底部无缝贴合 */
|
|
.tab-bar {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
background: #ffffff;
|
|
border-top: 1rpx solid rgba(20, 30, 60, 0.06);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.tab-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 104rpx;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #9aa3b2;
|
|
}
|
|
|
|
.tab-item.active {
|
|
color: #07c160;
|
|
}
|
|
|
|
.tab-label {
|
|
margin-top: 4rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ico {
|
|
width: 46rpx;
|
|
height: 46rpx;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: contain;
|
|
}
|
|
|
|
.ico-home {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.8 12 4l8.5 6.8'/%3E%3Cpath d='M5.8 9.8V20h12.4V9.8'/%3E%3Cpath d='M9.8 20v-5.4h4.4V20'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.tab-item.active .ico-home {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.8 12 4l8.5 6.8'/%3E%3Cpath d='M5.8 9.8V20h12.4V9.8'/%3E%3Cpath d='M9.8 20v-5.4h4.4V20'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.ico-grid {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.tab-item.active .ico-grid {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.ico-user {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c0-3.6 3.4-6 7.5-6s7.5 2.4 7.5 6'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.tab-item.active .ico-user {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c0-3.6 3.4-6 7.5-6s7.5 2.4 7.5 6'/%3E%3C/svg%3E");
|
|
}
|