精修 WebUI 第三轮:清理 + a11y + 深色微调
- 清理死变量:surface-elevated、bg-start/mid/end、shadow-hover、shadow-primary*、accent-cyan/emerald、primary-soft-hover*、primary-action-bg - header 动作组:primary 与 secondary 之间加 1px 分割线;btnTheme 加左 margin - summary.sectionTitle 加自绘 chevron icon(mask SVG),open 时旋转 90° - 表单 :focus 改为 :focus-visible(鼠标点击不再触发 ring) - 按钮加 :focus-visible 双层光环(背景 + primary 描边) - 深色主题对比度复查:border 26→2a,border-strong 2e→3a,hover-border 40→4a;surface-muted 1a→1c;primary-soft 1a1d33→1c2040;primary-border 2d3257→353c66;warning/danger soft 系列加亮一档;overview-primary-bg 141414→161620;hairline 0.04→0.06 - cache-bust v5 → v6
This commit is contained in:
1 parent
299ced21c8
commit
276235408e
2 files changed
+57
-46
No files matched your search
+2
-2
@@ -15,7 +15,7 @@
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v5" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v6" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -1222,6 +1222,6 @@
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=console-20260520-theme-v5"></script>
|
||||
<script src="app.js?v=console-20260520-theme-v6"></script>
|
||||
</body>
|
||||
</html>
|
||||
+55
-44
@@ -6,7 +6,6 @@
|
||||
--surface-solid: #ffffff;
|
||||
--surface-soft: #fafafa;
|
||||
--surface-muted: #f4f4f5;
|
||||
--surface-elevated: #ffffff;
|
||||
--border: #e5e5e5;
|
||||
--border-strong: #d4d4d4;
|
||||
--hairline: rgba(0, 0, 0, 0.04);
|
||||
@@ -29,16 +28,8 @@
|
||||
--danger-soft: #fef2f2;
|
||||
--danger-border: #fecaca;
|
||||
--on-primary: #ffffff;
|
||||
--bg-start: #ffffff;
|
||||
--bg-mid: #ffffff;
|
||||
--bg-end: #ffffff;
|
||||
--header-bg: rgba(255, 255, 255, 0.85);
|
||||
--primary-action-bg: rgba(94, 106, 210, 0.06);
|
||||
--accent-cyan: #06b6d4;
|
||||
--accent-emerald: #10b981;
|
||||
--hover-border: #a3a3a3;
|
||||
--primary-soft-hover: #e0e3f5;
|
||||
--primary-soft-hover-border: #a8b1e8;
|
||||
--danger-soft-hover: #fee2e2;
|
||||
--danger-soft-hover-border: #fca5a5;
|
||||
--overview-primary-bg: #fafafa;
|
||||
@@ -46,10 +37,6 @@
|
||||
--preview-bg: #fafafa;
|
||||
--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
--shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.08);
|
||||
--shadow-primary: 0 1px 2px rgba(94, 106, 210, 0.2);
|
||||
--shadow-primary-soft: 0 1px 2px rgba(94, 106, 210, 0.15);
|
||||
--shadow-danger-soft: 0 1px 2px rgba(220, 38, 38, 0.15);
|
||||
--focus-ring: 0 0 0 3px rgba(94, 106, 210, 0.18);
|
||||
--status-muted-ring: 0 0 0 3px rgba(163, 163, 163, 0.16);
|
||||
--status-success-ring: 0 0 0 3px rgba(22, 163, 74, 0.18);
|
||||
@@ -116,51 +103,38 @@
|
||||
--surface: #0f0f0f;
|
||||
--surface-solid: #0f0f0f;
|
||||
--surface-soft: #141414;
|
||||
--surface-muted: #1a1a1a;
|
||||
--surface-elevated: #161616;
|
||||
--border: #262626;
|
||||
--border-strong: #2e2e2e;
|
||||
--hairline: rgba(255, 255, 255, 0.04);
|
||||
--surface-muted: #1c1c1c;
|
||||
--border: #2a2a2a;
|
||||
--border-strong: #3a3a3a;
|
||||
--hairline: rgba(255, 255, 255, 0.06);
|
||||
--text: #ededed;
|
||||
--text-strong: #fafafa;
|
||||
--muted: #a1a1aa;
|
||||
--muted-soft: #71717a;
|
||||
--primary: #8b95ff;
|
||||
--primary-hover: #a3acff;
|
||||
--primary-soft: #1a1d33;
|
||||
--primary-border: #2d3257;
|
||||
--primary-soft: #1c2040;
|
||||
--primary-border: #353c66;
|
||||
--primary-accent-text: #aab5ff;
|
||||
--success: #22c55e;
|
||||
--success-soft: #0f1f15;
|
||||
--warning: #eab308;
|
||||
--warning-soft: #1f1a0a;
|
||||
--warning-border: #423a17;
|
||||
--warning-soft: #221c0a;
|
||||
--warning-border: #4d4220;
|
||||
--danger: #ef4444;
|
||||
--danger-hover: #f87171;
|
||||
--danger-soft: #1f1212;
|
||||
--danger-border: #462020;
|
||||
--danger-soft: #221414;
|
||||
--danger-border: #4a2424;
|
||||
--on-primary: #ffffff;
|
||||
--bg-start: #0a0a0a;
|
||||
--bg-mid: #0a0a0a;
|
||||
--bg-end: #0a0a0a;
|
||||
--header-bg: rgba(15, 15, 15, 0.85);
|
||||
--primary-action-bg: rgba(139, 149, 255, 0.08);
|
||||
--accent-cyan: #22d3ee;
|
||||
--accent-emerald: #34d399;
|
||||
--hover-border: #404040;
|
||||
--primary-soft-hover: #25294a;
|
||||
--primary-soft-hover-border: #3d4373;
|
||||
--hover-border: #4a4a4a;
|
||||
--danger-soft-hover: #2d1818;
|
||||
--danger-soft-hover-border: #5a2828;
|
||||
--overview-primary-bg: #141414;
|
||||
--chart-track: #262626;
|
||||
--overview-primary-bg: #161620;
|
||||
--chart-track: #2a2a2a;
|
||||
--preview-bg: #0f0f0f;
|
||||
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||||
--shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
|
||||
--shadow-primary: 0 1px 2px rgba(139, 149, 255, 0.25);
|
||||
--shadow-primary-soft: 0 1px 2px rgba(139, 149, 255, 0.2);
|
||||
--shadow-danger-soft: 0 1px 2px rgba(239, 68, 68, 0.2);
|
||||
--focus-ring: 0 0 0 3px rgba(139, 149, 255, 0.25);
|
||||
--status-muted-ring: 0 0 0 3px rgba(113, 113, 122, 0.2);
|
||||
--status-success-ring: 0 0 0 3px rgba(34, 197, 94, 0.2);
|
||||
@@ -305,12 +279,13 @@ svg {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.actionGroup {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
@@ -321,11 +296,23 @@ svg {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.secondaryActions::before {
|
||||
align-self: stretch;
|
||||
width: 1px;
|
||||
margin: 4px 6px 4px 0;
|
||||
background: var(--border);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.primaryActions {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#btnTheme {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -364,6 +351,12 @@ svg {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.btn:focus-visible,
|
||||
.tabBtn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
|
||||
}
|
||||
|
||||
.btnIcon {
|
||||
display: inline-flex;
|
||||
flex: 0 0 16px;
|
||||
@@ -1005,9 +998,9 @@ summary.sectionTitle {
|
||||
border-color: var(--hover-border);
|
||||
}
|
||||
|
||||
.input:focus,
|
||||
.small:focus,
|
||||
.logSearchBox:focus {
|
||||
.input:focus-visible,
|
||||
.small:focus-visible,
|
||||
.logSearchBox:focus-visible {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 1px var(--primary), var(--focus-ring);
|
||||
}
|
||||
@@ -1551,6 +1544,7 @@ details {
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
summary::-webkit-details-marker {
|
||||
@@ -1558,10 +1552,27 @@ summary::-webkit-details-marker {
|
||||
}
|
||||
|
||||
summary.sectionTitle {
|
||||
justify-content: space-between;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
summary.sectionTitle::before {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
flex: 0 0 10px;
|
||||
content: "";
|
||||
background: currentColor;
|
||||
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
|
||||
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
|
||||
opacity: 0.6;
|
||||
transition: transform var(--motion-fast), opacity var(--motion-fast);
|
||||
}
|
||||
|
||||
details[open] > summary.sectionTitle::before {
|
||||
transform: rotate(90deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.summaryActions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user