Download ui/web/src/components/chat/MiniSelect.css from localailb/assistant: direct link, hf CLI and curl.
- Browser
- Download file 3.14 kB
-
https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/components/chat/MiniSelect.css
- Command line
-
hf download hf://spaces/localailb/assistant/ui/web/src/components/chat/MiniSelect.css
-
curl -L -o MiniSelect.css https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/components/chat/MiniSelect.css
3.14 kB
| /* Custom dropdown (MiniSelect.svelte) — replaces the native <select> for | |
| the Generation Settings controls. Pure DOM popup: option clicks always | |
| land (a native select's OS-level popup is what WebView2 clips/mis-hits at | |
| the bottom of the app window). The menu flips above the trigger when | |
| there is no room below. */ | |
| .minisel { | |
| position: relative; | |
| display: inline-flex; | |
| align-items: center; | |
| } | |
| .minisel-trigger { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| color: var(--ink); | |
| font-family: inherit; | |
| font-size: 13px; | |
| max-width: 220px; | |
| cursor: pointer; | |
| padding: 2px 0; | |
| text-align: left; | |
| } | |
| .minisel-val { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .minisel-caret { | |
| color: var(--ink-faint); | |
| font-size: 10px; | |
| flex: none; | |
| } | |
| .minisel-trigger:hover .minisel-caret, | |
| .minisel-trigger:focus-visible .minisel-caret { | |
| color: var(--ink); | |
| } | |
| .minisel-menu { | |
| position: absolute; | |
| left: 0; | |
| top: calc(100% + 6px); | |
| /* Above the styled .lal-tooltip (z-index 1000) — an open menu must never | |
| be covered by hover chrome, even a tooltip that lingers from the | |
| trigger. (No ancestor creates a stacking context, so this competes in | |
| the root context directly against the tooltip's fixed bubble.) */ | |
| z-index: 1100; | |
| min-width: 100%; | |
| max-width: 320px; | |
| max-height: 220px; | |
| overflow-y: auto; | |
| margin: 0; | |
| padding: 4px; | |
| list-style: none; | |
| background: var(--bg-soft, #1f1f1f); | |
| border: 1px solid var(--line, #333); | |
| border-radius: var(--radius-sm, 8px); | |
| box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); | |
| } | |
| .minisel-menu.up { | |
| top: auto; | |
| bottom: calc(100% + 6px); | |
| } | |
| .minisel-menu li { | |
| display: block; | |
| } | |
| .minisel-opt { | |
| display: block; | |
| width: 100%; | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| color: var(--ink, #eee); | |
| font-family: inherit; | |
| font-size: 13px; | |
| text-align: left; | |
| cursor: pointer; | |
| padding: 6px 10px; | |
| border-radius: 6px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .minisel-opt:hover, | |
| .minisel-opt:focus-visible, | |
| .minisel-opt[aria-selected="true"] { | |
| background: var(--bg-hover, rgba(255, 255, 255, 0.08)); | |
| } | |
| /* Multi-select mode: a reserved check column so labels align; the ✓ | |
| appears only on checked entries, tinted with the theme's accent. */ | |
| .minisel-check { | |
| display: inline-block; | |
| width: 14px; | |
| margin-right: 4px; | |
| color: var(--accent, #d97757); | |
| font-weight: 700; | |
| visibility: hidden; | |
| } | |
| .minisel-opt.checked .minisel-check { | |
| visibility: visible; | |
| } | |
| /* Creatable mode: the "+ Add new" input pinned at the menu's bottom. */ | |
| .minisel-create { | |
| border-top: 1px solid var(--line, #333); | |
| margin-top: 4px; | |
| padding-top: 4px; | |
| } | |
| .minisel-create-input { | |
| display: block; | |
| width: 100%; | |
| box-sizing: border-box; | |
| border: 1px solid var(--line, #333); | |
| outline: none; | |
| background: var(--bg-soft, #1f1f1f); | |
| color: var(--ink, #eee); | |
| font-family: inherit; | |
| font-size: 13px; | |
| border-radius: 6px; | |
| padding: 6px 10px; | |
| } | |
| .minisel-create-input:focus { | |
| border-color: var(--accent, #d97757); | |
| } |