精修 WebUI v30:进程心跳 / 滚动条 / 骨架 / 取景器 hover / SVG glow
全局 running 信号 - body.is-running 在视口顶部 fixed 2px 粉→青→粉横向 sweep glow line - 2.8s 横向滚动 + 4px primary drop-shadow,进程"心跳"信号 滚动条 - 全局 webkit-scrollbar-thumb 改 180deg 粉→青渐变(55% mix) - hover 升级为纯色 primary→secondary 渐变 骨架屏 - shimmer 渐变改为粉/青双色横扫(35% / 65% 节点 22% mix) - 节奏 1.6s → 1.8s 更柔和 截图区取景器 - previewBracket hover 时 18→22px + drop-shadow 6→10px primary 75% - 尺寸 + glow 同步过渡 Timeline 折线 - SVG defs 加 feGaussianBlur (1.6) + feMerge glow filter - 折线 stroke-width 1.5→1.8 并应用 filter,霓虹光晕 - 与 chart hover 渐变协同 cache-bust v29 → v30
This commit is contained in:
1 parent
95255a4498
commit
7001919642
3 files changed
+57
-7
No files matched your search
+17
-1
@@ -1280,6 +1280,21 @@ function renderTimeline(containerId, timeline) {
|
||||
svg.setAttribute("height", String(H));
|
||||
svg.classList.add("timelineSvg");
|
||||
|
||||
// SVG glow filter(feGaussianBlur + feMerge)让折线带霓虹光晕
|
||||
const NS_FILTER = "http://www.w3.org/2000/svg";
|
||||
const defs = document.createElementNS(NS_FILTER, "defs");
|
||||
const filterId = (containerId || "timeline") + "Glow";
|
||||
defs.innerHTML = `
|
||||
<filter id="${filterId}" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feGaussianBlur stdDeviation="1.6" result="blur"/>
|
||||
<feMerge>
|
||||
<feMergeNode in="blur"/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
`;
|
||||
svg.appendChild(defs);
|
||||
|
||||
const axis = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
||||
axis.setAttribute("d", `M ${padL} ${H - padB} L ${W - padR} ${H - padB}`);
|
||||
axis.setAttribute("stroke", "var(--border)");
|
||||
@@ -1353,11 +1368,12 @@ function renderTimeline(containerId, timeline) {
|
||||
p.setAttribute("d", d);
|
||||
p.setAttribute("fill", "none");
|
||||
p.setAttribute("stroke", TIMELINE_STROKES[k]?.stroke || "var(--primary)");
|
||||
p.setAttribute("stroke-width", "1.5");
|
||||
p.setAttribute("stroke-width", "1.8");
|
||||
p.setAttribute("stroke-opacity", String(TIMELINE_STROKES[k]?.opacity ?? 1));
|
||||
if (TIMELINE_STROKES[k]?.dash) p.setAttribute("stroke-dasharray", TIMELINE_STROKES[k].dash);
|
||||
p.setAttribute("stroke-linecap", "round");
|
||||
p.setAttribute("stroke-linejoin", "round");
|
||||
p.setAttribute("filter", `url(#${filterId})`);
|
||||
svg.appendChild(p);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v29" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v30" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -1274,6 +1274,6 @@
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
||||
</button>
|
||||
|
||||
<script src="app.js?v=console-20260520-theme-v29"></script>
|
||||
<script src="app.js?v=console-20260520-theme-v30"></script>
|
||||
</body>
|
||||
</html>
|
||||
+38
-4
@@ -223,6 +223,32 @@ body::after {
|
||||
mix-blend-mode: overlay;
|
||||
}
|
||||
|
||||
/* When body.is-running: thin pink sweep glow line at top edge of viewport */
|
||||
body.is-running::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 2px;
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
|
||||
background-size: 200% 100%;
|
||||
animation: runningPulse 2.8s linear infinite;
|
||||
filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 70%, transparent));
|
||||
}
|
||||
|
||||
@keyframes runningPulse {
|
||||
0% { background-position: -100% 0; opacity: 0.85; }
|
||||
50% { opacity: 1; }
|
||||
100% { background-position: 200% 0; opacity: 0.85; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
body.is-running::before { animation: none; }
|
||||
}
|
||||
|
||||
/* When toggling theme, briefly enable transitions on common chrome surfaces.
|
||||
The .isThemeSwitching class is added by JS for ~250ms during the toggle. */
|
||||
:root.isThemeSwitching .header,
|
||||
@@ -2665,6 +2691,13 @@ input[type="number"]::-webkit-outer-spin-button {
|
||||
pointer-events: none;
|
||||
border: 2px solid var(--primary);
|
||||
filter: drop-shadow(0 0 6px color-mix(in oklab, var(--primary) 50%, transparent));
|
||||
transition: width var(--motion), height var(--motion), border-color var(--motion-fast), filter var(--motion-fast);
|
||||
}
|
||||
|
||||
.preview:hover .previewBracket {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
filter: drop-shadow(0 0 10px color-mix(in oklab, var(--primary) 75%, transparent));
|
||||
}
|
||||
|
||||
.previewBracketTL { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
|
||||
@@ -3266,11 +3299,12 @@ details[open] > summary.sectionTitle::before {
|
||||
background:
|
||||
linear-gradient(90deg,
|
||||
transparent 0,
|
||||
color-mix(in oklab, var(--text) 6%, transparent) 50%,
|
||||
color-mix(in oklab, var(--primary) 22%, transparent) 35%,
|
||||
color-mix(in oklab, var(--secondary) 22%, transparent) 65%,
|
||||
transparent 100%) var(--surface-muted);
|
||||
background-size: 200% 100%;
|
||||
background-repeat: no-repeat;
|
||||
animation: skeletonShimmer 1.6s linear infinite;
|
||||
animation: skeletonShimmer 1.8s linear infinite;
|
||||
border-radius: var(--radius-sm);
|
||||
color: transparent !important;
|
||||
user-select: none;
|
||||
@@ -3503,14 +3537,14 @@ details[open] > summary.sectionTitle::before {
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background: var(--border-strong);
|
||||
background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 55%, var(--border-strong)), color-mix(in oklab, var(--secondary) 55%, var(--border-strong)));
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
border-radius: 99px;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--hover-border);
|
||||
background: linear-gradient(180deg, var(--primary), var(--secondary));
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user