Files
wx_pbzc/pages/records/records.wxss
T
lc 89d93c8155 refactor(ui): 12-point UI polish and bugfixes
Bug fixes:
- #1 Remove duplicate month label from calendar-heatmap (shown twice in records)
- #2 Extract shared .modal-overlay to app.wxss (was duplicated in index/records)

UX improvements:
- #3 Add long-press hint to history list in records page
- #4 Add drag handle + catchtouchmove to picker modal
- #5 Extend timer auto-navigate-back from 1.5s to 3s
- #6 Add clear data option in settings with confirmation dialog

Visual/code polish:
- #7 Remove 4 unused @keyframes (shimmer, spin) and 5 unused .icon classes
- #8 Tab bar inactive colors: hardcoded #888/#666 -> var(--text-secondary)
- #10 Split progress-ring observer to avoid redundant setData on size/color changes
- #12 Remove meaningless Math.min(planDay, 99) cap
2026-06-04 16:34:22 +08:00

230 lines
3.4 KiB
Plaintext

.stats {
display: flex;
justify-content: space-around;
text-align: center;
padding: 32rpx 16rpx;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
.stat-emoji {
font-size: 28rpx;
width: 56rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;
margin-bottom: 4rpx;
}
.stat-num {
font-size: 36rpx;
font-weight: 700;
color: var(--primary);
animation: popIn 0.5s ease;
text-align: center;
}
.stat-label {
font-size: 22rpx;
color: var(--text-secondary);
margin-top: 4rpx;
text-align: center;
}
/* ---- calendar ---- */
.calendar-section {
padding: 24rpx 24rpx 28rpx;
}
.month-picker {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
}
.month-title-wrap {
display: flex;
align-items: center;
gap: 10rpx;
}
.month-emoji {
font-size: 28rpx;
}
.month-title {
font-size: 28rpx;
font-weight: 600;
color: var(--text);
}
.month-arrow {
font-size: 44rpx;
color: var(--primary);
padding: 0 20rpx;
font-weight: 300;
transition: opacity 0.15s;
}
.month-arrow:active {
opacity: 0.5;
}
/* ---- history ---- */
.history-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8rpx;
}
.history-header .section-title {
margin-bottom: 0;
}
.history-hint {
font-size: 22rpx;
color: #CCC;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 60rpx 0;
}
.empty-emoji {
font-size: 64rpx;
margin-bottom: 16rpx;
animation: float 3s ease-in-out infinite;
}
.empty-text {
color: #CCC;
font-size: 28rpx;
margin-bottom: 8rpx;
}
.empty-sub {
font-size: 24rpx;
color: #E0E0E0;
}
.history-list {
margin-top: 8rpx;
}
.history-item {
display: flex;
align-items: center;
padding: 20rpx 0;
border-bottom: 1rpx solid var(--border);
animation: cardIn 0.35s ease both;
}
.history-item:last-child {
border-bottom: none;
}
.history-left {
display: flex;
flex-direction: column;
flex: 1;
}
.history-date {
font-size: 28rpx;
color: var(--text);
}
.history-plan {
font-size: 22rpx;
color: var(--text-secondary);
margin-top: 4rpx;
}
.history-right {
display: flex;
align-items: center;
}
.history-duration {
font-size: 32rpx;
font-weight: 600;
color: var(--primary);
}
/* ---- day detail popup ---- */
.day-detail-modal {
width: 560rpx;
background: #fff;
border-radius: 28rpx;
padding: 48rpx 40rpx 36rpx;
animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
text-align: center;
}
.detail-date-row {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 36rpx;
}
.detail-emoji {
font-size: 32rpx;
margin-right: 10rpx;
line-height: 1;
}
.detail-date {
font-size: 34rpx;
font-weight: 700;
color: var(--text);
}
.detail-grid {
display: flex;
justify-content: space-around;
margin-bottom: 36rpx;
}
.detail-item {
display: flex;
flex-direction: column;
align-items: center;
}
.detail-num {
font-size: 36rpx;
font-weight: 700;
color: var(--primary);
margin-bottom: 6rpx;
}
.detail-label {
font-size: 22rpx;
color: var(--text-secondary);
}
.detail-close {
padding: 16rpx 0;
font-size: 28rpx;
color: var(--text-secondary);
border-top: 1rpx solid var(--border);
}
.history-icon {
font-size: 28rpx;
margin-right: 16rpx;
flex-shrink: 0;
line-height: 1;
}