- 重写 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 变量级联自动生效,消除"打地鼠"问题。
186 lines
3.0 KiB
SCSS
186 lines
3.0 KiB
SCSS
@import '../../../../styles/variables.scss';
|
|
@import '../../../../styles/mixins.scss';
|
|
|
|
.followup-detail {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
padding: 24px;
|
|
padding-bottom: 120px;
|
|
}
|
|
|
|
.section {
|
|
background: $card;
|
|
border-radius: $r-lg;
|
|
padding: 28px;
|
|
margin-bottom: 20px;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.section-title {
|
|
@include section-title;
|
|
}
|
|
|
|
.task-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
|
|
&__title {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-num);
|
|
font-weight: 700;
|
|
color: $tx;
|
|
}
|
|
|
|
&__status {
|
|
font-size: var(--tk-font-h2);
|
|
padding: 6px 16px;
|
|
border-radius: $r;
|
|
font-weight: 500;
|
|
|
|
&--pending { background: $wrn-l; color: $wrn; }
|
|
&--in_progress { background: $pri-l; color: $pri; }
|
|
&--completed { background: $acc-l; color: $acc; }
|
|
&--overdue { background: $dan-l; color: $dan; }
|
|
&--cancelled { background: $bd-l; color: $tx3; }
|
|
}
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: var(--tk-font-body);
|
|
color: $tx3;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-template {
|
|
margin-top: 16px;
|
|
padding: 16px;
|
|
background: $bd-l;
|
|
border-radius: $r;
|
|
|
|
&__label {
|
|
font-size: var(--tk-font-body);
|
|
color: $tx2;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
&__text {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
line-height: 1.6;
|
|
}
|
|
}
|
|
|
|
.record-item {
|
|
padding: 20px 0;
|
|
border-bottom: 1px solid $bd-l;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
&__date {
|
|
font-size: var(--tk-font-body);
|
|
color: $tx3;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
&__text {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
|
|
.start-btn {
|
|
text-align: center;
|
|
padding: 16px;
|
|
background: $pri;
|
|
border-radius: $r;
|
|
margin-bottom: 24px;
|
|
color: $card;
|
|
font-size: var(--tk-font-body-lg);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
font-weight: 500;
|
|
display: block;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-textarea {
|
|
width: 100%;
|
|
min-height: 160px;
|
|
background: $bd-l;
|
|
border-radius: $r;
|
|
padding: 16px 20px;
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
box-sizing: border-box;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.form-date {
|
|
width: 100%;
|
|
padding: 16px 20px;
|
|
background: $bd-l;
|
|
border-radius: $r;
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.submit-btn {
|
|
background: $pri;
|
|
border-radius: $r;
|
|
padding: 20px;
|
|
text-align: center;
|
|
margin-top: 16px;
|
|
|
|
&--disabled {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&__text {
|
|
font-size: var(--tk-font-body-lg);
|
|
color: $card;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.error-text {
|
|
text-align: center;
|
|
padding: 80px 32px;
|
|
color: $tx3;
|
|
font-size: var(--tk-font-body-lg);
|
|
}
|