- 重写 tokens.scss:校准 10 级字号 + 4 结构 token 匹配实际设计值 - 更新 mixins.scss:4 个 mixin 引用 token 替代硬编码 - 68 SCSS 文件全面迁移:font-size px → var(--tk-font-*),辅助文字色 → var(--tk-text-secondary) - 清理 12 个页面的本地 mixin 重复定义 - elder-mode.scss 从 530 行缩减至 ~120 行:删除所有字号/颜色覆写,仅保留结构布局 - Token 覆盖率:634 引用 / 仅 3 个特殊硬编码值(72px/80px/21px) 关怀模式通过 CSS 变量级联自动生效,消除"打地鼠"问题。
140 lines
2.1 KiB
SCSS
140 lines
2.1 KiB
SCSS
@import '../../../styles/variables.scss';
|
|
@import '../../../styles/mixins.scss';
|
|
|
|
.detail-page {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
padding: 24px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.detail-card {
|
|
background: $card;
|
|
border-radius: $r;
|
|
padding: 28px;
|
|
margin-bottom: 20px;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.detail-title {
|
|
@include section-title;
|
|
font-size: var(--tk-font-num-lg);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid $bd-l;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
}
|
|
|
|
.detail-value {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
|
|
&.status-completed { color: $acc; }
|
|
&.status-overdue { color: $dan; }
|
|
&.status-pending { color: $wrn; }
|
|
}
|
|
|
|
.countdown {
|
|
margin-top: 12px;
|
|
padding: 12px 16px;
|
|
background: $wrn-l;
|
|
border-radius: $r-sm;
|
|
}
|
|
|
|
.countdown-urgent {
|
|
background: $dan-l;
|
|
}
|
|
|
|
.countdown-text {
|
|
font-size: var(--tk-font-h2);
|
|
color: $wrn;
|
|
font-weight: bold;
|
|
|
|
.countdown-urgent & { color: $dan; }
|
|
}
|
|
|
|
.detail-desc {
|
|
margin-top: 16px;
|
|
padding: 20px;
|
|
background: $bd-l;
|
|
border-radius: $r-sm;
|
|
}
|
|
|
|
.detail-desc-text {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.submit-card {
|
|
background: $card;
|
|
border-radius: $r;
|
|
padding: 28px;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.section-title {
|
|
@include section-title;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.submit-textarea {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
font-size: var(--tk-font-body-lg);
|
|
color: $tx;
|
|
background: $bg;
|
|
border-radius: $r-sm;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
outline: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.submit-btn {
|
|
background: $pri;
|
|
border-radius: $r;
|
|
padding: 24px;
|
|
text-align: center;
|
|
|
|
&:active {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.submit-btn-text {
|
|
font-size: var(--tk-font-num);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.loading-state,
|
|
.empty-state {
|
|
@include flex-center;
|
|
padding: 120px 0;
|
|
}
|
|
|
|
.loading-text,
|
|
.empty-text {
|
|
font-size: var(--tk-font-body-lg);
|
|
color: var(--tk-text-secondary);
|
|
}
|