mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add experimental modern UI, sliding switchers, cycle range, and fluid animations
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: minmax(0, 1fr);
|
||||
align-self: stretch;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
@@ -44,13 +45,37 @@
|
||||
|
||||
/* --- 结构页三级子导航菜单 (.settings-thirdnav-bar) --- */
|
||||
.settings-thirdnav-bar {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
padding: 3px;
|
||||
gap: 0;
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-sm);
|
||||
flex-shrink: 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.thirdnav-glider {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
bottom: 3px;
|
||||
left: 3px;
|
||||
width: calc((100% - 6px) / 4);
|
||||
background: var(--accent-primary-soft);
|
||||
border: 1px solid var(--accent-primary-border);
|
||||
border-radius: var(--radius-xs);
|
||||
transform: translate3d(calc(var(--active-third-index, 0) * 100%), 0, 0);
|
||||
transition: transform var(--dur-fast) var(--ease-fast);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.structure-thirdnav-btn {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -58,29 +83,28 @@
|
||||
min-height: calc(25px * var(--ui-font-scale, 1));
|
||||
min-width: 0;
|
||||
padding: 2px 6px;
|
||||
border: 1px solid var(--border-hairline);
|
||||
border: none;
|
||||
outline: none;
|
||||
border-radius: var(--radius-xs);
|
||||
background: var(--surface-subtle);
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--fs-md);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
color var(--dur-instant) var(--ease-fast),
|
||||
border-color var(--dur-instant) var(--ease-fast);
|
||||
transition: color var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.structure-thirdnav-btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent-primary) 55%, transparent);
|
||||
}
|
||||
|
||||
.structure-thirdnav-btn:hover {
|
||||
color: var(--text-primary);
|
||||
border-color: var(--border-strong);
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.structure-thirdnav-btn.is-active {
|
||||
color: var(--accent-primary);
|
||||
background: var(--accent-primary-soft);
|
||||
border-color: var(--accent-primary-border);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user