6176f2c341
- records: 底部列表与月份选择器联动,新增 [本月|最近] 分段控件;标题/空态随模式切换 - leaderboard: 领奖台布局(冠军居中+皇冠)、次数标注于底座且三档水平对齐;头像 cloud:// 批量预解析提速(云函数需重新部署) - index/timer: 主色底图标改白色变体修复隐形;目标数字按微信字体缩放补偿真机遮挡 - settings: 配色方案横滑渐变色卡;头像上传前压缩至 200px - theme: 新增 teal 主题;暗黑背景统一对齐 - 圆形头像双保险(image 自身 border-radius)修复月/年榜方图 注: cloudfunctions/leaderboard 改动须在开发者工具重新部署才生效。
74 lines
1.4 KiB
Plaintext
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, #26262B);
|
|
box-shadow:
|
|
0 8rpx 32rpx rgba(0, 0, 0, 0.5),
|
|
0 2rpx 8rpx rgba(0, 0, 0, 0.3);
|
|
}
|
|
}
|