Files
RuneStone/src/lib/ui/menu.css
T
Knotty Wyvern 445d0200b2 Make menus opaque and redesign the core palettes
Phase 5a-3. The owner chose candidate B of each palette.

- Menus are opaque (UI-043, replaces UI-013). With a background image,
  menus are at least 92% opaque and blur the image. Submenus show as
  manual popovers in the top layer, so the blur cannot clip them.
- In a light palette, the page is the lightest surface, and the side
  panes have a slight tint (UI-044).
- RuneStone uses neutral surfaces and the rune cyan of the app icon.
  Claude Dark uses the layout of the Claude app. Claude Light uses a
  white page with brand Light panes and a darker orange for text.
  Sakura uses Petal Veil for active rows.
- All five core palettes pass every readability rule. A text role keeps
  the hue of its source and changes only its lightness.
- The accent-text rule also checks accent-2, because inline code in
  Read uses it as text.
- The root token defaults match RuneStone Dark.

pnpm check passes. pnpm test: 447 pass, 5 todo, 0 fail. Full smoke
suite: 92 passed, 2 known. editor/markdownPaste and tables/formulas
failed one time and passed on retry. workspace/manageTemplates fails
about half of its runs, also on the previous commit: the tree menu
rebuilds when the template list reloads, and the open submenu closes.
2026-10-28 16:47:55 -07:00

52 lines
2.1 KiB
CSS

.rs-menu, .rs-picker {
z-index: 1000;
width: var(--rs-menu-width);
max-width: calc(100vw - 16px);
max-height: calc(100vh - 16px);
overflow-y: auto;
padding: var(--rs-menu-padding);
border: 1px solid var(--rs-menu-border);
border-radius: var(--rs-control-radius);
background: var(--rs-menu-bg);
backdrop-filter: var(--rs-menu-backdrop);
color: var(--rs-text);
box-shadow: var(--rs-menu-shadow);
font: var(--rs-menu-font-size)/1.4 var(--rs-font-ui);
}
.rs-menu { position: fixed; }
.rs-picker { box-sizing: border-box; }
.rs-menu.table-cell-submenu { z-index: 1001; inset: auto; margin: 0; }
.rs-menu > button, .rs-picker .rs-picker-row {
display: flex;
align-items: center;
gap: var(--rs-menu-icon-gap);
width: 100%;
min-height: var(--rs-menu-row-height);
padding: var(--rs-menu-row-padding);
border: 0;
border-radius: var(--rs-control-radius);
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.rs-menu > button:disabled, .rs-picker .rs-picker-row:disabled { opacity: .4; cursor: default; }
.rs-menu > button[role="menuitemradio"][aria-checked="true"] { background: var(--rs-menu-active-bg); }
.rs-menu.rs-menu-text > button > .action-icon { display: none; }
.rs-menu > button:not(:disabled):is(:hover, :focus-visible, [aria-expanded="true"]),
.rs-picker .rs-picker-row:not(:disabled):is(:hover, :focus-visible, :focus-within, [aria-selected="true"], [aria-current="true"]) {
background: var(--rs-menu-active-bg);
outline: none;
}
.rs-menu > hr { margin: 4px 0; border: 0; border-top: 1px solid var(--rs-border); }
.rs-menu > button > .action-icon, .rs-picker-icon { width: var(--rs-menu-icon-size); height: var(--rs-menu-icon-size); flex: 0 0 var(--rs-menu-icon-size); }
.rs-picker-hint { display: block; color: var(--rs-text-dim); font-size: var(--rs-settings-description-size); }
.rs-picker-icon > svg { width: 100%; height: 100%; }
.rs-menu > button > .action-label { flex: 1; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.rs-menu > button > .action-chevron { width: 13px; height: 13px; flex: 0 0 13px; }