forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_select_search.scss67 lines, 1.6 KiBHistoryRawDownload
1// The search picker over a long single-choice select (the audit action filter and the like). It
2// floats beside the select as a popover, styled as the browser's own select picker in main.scss.
3// Hidden until open: an author display value would override the browser's rule that hides a closed
4// popover, so the flex display is only set while it is shown (or the fallback class is on).
5.select-search {
6 position: fixed;
7 margin: 0;
8 inset: auto;
9 box-sizing: border-box;
10 display: none;
11 flex-direction: column;
12 gap: 4px;
13 padding: 4px;
14 background: var(--surface);
15 border: 1px solid var(--border);
16 border-radius: var(--radius-md);
17 box-shadow: var(--shadow);
18 color: var(--text);
19}
20
21.select-search:popover-open,
22.select-search.is-open {
23 display: flex;
24}
25
26// The field inherits the global input style; it only needs the full width of the picker.
27.select-search-input {
28 width: 100%;
29}
30
31.select-search-list {
32 list-style: none;
33 margin: 0;
34 padding: 0;
35 max-height: 280px;
36 overflow-y: auto;
37}
38
39.select-search-list li {
40 padding: 7px 10px;
41 border-radius: var(--radius-sm);
42 cursor: pointer;
43}
44
45.select-search-list li.is-active {
46 background: var(--surface-2);
47}
48
49.select-search-list li[aria-selected="true"] {
50 background: var(--accent-soft);
51 color: var(--accent-ink);
52 font-weight: 600;
53}
54
55.select-search-list li[aria-disabled="true"] {
56 color: var(--muted);
57 cursor: default;
58}
59
60// Group headers and the no-match line are not options: small muted text, not selectable.
61.select-search-list .select-search-group,
62.select-search-list .select-search-none {
63 font-size: .8125rem;
64 color: var(--muted);
65 padding: 6px 10px;
66 cursor: default;
67}