精修 WebUI 第十六轮:滚动顶按钮 / 连体按钮组 / 图表 hover / 徽章
- 滚动 floating 按钮:scrollY > 240 时右下方显示,毛玻璃圆形,平滑滚回顶部;移动端调高避让 toast - WiFi ADB 操作改 .btnGroup 连体组合:共享圆角、中间无双边、focus z-index 抬起 - timeline 图加 hover 十字线 + tooltip:crosshair 跟随光标 snap 到最近 bin,浮层显示该 bin 的所有系列与时间,无事件显示空状态 - tabBtn[data-badge] 数字徽章:active 时反色 primary;预约数据更新时同步预约 tab 的徽章 - cache-bust v18 → v19
This commit is contained in:
1 parent
94e8d37d18
commit
51d8d53a2b
3 files changed
+248
-8
No files matched your search
@@ -1155,6 +1155,24 @@ svg {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tabBtn[data-badge]:not([data-badge="0"])::after {
|
||||
margin-left: auto;
|
||||
padding: 1px 6px;
|
||||
border-radius: 99px;
|
||||
background: var(--surface-muted);
|
||||
color: var(--muted);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
font-size: 10px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.4;
|
||||
content: attr(data-badge);
|
||||
}
|
||||
|
||||
.tabBtn.active[data-badge]:not([data-badge="0"])::after {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
.panels {
|
||||
min-width: 0;
|
||||
max-width: var(--panel-max);
|
||||
@@ -1659,6 +1677,63 @@ input[type="number"]::-webkit-outer-spin-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.timelineTip {
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 140px;
|
||||
max-width: 200px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface);
|
||||
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
|
||||
color: var(--text);
|
||||
font-size: var(--text-xs);
|
||||
font-variant-numeric: tabular-nums;
|
||||
pointer-events: none;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] .timelineTip {
|
||||
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.timelineTipTime {
|
||||
color: var(--muted);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.timelineTipBody {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
gap: 4px 10px;
|
||||
}
|
||||
|
||||
.timelineTipBody span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.timelineTipBody b {
|
||||
color: var(--text-strong);
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.timelineDotMark {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.barRow {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(78px, 0.9fr) minmax(80px, 2fr) 48px;
|
||||
@@ -2324,6 +2399,75 @@ details[open] > summary.sectionTitle::before {
|
||||
}
|
||||
}
|
||||
|
||||
/* Connected button group: shared border, no doubled middle border */
|
||||
.btnGroup {
|
||||
display: inline-flex;
|
||||
align-items: stretch;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.btnGroup > .btn {
|
||||
border-radius: 0;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.btnGroup > .btn:first-child {
|
||||
border-top-left-radius: var(--radius-md);
|
||||
border-bottom-left-radius: var(--radius-md);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.btnGroup > .btn:last-child {
|
||||
border-top-right-radius: var(--radius-md);
|
||||
border-bottom-right-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.btnGroup > .btn:hover,
|
||||
.btnGroup > .btn:focus-visible {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Scroll-to-top floating button */
|
||||
.scrollTopBtn {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
bottom: 70px;
|
||||
z-index: 70;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 50%;
|
||||
background: color-mix(in oklab, var(--surface) 80%, transparent);
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
transition: opacity 180ms ease, transform 180ms ease, color var(--motion-fast),
|
||||
border-color var(--motion-fast), background var(--motion-fast);
|
||||
}
|
||||
|
||||
.scrollTopBtn[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.scrollTopBtn:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--hover-border);
|
||||
background: var(--surface);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.scrollTopBtn {
|
||||
right: 12px;
|
||||
bottom: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Device select wrapper with status dot */
|
||||
.deviceSelectWrap {
|
||||
position: relative;
|
||||
|
||||
Reference in new issue
Block a user