精修 WebUI 第十一轮:信息层级与视觉重音

- overview hero metric 字号 20→26px (text-2xl),紧字距,更接近 Vercel/Linear 的指标卡
- overviewLabel 改 10px uppercase,padding 提至 16/18px
- stats 第一行(运行/PID/运行时长)拆为 statsGridHero + .statHero 大卡,与下方密集网格区分主次
- cardTitle 图标改 chip 风:26×26 圆角填充容器,primary-soft 底 + primary-border 描边
- sectionTitle 加左侧 4px primary 圆点 accent;cardTitle/summary 上的 sectionTitle 不显示
- cache-bust v13 → v14
This commit is contained in:
Codex committed 2026-05-21 09:29:38 +08:00
1 parent 8b8e3129e5
commit cdaa9e4c69
2 files changed
+75 -18

No files matched your search

+9 -6
View File
@@ -15,7 +15,7 @@
} catch (e) {}
})();
</script>
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v13" />
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v14" />
</head>
<body>
<div class="app">
@@ -534,19 +534,22 @@
<div class="sectionTitle">福袋中奖内容(最近10条)</div>
<div class="table" id="tableWins"></div>
<div class="statsGrid">
<div class="stat">
<div class="statsGrid statsGridHero">
<div class="stat statHero">
<div class="statLabel">运行状态</div>
<div id="statRunning" class="statValue">-</div>
</div>
<div class="stat">
<div class="stat statHero">
<div class="statLabel">PID</div>
<div id="statPid" class="statValue">-</div>
</div>
<div class="stat">
<div class="stat statHero">
<div class="statLabel">运行时长</div>
<div id="statUptime" class="statValue">-</div>
</div>
</div>
<div class="statsGrid">
<div class="stat">
<div class="statLabel">日志行数</div>
<div id="statLogLen" class="statValue">-</div>
@@ -1249,6 +1252,6 @@
</footer>
</div>
<script src="app.js?v=console-20260520-theme-v13"></script>
<script src="app.js?v=console-20260520-theme-v14"></script>
</body>
</html>
+66 -12
View File
@@ -537,7 +537,7 @@ svg {
position: relative;
overflow: hidden;
min-width: 0;
padding: 14px 16px;
padding: 16px 18px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--surface);
@@ -549,8 +549,8 @@ svg {
.overviewCard::before {
position: absolute;
left: 0;
top: 14px;
bottom: 14px;
top: 16px;
bottom: 16px;
width: 2px;
content: "";
border-radius: 0 2px 2px 0;
@@ -580,24 +580,24 @@ svg {
.overviewLabel {
color: var(--muted);
font-size: var(--text-xs);
font-size: 10px;
font-weight: 600;
line-height: 1.3;
letter-spacing: var(--tracking-wide);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.overviewValue {
display: flex;
align-items: center;
align-items: baseline;
gap: 8px;
min-width: 0;
margin-top: 8px;
margin-top: 10px;
color: var(--text-strong);
font-size: var(--text-xl);
font-size: var(--text-2xl);
font-weight: 600;
line-height: var(--leading-tight);
letter-spacing: var(--tracking-tight);
line-height: 1.1;
letter-spacing: -0.015em;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
@@ -783,7 +783,7 @@ svg {
.cardTitle {
display: flex;
align-items: center;
gap: 9px;
gap: 10px;
min-width: 0;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
@@ -791,6 +791,25 @@ svg {
font-size: 15px;
font-weight: 600;
line-height: 1.25;
letter-spacing: var(--tracking-tight);
}
.cardTitle .sectionIcon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 26px;
width: 26px;
height: 26px;
border: 1px solid var(--primary-border);
border-radius: var(--radius-sm);
background: var(--primary-soft);
color: var(--primary);
}
.cardTitle .sectionIcon svg {
width: 14px;
height: 14px;
}
.sectionIcon {
@@ -1113,7 +1132,7 @@ svg {
align-items: center;
gap: 8px;
min-width: 0;
margin: 20px 0 10px;
margin: 22px 0 12px;
padding: 6px 0 8px;
color: var(--muted);
font-size: 11px;
@@ -1124,6 +1143,21 @@ svg {
border-bottom: 1px solid var(--border);
}
.sectionTitle::before {
width: 4px;
height: 4px;
flex: 0 0 4px;
border-radius: 50%;
background: var(--primary);
content: "";
opacity: 0.7;
}
.cardTitle.sectionTitle::before,
summary.sectionTitle::before {
display: none;
}
.panel > .sectionTitle:first-child {
margin-top: 0;
}
@@ -1383,6 +1417,26 @@ input[type="number"]::-webkit-outer-spin-button {
margin-top: 12px;
}
.statsGridHero {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
margin-bottom: 4px;
}
.statHero {
padding: 18px 20px;
border-color: var(--border-strong);
}
.statHero .statLabel {
font-size: 11px;
}
.statHero .statValue {
font-size: var(--text-2xl);
letter-spacing: -0.015em;
}
.stat {
min-width: 0;
padding: 14px;