Download ui/web/src/components/chat/Controls.css from localailb/assistant: direct link, hf CLI and curl.
- Browser
- Download file 5.37 kB
-
https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/components/chat/Controls.css
- Command line
-
hf download hf://spaces/localailb/assistant/ui/web/src/components/chat/Controls.css
-
curl -L -o Controls.css https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/components/chat/Controls.css
5.37 kB
| /* ========================================================================== | |
| Chat control panels — shared styles for RagControls / DrControls / | |
| VisionControls (the mini-field rows, image upload chip + preview). | |
| The `.chip` base style these build on lives in app.css (shared with the | |
| migrated tabs); `.chip upload-chip` extends it here. | |
| ========================================================================== */ | |
| /* RAG-only Knowledge Base status notice — existing files · chunks + a | |
| link that jumps to the Knowledge Base tab. */ | |
| .kb-notice { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| margin-bottom: 10px; | |
| padding: 6px 12px; | |
| border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); | |
| background: var(--bg-soft); | |
| font-size: 12.5px; | |
| color: var(--ink); | |
| } | |
| .kb-notice span { | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .kb-link { | |
| border: none; | |
| background: transparent; | |
| color: var(--accent); | |
| font-family: inherit; | |
| font-size: 12.5px; | |
| cursor: pointer; | |
| padding: 2px 4px; | |
| white-space: nowrap; | |
| } | |
| .kb-link:hover { | |
| text-decoration: underline; | |
| color: var(--accent-deep); | |
| } | |
| .theme-row { | |
| display: flex; | |
| gap: 10px; | |
| margin-bottom: 10px; | |
| flex-wrap: wrap; | |
| } | |
| /* Data Analysis tab: the bilingual model-guidance note above the analysis | |
| settings — a quiet hint that the CodeAgent needs a capable model, so | |
| users don't run it on the tiny default E2B. Uses shared tokens so dark | |
| mode re-maps it automatically. */ | |
| .data-model-tip { | |
| margin: 0 0 10px; | |
| padding: 6px 10px; | |
| border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); | |
| background: var(--bg-soft); | |
| color: var(--ink-soft); | |
| font-size: 12px; | |
| line-height: 1.45; | |
| } | |
| .mini-field { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| border: 1px solid var(--line); | |
| background: var(--bg-soft); | |
| border-radius: var(--radius-sm); | |
| padding: 4px 10px; | |
| } | |
| .mini-field span { | |
| font-size: 12px; | |
| color: var(--ink-faint); | |
| white-space: nowrap; | |
| } | |
| .mini-field input { | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| color: var(--ink); | |
| font-family: inherit; | |
| font-size: 13px; | |
| width: 130px; | |
| } | |
| .mini-field input::placeholder { | |
| color: var(--ink-faint); | |
| } | |
| .mini-field input[type="number"] { | |
| width: 64px; | |
| } | |
| .mini-field select.mini-select { | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| color: var(--ink); | |
| font-family: inherit; | |
| font-size: 13px; | |
| max-width: 220px; | |
| cursor: pointer; | |
| } | |
| .mini-field select.mini-select option { | |
| background: var(--bg-soft, #1e1e1e); | |
| color: var(--ink, #eee); | |
| } | |
| /* VisionControls image row */ | |
| .image-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| margin-bottom: 10px; | |
| flex-wrap: wrap; | |
| } | |
| /* RAG file picker chips — the selected KB source filenames shown under | |
| the Theme/Subtheme/Files row, each with a ✕ remove button. */ | |
| .rag-files { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| margin: -2px 0 10px; | |
| } | |
| .file-chip { | |
| max-width: 240px; | |
| } | |
| .file-chip-name { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .chip-x { | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| color: var(--ink-faint); | |
| font-size: 12px; | |
| line-height: 1; | |
| cursor: pointer; | |
| padding: 2px; | |
| border-radius: 4px; | |
| } | |
| .chip-x:hover, | |
| .chip-x:focus-visible { | |
| color: var(--danger, #b4453a); | |
| background: rgba(255, 255, 255, 0.08); | |
| } | |
| .upload-chip { | |
| cursor: pointer; | |
| user-select: none; | |
| } | |
| .upload-chip:hover { | |
| border-color: var(--accent); | |
| color: var(--accent-ink); | |
| } | |
| .img-preview { | |
| position: relative; | |
| display: inline-flex; | |
| } | |
| .img-preview img { | |
| height: 44px; | |
| width: auto; | |
| max-width: 160px; | |
| border-radius: var(--radius-sm); | |
| border: 1px solid var(--line); | |
| object-fit: cover; | |
| background: var(--bg-soft); | |
| } | |
| .img-remove { | |
| position: absolute; | |
| top: -7px; | |
| right: -7px; | |
| width: 18px; | |
| height: 18px; | |
| border: none; | |
| border-radius: 50%; | |
| background: var(--accent); | |
| color: #fff; | |
| font-size: 12px; | |
| line-height: 1; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); | |
| } | |
| .img-remove:hover { | |
| background: var(--accent-deep); | |
| } | |
| /* Data Analysis tab: the uploaded file chips next to the upload chip. */ | |
| .file-chip { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| max-width: 220px; | |
| overflow: hidden; | |
| font-size: 0.8rem; | |
| border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); | |
| padding: 3px 6px 3px 8px; | |
| background: var(--bg-elev); | |
| color: var(--ink); | |
| } | |
| .file-chip .file-remove { | |
| border: none; | |
| background: transparent; | |
| color: var(--ink-faint); | |
| cursor: pointer; | |
| font-size: 0.9rem; | |
| line-height: 1; | |
| padding: 0 2px; | |
| } | |
| .file-chip .file-remove:hover { | |
| color: var(--err); | |
| } | |
| /* DataControls — the charts folder row (full path + Open button) */ | |
| .data-out-row { | |
| align-items: center; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| .data-out-btn { | |
| border: 1px solid var(--line); | |
| background: var(--bg-elev); | |
| color: var(--ink); | |
| border-radius: 999px; | |
| padding: 4px 12px; | |
| font-size: 12px; | |
| cursor: pointer; | |
| white-space: nowrap; | |
| } | |
| .data-out-btn:hover { | |
| border-color: var(--accent); | |
| } | |
| .data-out-path { | |
| font-size: 11px; | |
| color: var(--ink-soft); | |
| word-break: break-all; | |
| user-select: all; | |
| } | |