Spaces:
Sleeping
Sleeping
Download frontend/src/App.css from neongeckocom/LLM_Comparison_Tool: direct link, hf CLI and curl.
- Browser
- Download file 11.5 kB
-
https://huggingface.co/spaces/neongeckocom/LLM_Comparison_Tool/resolve/main/frontend/src/App.css
- Command line
-
hf download hf://spaces/neongeckocom/LLM_Comparison_Tool/frontend/src/App.css
-
curl -L -o App.css https://huggingface.co/spaces/neongeckocom/LLM_Comparison_Tool/resolve/main/frontend/src/App.css
11.5 kB
| /* ── Layout ──────────────────────────────────────────────────────── */ | |
| .app { | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .app-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 12px 24px; | |
| background: var(--header-bg); | |
| border-bottom: 1px solid var(--border-primary); | |
| box-shadow: var(--shadow-sm); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-left { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| min-width: 0; | |
| } | |
| .icon-btn.sidebar-toggle { | |
| display: none; | |
| } | |
| .header-brand-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| text-decoration: none; | |
| transition: opacity 0.15s; | |
| flex-shrink: 0; | |
| } | |
| .header-brand-link:hover { | |
| opacity: 0.8; | |
| } | |
| .app-logo { | |
| height: 32px; | |
| width: auto; | |
| } | |
| .app-title { | |
| font-size: 20px; | |
| font-weight: 700; | |
| background: var(--accent-gradient); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| min-width: 0; | |
| } | |
| .app-title-link { | |
| all: unset; | |
| cursor: pointer; | |
| } | |
| .app-title-link:hover { | |
| opacity: 0.8; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex-shrink: 0; | |
| } | |
| .icon-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| border: 1px solid var(--border-primary); | |
| border-radius: 8px; | |
| background: var(--card-bg); | |
| color: var(--text-secondary); | |
| box-shadow: var(--shadow-sm); | |
| transition: background 0.15s, color 0.15s, border-color 0.15s; | |
| } | |
| .icon-btn:hover { | |
| background: var(--card-hover); | |
| color: var(--text-primary); | |
| border-color: var(--border-primary); | |
| } | |
| .icon-btn:focus-visible { | |
| box-shadow: var(--focus-ring); | |
| } | |
| .spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| /* ── Settings dropdown ─────────────────────────────────────────── */ | |
| .settings-wrapper { | |
| position: relative; | |
| } | |
| .settings-dropdown { | |
| position: absolute; | |
| top: calc(100% + 6px); | |
| right: 0; | |
| min-width: 230px; | |
| background: var(--card-bg); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 10px; | |
| box-shadow: var(--shadow-lg); | |
| padding: 8px; | |
| z-index: 200; | |
| } | |
| .settings-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| } | |
| .settings-section + .settings-section { | |
| margin-top: 4px; | |
| padding-top: 4px; | |
| border-top: 1px solid var(--border-muted); | |
| } | |
| .settings-label { | |
| font-size: 11px; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| padding: 4px 10px 6px; | |
| } | |
| .settings-option { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 10px; | |
| border: none; | |
| border-radius: 6px; | |
| background: none; | |
| color: var(--text-secondary); | |
| font-size: 13px; | |
| font-weight: 500; | |
| text-align: left; | |
| transition: background 0.12s, color 0.12s; | |
| } | |
| .settings-option:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-primary); | |
| } | |
| .settings-option:focus-visible { | |
| box-shadow: var(--focus-ring); | |
| } | |
| .settings-option.active { | |
| background: var(--accent-light); | |
| color: var(--accent-primary); | |
| font-weight: 600; | |
| } | |
| /* ── Model Status modal ─────────────────────────────────────────── */ | |
| .modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0, 0, 0, 0.45); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 500; | |
| padding: 16px; | |
| } | |
| .modal-panel { | |
| background: var(--card-bg); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 12px; | |
| box-shadow: var(--shadow-lg); | |
| width: 100%; | |
| max-width: 520px; | |
| max-height: min(80vh, 640px); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| padding: 14px 16px; | |
| border-bottom: 1px solid var(--border-muted); | |
| } | |
| .modal-title { | |
| margin: 0; | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .modal-header-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .modal-body { | |
| padding: 8px 12px 16px; | |
| overflow-y: auto; | |
| } | |
| .model-status-empty { | |
| margin: 16px 8px; | |
| color: var(--text-muted); | |
| font-size: 13px; | |
| } | |
| .model-status-list { | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .model-status-row { | |
| padding: 10px 10px; | |
| border-radius: 8px; | |
| background: var(--bg-tertiary); | |
| } | |
| .model-status-main { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| } | |
| .model-status-names { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| min-width: 0; | |
| } | |
| .model-status-provider { | |
| font-size: 11px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.03em; | |
| color: var(--text-muted); | |
| } | |
| .model-status-model { | |
| font-size: 13px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .model-status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 4px; | |
| flex-shrink: 0; | |
| font-size: 11px; | |
| font-weight: 600; | |
| padding: 3px 8px; | |
| border-radius: 999px; | |
| } | |
| .model-status-badge.status-online { | |
| color: #0a7a40; | |
| background: rgba(10, 122, 64, 0.12); | |
| } | |
| .model-status-badge.status-unavailable { | |
| color: #8a6d1d; | |
| background: rgba(138, 109, 29, 0.14); | |
| } | |
| .model-status-badge.status-error { | |
| color: #b42318; | |
| background: rgba(180, 35, 24, 0.12); | |
| } | |
| :root[data-theme="dark"] .model-status-badge.status-online { | |
| color: #5dcaa0; | |
| background: rgba(93, 202, 160, 0.15); | |
| } | |
| :root[data-theme="dark"] .model-status-badge.status-unavailable { | |
| color: #e0c35a; | |
| background: rgba(224, 195, 90, 0.15); | |
| } | |
| :root[data-theme="dark"] .model-status-badge.status-error { | |
| color: #f97066; | |
| background: rgba(249, 112, 102, 0.15); | |
| } | |
| .model-status-error { | |
| margin: 8px 0 0; | |
| padding: 8px; | |
| font-size: 11px; | |
| line-height: 1.4; | |
| color: var(--text-secondary); | |
| background: var(--card-bg); | |
| border: 1px solid var(--border-muted); | |
| border-radius: 6px; | |
| white-space: pre-wrap; | |
| word-break: break-word; | |
| max-height: 72px; | |
| overflow: hidden; | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| } | |
| /* ── Main layout ────────────────────────────────────────────────── */ | |
| .app-main { | |
| display: flex; | |
| flex: 1; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .sidebar-overlay { | |
| display: none; | |
| } | |
| .sidebar { | |
| width: 320px; | |
| min-width: 320px; | |
| padding: 16px; | |
| overflow-y: auto; | |
| border-right: 1px solid var(--border-primary); | |
| background: var(--sidebar-bg); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| max-height: calc(100vh - 57px); | |
| } | |
| .sidebar-title { | |
| font-size: 18px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| text-align: center; | |
| padding-bottom: 8px; | |
| border-bottom: 2px solid var(--accent-primary); | |
| margin: 0; | |
| } | |
| .content { | |
| flex: 1; | |
| padding: 24px; | |
| overflow-y: auto; | |
| max-height: calc(100vh - 57px); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| min-width: 0; | |
| } | |
| .content-hint { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| margin: 0; | |
| max-width: 52rem; | |
| } | |
| .content-hint-lead { | |
| font-size: 18px; | |
| font-weight: 600; | |
| line-height: 1.3; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .content-hint-body { | |
| font-size: 15px; | |
| font-weight: 400; | |
| line-height: 1.5; | |
| color: var(--text-secondary); | |
| margin: 0; | |
| } | |
| .content-hint-mobile { | |
| display: none; | |
| } | |
| /* ── Error banner ───────────────────────────────────────────────── */ | |
| .error-banner { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 10px 16px; | |
| background: #FEE2E2; | |
| color: #991B1B; | |
| border: 1px solid #FECACA; | |
| border-radius: 8px; | |
| font-size: 14px; | |
| } | |
| :root[data-theme="dark"] .error-banner { | |
| background: #450A0A; | |
| color: #FCA5A5; | |
| border-color: #7F1D1D; | |
| } | |
| .error-banner button { | |
| background: none; | |
| border: none; | |
| color: inherit; | |
| font-size: 18px; | |
| padding: 0 4px; | |
| line-height: 1; | |
| } | |
| /* ── Footer ─────────────────────────────────────────────────────── */ | |
| .app-footer { | |
| padding: 8px 24px; | |
| text-align: center; | |
| font-size: 10px; | |
| color: var(--text-muted); | |
| border-top: 1px solid var(--border-primary); | |
| background: var(--card-bg); | |
| } | |
| .app-footer a { | |
| color: var(--text-muted); | |
| text-decoration: underline; | |
| transition: color 0.15s; | |
| } | |
| .app-footer a:hover { | |
| color: var(--text-secondary); | |
| } | |
| /* ── Responsive: Tablet (<= 900px) ───────────────────────────── */ | |
| @media (max-width: 900px) { | |
| .app-header { | |
| padding: 10px 16px; | |
| } | |
| .icon-btn.sidebar-toggle { | |
| display: flex; | |
| } | |
| .content-hint-desktop { | |
| display: none; | |
| } | |
| .content-hint-mobile { | |
| display: block; | |
| } | |
| .app-title { | |
| font-size: 16px; | |
| } | |
| .app-main { | |
| flex-direction: column; | |
| } | |
| .sidebar-overlay { | |
| display: block; | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0, 0, 0, 0.4); | |
| z-index: 49; | |
| opacity: 0; | |
| pointer-events: none; | |
| transition: opacity 0.25s; | |
| } | |
| .sidebar-overlay.visible { | |
| opacity: 1; | |
| pointer-events: auto; | |
| } | |
| .sidebar { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; | |
| width: 320px; | |
| min-width: 320px; | |
| max-height: 100vh; | |
| z-index: 50; | |
| transform: translateX(-100%); | |
| transition: transform 0.25s ease; | |
| border-right: 1px solid var(--border-primary); | |
| border-bottom: none; | |
| padding-top: 60px; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| .content { | |
| max-height: none; | |
| padding: 16px; | |
| flex: 1; | |
| overflow-y: auto; | |
| } | |
| } | |
| /* ── Responsive: Phone (<= 480px) ────────────────────────────── */ | |
| @media (max-width: 480px) { | |
| .app-header { | |
| padding: 8px 12px; | |
| gap: 4px; | |
| } | |
| .header-left { | |
| gap: 6px; | |
| } | |
| .app-logo { | |
| height: 24px; | |
| } | |
| .app-brand-name { | |
| display: none; | |
| } | |
| .app-title { | |
| font-size: 14px; | |
| } | |
| .header-right { | |
| gap: 4px; | |
| } | |
| .icon-btn { | |
| width: 40px; | |
| height: 40px; | |
| } | |
| .sidebar { | |
| width: 85vw; | |
| min-width: 85vw; | |
| } | |
| .content { | |
| padding: 12px 10px; | |
| gap: 14px; | |
| } | |
| .app-footer { | |
| padding: 6px 12px; | |
| } | |
| } | |