// The search picker over a long single-choice select (the audit action filter and the like). It // floats beside the select as a popover, styled as the browser's own select picker in main.scss. // Hidden until open: an author display value would override the browser's rule that hides a closed // popover, so the flex display is only set while it is shown (or the fallback class is on). .select-search { position: fixed; margin: 0; inset: auto; box-sizing: border-box; display: none; flex-direction: column; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); color: var(--text); } .select-search:popover-open, .select-search.is-open { display: flex; } // The field inherits the global input style; it only needs the full width of the picker. .select-search-input { width: 100%; } .select-search-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; } .select-search-list li { padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; } .select-search-list li.is-active { background: var(--surface-2); } .select-search-list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; } .select-search-list li[aria-disabled="true"] { color: var(--muted); cursor: default; } // Group headers and the no-match line are not options: small muted text, not selectable. .select-search-list .select-search-group, .select-search-list .select-search-none { font-size: .8125rem; color: var(--muted); padding: 6px 10px; cursor: default; }