Files
wx_pbzc/custom-tab-bar/index.wxss
T
lc 1eff3d60c4 fix(ui): 多项 UI 修复 — 弹窗遮挡/按钮可见性/暗黑闪烁/云函数版本
- 计划编辑弹窗移出 .container 避免 fixed 降级 + 修复滚动
- dock bottom 40rpx→8rpx 紧贴底部, sheet padding 同步调整
- 计划编辑器取消/恢复默认按钮可见性修复(bg 匹配容器)
- ui-btn--danger 按钮可见性修复
- 清除确认弹窗跟随暗黑模式切换
- icons.js build() 中 Fill 路径覆盖 outlined 路径修复
- plan.js getPlanDay 忽略 customPlans 修复
- darkMode.js 冗余三元简化
- util.js fileToDataURI fallback 可读性提升
- theme.js: BASE_VARS 与 getThemeStyle 统一来源, 去 50ms navbar 延迟
- app.wxss: 移除 page transition 和 background-color 减少闪白
- 云函数 wx-server-sdk 版本统一 ~2.6.3, tts cloud.init 一致化
- 闪白问题: wx.setBackgroundColor 三层防护(onLaunch/applyThemeToPage/switchTab)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-10 09:40:04 +08:00

74 lines
1.4 KiB
Plaintext

.dock {
position: fixed;
bottom: calc(8rpx + env(safe-area-inset-bottom));
left: 50%;
transform: translateX(-50%);
width: calc(100% - 80rpx);
max-width: 600rpx;
z-index: 100;
}
.dock-inner {
display: flex;
align-items: center;
justify-content: space-around;
background: var(--card-bg, #FFFFFF);
border-radius: 100rpx;
padding: 12rpx 0;
box-shadow:
0 8rpx 32rpx rgba(0, 0, 0, 0.12),
0 2rpx 8rpx rgba(0, 0, 0, 0.06);
transition: background-color 0.3s ease;
}
.dock-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 8rpx 0;
transition: transform 0.2s ease;
}
.dock-item:active {
transform: scale(0.92);
}
.dock-icon {
width: 50rpx;
height: 50rpx;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
margin-bottom: 5rpx;
opacity: 0.7;
transition: opacity 0.2s ease;
}
.dock-text {
font-size: 23rpx;
color: var(--text-secondary, #999);
line-height: 1;
transition: color 0.2s ease;
}
.dock-item.active .dock-icon {
opacity: 1;
}
.dock-item.active .dock-text {
color: var(--primary, #FF6B35);
font-weight: 600;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
.dock-inner {
background: var(--card-bg, #1C1C1E);
box-shadow:
0 8rpx 32rpx rgba(0, 0, 0, 0.5),
0 2rpx 8rpx rgba(0, 0, 0, 0.3);
}
}