Feat/auto group (#6590)
* feat(token): support custom auto group order * feat(keys): enhance auto group presentation * fix(keys): rework Auto flow border and compact inherited order The Auto group highlight previously tinted the whole control surface with a gradient and animated only a 1px top sweep, which read as a background color rather than a flowing border. Replace it with a border-only effect: an aria-hidden, pointer-events-none overlay whose conic gradient is masked down to a thin ring hugging the rounded perimeter, so the highlight travels around all four edges and corners every 3.2s. The interior stays neutral with a restrained static primary border and glow; prefers-reduced-motion hides the moving layer while keeping the static emphasis. The inherited global Auto order also rendered as spacious two-line rows with circular sequence markers, wasting drawer space. Render it as a compact wrapping strip of one-line chips (index, name, ratio badge) with descriptions kept accessible via title and sr-only text, scrolling only past a much smaller max height. Custom add/remove/reorder editing, empty-array inheritance semantics, and the submit payload are unchanged. * fix(keys): preserve Auto inheritance and unify effects * refactor(keys): temporarily disable AutoGroupBadge in api-key-group-cell
This commit is contained in:
@@ -650,3 +650,49 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Auto group flowing border ── */
|
||||
@property --auto-group-flow-angle {
|
||||
syntax: '<angle>';
|
||||
inherits: false;
|
||||
initial-value: 0deg;
|
||||
}
|
||||
|
||||
@keyframes auto-group-flow-border-travel {
|
||||
to {
|
||||
--auto-group-flow-angle: 360deg;
|
||||
}
|
||||
}
|
||||
|
||||
/* Border-only effect: the conic gradient covers the whole layer, but the
|
||||
* two-layer mask (content-box XOR full box) keeps only a `padding`-wide
|
||||
* ring visible, so the highlight hugs the rounded perimeter. Animating
|
||||
* the gradient's start angle makes the bright segment travel around all
|
||||
* four edges and corners without touching the interior. */
|
||||
.auto-group-flow-border {
|
||||
padding: 1.5px;
|
||||
border-radius: inherit;
|
||||
background: conic-gradient(
|
||||
from var(--auto-group-flow-angle),
|
||||
transparent 0deg,
|
||||
transparent 240deg,
|
||||
color-mix(in oklch, var(--primary) 45%, transparent) 300deg,
|
||||
var(--primary) 342deg,
|
||||
transparent 360deg
|
||||
);
|
||||
mask:
|
||||
linear-gradient(#000 0 0) content-box,
|
||||
linear-gradient(#000 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#000 0 0) content-box,
|
||||
linear-gradient(#000 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
animation: auto-group-flow-border-travel 3.2s linear infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.auto-group-flow-border {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user