| 1 | .inline-select { |
| 2 | display: inline-flex; |
| 3 | flex-direction: column; |
| 4 | min-width: 0; |
| 5 | max-width: 100%; |
| 6 | color: var(--ink); |
| 7 | } |
| 8 | .inline-select-trigger { |
| 9 | width: 100%; |
| 10 | justify-content: space-between; |
| 11 | } |
| 12 | .inline-select-trigger > span { |
| 13 | overflow: hidden; |
| 14 | text-overflow: ellipsis; |
| 15 | } |
| 16 | .inline-select-trigger svg { flex: none; } |
| 17 | .inline-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); } |
| 18 | .inline-select-list { |
| 19 | position: fixed; |
| 20 | z-index: 10000; |
| 21 | display: grid; |
| 22 | box-sizing: border-box; |
| 23 | margin: 0; |
| 24 | padding: 3px; |
| 25 | max-height: min(14rem, 32vh); |
| 26 | overflow: auto; |
| 27 | border: 1px solid var(--line); |
| 28 | border-radius: 6px; |
| 29 | background: var(--paper); |
| 30 | color: var(--ink); |
| 31 | font-size: inherit; |
| 32 | font-weight: 400; |
| 33 | text-align: start; |
| 34 | box-shadow: 0 8px 24px #00000020, 0 2px 6px #0000000c; |
| 35 | overscroll-behavior: contain; |
| 36 | } |
| 37 | .inline-select-list [role="option"] { |
| 38 | display: flex; |
| 39 | align-items: center; |
| 40 | justify-content: space-between; |
| 41 | gap: 4px; |
| 42 | padding: 5px 7px; |
| 43 | border-radius: 4px; |
| 44 | overflow-wrap: anywhere; |
| 45 | cursor: var(--control-cursor, default); |
| 46 | } |
| 47 | .inline-select-list [aria-selected="true"] { background: var(--selected); } |
| 48 | .inline-select-list [data-active], .inline-select-list [role="option"]:hover { outline: 1px solid var(--focus); outline-offset: -1px; } |
| 49 | .inline-select-list [aria-disabled="true"] { color: var(--muted); } |
| 50 | .inline-select-group { padding: 6px 7px 2px; color: var(--muted); font-size: .85em; } |