- 新增 $white 语义变量 + --tk-font-display Token - 44 处 #fff → $white,2 处 background: #fff → $card - 14 处 border-radius 硬编码统一为 $r-xs/$r-lg/$r - 3 处 TSX inline 颜色提取为 SCSS 类(exchange/orders/action-inbox) - ErrorBoundary 重构:6 个 inline style → SCSS 类 + Design Token - 2 处离调色板颜色修正(#0284C7→$tx2, #94A3B8→$tx3) - 2 处静默 catch 块添加状态清理(article/health) - 趋势页补 Loading/EmptyState;咨询页 GuestGuard 统一 - 4 处 #FFFFFF → $white(mixins/index/exchange/variables)
148 lines
2.3 KiB
SCSS
148 lines
2.3 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 {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-num-lg);
|
|
font-weight: bold;
|
|
color: $tx;
|
|
display: block;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid $bd-l;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.detail-value {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
text-align: right;
|
|
flex: 1;
|
|
margin-left: 24px;
|
|
}
|
|
|
|
.indicators-card {
|
|
background: $card;
|
|
border-radius: $r;
|
|
padding: 28px;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.section-title {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-num);
|
|
font-weight: bold;
|
|
color: $tx;
|
|
display: block;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.indicator-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 0;
|
|
border-bottom: 1px solid $bd-l;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.indicator-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.indicator-name {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.indicator-value {
|
|
font-size: var(--tk-font-num);
|
|
font-weight: bold;
|
|
color: $tx;
|
|
@include serif-number;
|
|
}
|
|
|
|
.indicator-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.indicator-ref {
|
|
font-size: var(--tk-font-body);
|
|
color: var(--tk-text-secondary);
|
|
margin-bottom: 4px;
|
|
@include serif-number;
|
|
}
|
|
|
|
.indicator-status {
|
|
font-size: var(--tk-font-h2);
|
|
font-weight: bold;
|
|
padding: 4px 12px;
|
|
border-radius: $r;
|
|
|
|
&.normal {
|
|
color: $tx3;
|
|
background: $bd-l;
|
|
}
|
|
|
|
&.high {
|
|
color: $dan;
|
|
background: $dan-l;
|
|
}
|
|
|
|
&.low {
|
|
color: $dan;
|
|
background: $dan-l;
|
|
}
|
|
}
|
|
|
|
.loading-state,
|
|
.empty-state {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 120px 0;
|
|
}
|
|
|
|
.loading-text,
|
|
.empty-text {
|
|
font-size: var(--tk-font-body-lg);
|
|
color: var(--tk-text-secondary);
|
|
}
|