00e1845f2c
- 消除 !important 滥用:134 → 49(仅保留 Leaflet/图表所必需项),浅色主题使用 html.light 选择器获得更高优先级 - 修复 font-weight:13 个文件中所有 760/850/860/880/950 等非标准值已映射为 Inter 支持的 300–800 - 移除未加载的 Geist 字体声明,替换为 Inter - 添加全局 :focus-visible 轮廓环、跳过链接、Tab ARIA 属性(role/aria-selected) - 统一断点体系:18 → 10(480/640/768/960/1024/1200/1280/1360/1440/1680) - 创建 scan-root-styles.ts 桶文件,将 22 个 CSS Module 导入合并为 1 个 - Token 迁移:10 个文件中数百处硬编码颜色(#4DA3FF/#E6EDF3/#9FB2C7/#6B7A90)已替换为 CSS 变量 - 去重 @keyframes:spin 4→1、loading-spin 2→0、pulse-pending 已移至 globals.css - 添加统一的 empty/error/retry 状态组件 - 添加全局 prefers-reduced-motion 支持 - 修复 accent-primary 与 accent-secondary 相同值的问题 - 修复 accent-green 类错误渲染为蓝色 - 添加 CSS 渐变品牌 Logo - 移除死代码(1,697 行):public/static/style.css + public/legacy/index.html - Dashboard.module.css 本地变量已桥接至全局 token - 提升文字对比度:#6B7A90 → #7D8FA3 Fixed: !important-134-to-49, font-weight-13-files, Geist-removal, focus-visible, breakpoints-18-to-10, CSS-module-barrel, token-migration-10-files, keyframe-dedup, dead-code-removal, accent-color-fix, contrast-improvement Scope: frontend CSS architecture, design tokens, accessibility, responsive breakpoints Tested: npx tsc --noEmit
213 lines
4.5 KiB
CSS
213 lines
4.5 KiB
CSS
.root :global(.panel-title-stack) {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.panel-overline) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--text-muted);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.root :global(.panel-overline-sep) {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.root :global(.panel-subtitle) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.root :global(.panel-weather-chip) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.panel-meta-chip) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 28px;
|
|
padding: 0 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.root :global(.panel-meta-chip-strong) {
|
|
color: var(--text-primary);
|
|
background: rgba(34, 211, 238, 0.1);
|
|
border-color: rgba(34, 211, 238, 0.2);
|
|
}
|
|
|
|
.root :global(.panel-meta-chip-muted) {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.panel-actions) {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.root :global(.panel-action-button) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 38px;
|
|
padding: 0 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.01em;
|
|
transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
|
|
}
|
|
|
|
.root :global(.panel-action-button:hover) {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.root :global(.panel-action-button-primary) {
|
|
color: #FFFFFF;
|
|
background: linear-gradient(135deg, var(--color-accent-primary), #3B82F6);
|
|
border-color: rgba(77, 163, 255, 0.34);
|
|
}
|
|
|
|
.root :global(.panel-action-button-secondary) {
|
|
color: var(--text-primary);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.root :global(.panel-action-button-ghost) {
|
|
color: var(--accent-cyan);
|
|
background: rgba(34, 211, 238, 0.08);
|
|
border-color: rgba(34, 211, 238, 0.16);
|
|
}
|
|
|
|
.root :global(.detail-summary-shell) {
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
border-radius: 18px;
|
|
padding: 16px;
|
|
box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
|
|
}
|
|
|
|
.root :global(.panel-body section.detail-summary-shell) {
|
|
padding: 16px;
|
|
margin: 18px 0 0;
|
|
}
|
|
|
|
.root :global(.detail-summary-shell-live) {
|
|
background: linear-gradient(180deg, rgba(22, 78, 99, 0.18), rgba(15, 23, 42, 0.3));
|
|
}
|
|
|
|
.root :global(.detail-section-head) {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.root :global(.detail-section-kicker) {
|
|
display: inline-block;
|
|
margin-bottom: 6px;
|
|
color: var(--accent-cyan);
|
|
font-size: 10px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.root :global(.detail-summary-main) {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.root :global(.detail-summary-hero) {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.root :global(.detail-summary-temp) {
|
|
color: var(--text-primary);
|
|
font-size: 38px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.04em;
|
|
line-height: 1;
|
|
}
|
|
|
|
.root :global(.detail-summary-supporting) {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.detail-summary-grid) {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.root :global(.detail-card) {
|
|
background: rgba(255, 255, 255, 0.035);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.root :global(.detail-card-hero) {
|
|
background: rgba(34, 211, 238, 0.08);
|
|
border-color: rgba(34, 211, 238, 0.16);
|
|
}
|
|
|
|
.root :global(.detail-card-wide) {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.root :global(.detail-callout-card) {
|
|
background: rgba(255, 255, 255, 0.025);
|
|
}
|
|
|
|
.root :global(.detail-value-muted) {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.root :global(.detail-structured-section) {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 18px;
|
|
padding: 16px 16px 18px;
|
|
}
|
|
|
|
.root :global(.detail-empty-state) {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|