feat(webui): refine interactive controls
Separate the custom context menu preference and enable it by default. Bring dropdowns and settings choices into a consistent, responsive interaction language.
This commit is contained in:
16 files changed
+904
-283
No files matched your search
@@ -653,52 +653,45 @@ html[data-cursor-system="custom"] .adaptive-cursor[data-visible="true"] {
|
||||
Global context menu
|
||||
────────────────────────────────────────────── */
|
||||
.global-context-menu {
|
||||
position: fixed;
|
||||
z-index: 2147483646;
|
||||
width: min(15.5rem, calc(100vw - 1rem));
|
||||
padding: 0.375rem;
|
||||
border-radius: calc(var(--radius) + 0.25rem);
|
||||
background: color-mix(in oklab, var(--popover) 92%, transparent);
|
||||
padding: 5px;
|
||||
border: 1px solid color-mix(in oklab, var(--border) 74%, transparent);
|
||||
border-radius: 14px;
|
||||
background: var(--popover);
|
||||
color: var(--popover-foreground);
|
||||
box-shadow:
|
||||
0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent),
|
||||
0 2px 5px -2px oklch(0% 0 0 / 0.18),
|
||||
0 18px 48px -20px oklch(0% 0 0 / 0.42);
|
||||
0 1px 2px color-mix(in oklab, var(--foreground) 6%, transparent),
|
||||
0 16px 36px -18px color-mix(in oklab, var(--foreground) 50%, transparent);
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(20px) saturate(1.15);
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.global-context-menu-group {
|
||||
display: grid;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
.global-context-menu-separator {
|
||||
height: 1px;
|
||||
margin: 0.375rem 0.5rem;
|
||||
background: color-mix(in oklab, var(--border) 74%, transparent);
|
||||
margin: 4px;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.global-context-menu-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1.125rem minmax(0, 1fr) auto;
|
||||
grid-template-columns: 1rem minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
min-height: 2.5rem;
|
||||
height: 32px;
|
||||
padding: 0 0.625rem;
|
||||
border: 0;
|
||||
border-radius: calc(var(--radius) - 0.125rem);
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
color: var(--popover-foreground);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
scale: 1;
|
||||
outline: none;
|
||||
transition-property: color, background-color, box-shadow, scale, opacity;
|
||||
transition-duration: 140ms;
|
||||
transition-timing-function: ease-out;
|
||||
}
|
||||
.global-context-menu-item:hover,
|
||||
.global-context-menu-item:focus-visible {
|
||||
@@ -709,7 +702,7 @@ html[data-cursor-system="custom"] .adaptive-cursor[data-visible="true"] {
|
||||
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ring) 45%, transparent);
|
||||
}
|
||||
.global-context-menu-item:active:not(:disabled) {
|
||||
scale: 0.96;
|
||||
background: color-mix(in oklab, var(--primary) 16%, var(--accent));
|
||||
}
|
||||
.global-context-menu-item:disabled {
|
||||
color: color-mix(in oklab, var(--muted-foreground) 62%, transparent);
|
||||
|
||||
Reference in new issue
Block a user