精修 WebUI 第十二轮:质感打磨

- brandMark 改为三档 OKLCH 渐变 + 高光 radial-gradient + hover 微浮起
- tabBtn hover 与 active 用 surface-muted ↔ primary-soft 混合,更稳的层级感
- footer 连接点 ok 状态加涟漪扩散动画(footerRipple)
- logSection: 圆角 v-md / hover border 提亮 / logHeader 渐变背景 / logTitle 加 4px 圆点 / logHeaderActions select 自绘箭头适配紧凑高度
- cache-bust v14 → v15
This commit is contained in:
Codex committed 2026-05-21 09:29:38 +08:00
1 parent cdaa9e4c69
commit 3295cb3d6f
2 files changed
+74 -14

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@
} catch (e) {}
})();
</script>
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v14" />
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v15" />
</head>
<body>
<div class="app">
@@ -1252,6 +1252,6 @@
</footer>
</div>
<script src="app.js?v=console-20260520-theme-v14"></script>
<script src="app.js?v=console-20260520-theme-v15"></script>
</body>
</html>
+72 -12
View File
@@ -269,9 +269,24 @@ svg {
width: 38px;
height: 38px;
color: var(--on-primary);
background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 70%, #000 30%));
background: linear-gradient(135deg, var(--primary-hover), var(--primary) 55%, color-mix(in oklab, var(--primary) 65%, #000 35%));
border-radius: var(--radius-md);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(94, 106, 210, 0.3);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 1px 2px rgba(94, 106, 210, 0.32);
transition: transform var(--motion), box-shadow var(--motion);
}
.brandMark::after {
position: absolute;
inset: 0;
content: "";
pointer-events: none;
background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
opacity: 0.7;
}
.brandBlock:hover .brandMark {
transform: translateY(-1px);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 4px 10px rgba(94, 106, 210, 0.35);
}
.brandMark svg {
@@ -1045,11 +1060,11 @@ svg {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 9px;
gap: 10px;
width: 100%;
min-width: 0;
min-height: 36px;
padding: 0 10px 0 12px;
padding: 0 12px 0 14px;
border: 1px solid transparent;
border-radius: var(--radius-md);
color: var(--muted);
@@ -1058,6 +1073,7 @@ svg {
font-weight: 500;
text-align: left;
white-space: nowrap;
letter-spacing: var(--tracking-tight);
transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}
@@ -1068,12 +1084,12 @@ svg {
.tabBtn:hover {
color: var(--text);
background: var(--surface-muted);
background: color-mix(in oklab, var(--surface-muted) 80%, var(--primary-soft) 20%);
}
.tabBtn.active {
color: var(--text-strong);
background: var(--surface-muted);
background: color-mix(in oklab, var(--surface-muted) 60%, var(--primary-soft) 40%);
box-shadow: none;
}
@@ -2066,9 +2082,13 @@ details[open] > summary.sectionTitle::before {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
border-radius: var(--radius-md);
background: var(--surface);
box-shadow: 0 1px 0 var(--hairline) inset;
transition: border-color var(--motion-fast);
}
.logSection:hover {
border-color: var(--hover-border);
}
.logHeader {
@@ -2077,16 +2097,30 @@ details[open] > summary.sectionTitle::before {
justify-content: space-between;
gap: 10px;
min-width: 0;
padding: 10px;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
background: var(--surface-soft);
background: linear-gradient(180deg, var(--surface-soft), var(--surface));
}
.logTitle {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--text-strong);
font-size: 13px;
font-weight: 600;
white-space: nowrap;
letter-spacing: var(--tracking-tight);
}
.logTitle::before {
width: 4px;
height: 4px;
flex: 0 0 4px;
border-radius: 50%;
background: var(--primary);
content: "";
opacity: 0.7;
}
.logHeaderActions {
@@ -2094,16 +2128,22 @@ details[open] > summary.sectionTitle::before {
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 7px;
gap: 6px;
min-width: 0;
}
.logHeaderActions .small {
width: auto;
min-height: 30px;
min-height: 28px;
padding: 0 10px;
font-size: 12px;
}
.logHeaderActions select.small {
background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
padding-right: 24px;
}
.logSearchBox {
width: 230px;
min-height: 30px;
@@ -2354,6 +2394,7 @@ details[open] > summary.sectionTitle::before {
}
.appConnDot {
position: relative;
width: 6px;
height: 6px;
border-radius: 50%;
@@ -2366,12 +2407,31 @@ details[open] > summary.sectionTitle::before {
box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 16%, transparent);
}
.appConnDot[data-state="ok"]::after {
position: absolute;
inset: -4px;
content: "";
border-radius: 50%;
border: 1px solid var(--success);
opacity: 0.5;
animation: footerRipple 2.4s ease-out infinite;
}
.appConnDot[data-state="error"] {
background: var(--danger);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 16%, transparent);
animation: statusPulse 2s ease-in-out infinite;
}
@keyframes footerRipple {
0% { transform: scale(0.8); opacity: 0.6; }
100% { transform: scale(2.0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.appConnDot[data-state="ok"]::after { animation: none; }
}
.appConnText,
.appFooterMeta {
font-variant-numeric: tabular-nums;