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
171 lines
3.4 KiB
CSS
171 lines
3.4 KiB
CSS
/* Scan terminal calendar/action view styles. */
|
|
|
|
.root :global(.scan-calendar-view) {
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.root :global(.scan-calendar-group) {
|
|
border: 1px solid rgba(90, 123, 166, 0.12);
|
|
border-radius: 18px;
|
|
background: rgba(8, 17, 30, 0.8);
|
|
overflow: hidden;
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: 460px;
|
|
}
|
|
|
|
.root :global(.scan-calendar-group-head) {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid rgba(90, 123, 166, 0.1);
|
|
}
|
|
|
|
.root :global(.scan-calendar-date) {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: #eef7ff;
|
|
}
|
|
|
|
.root :global(.scan-calendar-count) {
|
|
font-size: 13px;
|
|
color: #8fa4c3;
|
|
}
|
|
|
|
.root :global(.scan-calendar-subtitle) {
|
|
margin-top: 4px;
|
|
color: #7f96b6;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.root :global(.scan-calendar-grid) {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 12px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.root :global(.scan-calendar-card),
|
|
.root :global(.scan-summary-card),
|
|
.root :global(.scan-settings-card) {
|
|
border: 1px solid rgba(90, 123, 166, 0.12);
|
|
border-radius: 16px;
|
|
background: linear-gradient(180deg, rgba(10, 20, 35, 0.92), rgba(8, 17, 29, 0.92));
|
|
}
|
|
|
|
.root :global(.scan-calendar-card) {
|
|
text-align: left;
|
|
padding: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.root :global(.scan-calendar-card.selected) {
|
|
box-shadow: inset 0 0 0 1px rgba(23, 217, 139, 0.42);
|
|
}
|
|
|
|
.root :global(.scan-calendar-card.peak-active) {
|
|
border-color: rgba(23, 217, 139, 0.34);
|
|
background: linear-gradient(180deg, rgba(12, 42, 38, 0.9), rgba(8, 20, 30, 0.94));
|
|
}
|
|
|
|
.root :global(.scan-calendar-card.peak-next) {
|
|
border-color: rgba(94, 234, 212, 0.3);
|
|
}
|
|
|
|
.root :global(.scan-calendar-card.peak-past) {
|
|
opacity: 0.78;
|
|
}
|
|
|
|
.root :global(.scan-calendar-city) {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: #eef7ff;
|
|
}
|
|
|
|
.root :global(.scan-calendar-action) {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
color: #dcecff;
|
|
}
|
|
|
|
.root :global(.scan-calendar-action span) {
|
|
color: #8fa4c3;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.root :global(.scan-calendar-action b) {
|
|
color: #eef7ff;
|
|
font-size: 16px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.root :global(.scan-calendar-action.buy) {
|
|
color: #21e391;
|
|
}
|
|
|
|
.root :global(.scan-calendar-action.sell) {
|
|
color: #ff6e6e;
|
|
}
|
|
|
|
.root :global(.scan-calendar-meta) {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
color: #8fa4c3;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.root :global(.scan-calendar-countdown) {
|
|
margin-top: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid rgba(94, 234, 212, 0.18);
|
|
border-radius: 12px;
|
|
background: rgba(20, 184, 166, 0.1);
|
|
color: #5fffe8;
|
|
font-size: 15px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.root :global(.scan-calendar-countdown small) {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: #9fb4d2;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.root :global(.scan-calendar-reason) {
|
|
margin: 10px 0 0;
|
|
color: #d6e4f5;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.root :global(.scan-summary-grid) {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.root :global(.scan-summary-grid.monitor) {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
}
|
|
|
|
.root :global(.scan-summary-card),
|
|
.root :global(.scan-settings-card) {
|
|
padding: 18px;
|
|
}
|