/* The ⋯ menu (ui/menu.ts): an iOS 26-style menu: Liquid Glass with a soft even edge, rows, thin lines between groups. And the toast slot at the bottom. */ /* On the dropdowns' glass (.drop, styles/drop.css). */ .pop { position: absolute; min-width: 210px; overflow: hidden; border-radius: 24px; } /* The Figma's Menu made compact: 6 px top and bottom, the rows 6 px in. */ .pop-body { position: relative; display: flex; flex-direction: column; padding: 6px 0; } .pop-grp { display: flex; flex-direction: column; padding: 0 6px; } /* A separator: 21 px high, its line 8 px further in than the rows. */ .pop-sep { display: flex; align-items: center; height: 13px; padding: 0 16px; } .pop-sep > span { flex: 1; height: 1px; background: var(--glass-sep); } /* A row: 8 px above and below the words (34 high, 50 with a line under the label); the icon further in from the row's rounded edge (14 px) than it is from the words (10 px), so it doesn't crowd the curve. */ .mi { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 12px 0 14px; border-radius: 18px; color: var(--glass-text); text-align: left; transition: transform 150ms var(--ease-out); } /* Whole rows over the highlight (they have no fill of their own): pressed, a row scales as one layer, and its words must not drop under the highlight with it. */ .mi { z-index: 3; } .mi:active { transform: scale(0.97); } .kbd .mi:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .mi > .i { position: relative; z-index: 3; flex: none; color: currentColor; transition: scale var(--spring-glide-dur, 400ms) var(--spring-glide, ease-out); } .mi > .i { width: 16px; height: 16px; } .mi.hot > .i { scale: 1.08; } .mi-b { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 8px 0; } .mi-l { font-size: 14px; font-weight: 400; line-height: 18px; letter-spacing: -0.2px; } .mi-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 15px; color: var(--glass-sub); font-variant-numeric: tabular-nums; } .mi.warn { color: var(--warn); } .mi.bad { color: var(--glass-bad); } /* One toast at a time; a new one comes in over the leaving one. */ .toasts { position: fixed; left: 0; right: 0; height: 42px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; padding-left: var(--gutter-l); padding-right: var(--gutter-r); } .toast { position: absolute; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 13px; border-radius: 999px; background: var(--toast); color: var(--toast-fg); font-size: 14px; font-weight: 500; box-shadow: var(--pop-shadow); white-space: nowrap; } .toast .i { width: 18px; height: 18px; color: var(--ok); } .toast.bad .i { color: var(--bad); }