Spaces:
Running on Zero
Running on Zero
Download style.css from Shadow0482/lfm_omni3: direct link, hf CLI and curl.
- Browser
- Download file 8.06 kB
-
https://huggingface.co/spaces/Shadow0482/lfm_omni3/resolve/main/style.css
- Command line
-
hf download hf://spaces/Shadow0482/lfm_omni3/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Shadow0482/lfm_omni3/resolve/main/style.css
8.06 kB
| /* Dark theme: deep sea-blue surfaces, aqua for the model, amber when it hears you, | |
| iris while it thinks. The orb is the one loud element; everything else stays quiet. */ | |
| :root { | |
| --bg: #070c12; | |
| --surface: #0d1621; | |
| --surface-2: #121f2d; | |
| --line: #1c2e40; | |
| --line-strong: #2b4660; | |
| --text: #e7f0f3; | |
| --muted: #8ba3af; | |
| --aqua: #5ee6d0; | |
| --aqua-ink: #04201c; | |
| --amber: #ffb454; | |
| --iris: #93a6ff; | |
| --danger: #ff8080; | |
| --radius: 14px; | |
| color-scheme: dark; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; min-height: 100%; background: var(--bg); } | |
| body { | |
| color: var(--text); | |
| font-family: "Instrument Sans", system-ui, sans-serif; | |
| font-size: 16px; | |
| line-height: 1.5; | |
| padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); | |
| } | |
| .app { max-width: 1160px; margin: 0 auto; padding: 22px 20px 40px; } | |
| /* ---- header ---- */ | |
| .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; } | |
| .brand h1 { | |
| margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; | |
| font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; | |
| } | |
| .brand p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; } | |
| .top-right { display: flex; align-items: center; gap: 14px; } | |
| .lab-link { color: var(--aqua); text-underline-offset: 3px; font-weight: 500; } | |
| .chip { | |
| display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; | |
| border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--muted); | |
| background: var(--surface); | |
| } | |
| .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } | |
| .chip[data-state="ready"] { color: var(--text); } | |
| .chip[data-state="ready"] i { background: var(--aqua); box-shadow: 0 0 8px var(--aqua); } | |
| .chip[data-state="connecting"] i { background: var(--amber); } | |
| .chip[data-state="offline"] { color: var(--danger); border-color: #4a2a2e; } | |
| .chip[data-state="offline"] i { background: var(--danger); } | |
| /* ---- layout ---- */ | |
| .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; } | |
| @media (min-width: 940px) { | |
| .layout { grid-template-columns: 430px minmax(0, 1fr); align-items: start; } | |
| .stage { position: sticky; top: 18px; } | |
| } | |
| .stage, .chat { | |
| background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; | |
| } | |
| /* ---- stage ---- */ | |
| .orb-wrap { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; } | |
| #orb { width: 100%; height: 100%; display: block; } | |
| .pip { | |
| position: absolute; right: -6px; bottom: -6px; width: 40%; aspect-ratio: 4 / 3; object-fit: cover; | |
| border-radius: 12px; border: 2px solid var(--line-strong); background: #000; cursor: pointer; | |
| } | |
| .pip[hidden] { display: none; } | |
| .status { | |
| margin: 8px 0 2px; text-align: center; font-family: "Bricolage Grotesque", sans-serif; | |
| font-weight: 500; font-size: 1.3rem; transition: color .2s; | |
| } | |
| .status[data-state="listening"], .status[data-state="speaking"] { color: var(--aqua); } | |
| .status[data-state="hearing"] { color: var(--amber); } | |
| .status[data-state="thinking"] { color: var(--iris); } | |
| .hint { margin: 0 0 14px; text-align: center; color: var(--muted); font-size: 0.92rem; min-height: 1.4em; } | |
| .meter { position: relative; height: 4px; border-radius: 4px; background: var(--surface-2); margin: 0 auto 18px; max-width: 280px; overflow: hidden; } | |
| #meter-fill { position: absolute; inset: 0; background: var(--aqua); transform-origin: left; transform: scaleX(0); transition: background-color .15s; } | |
| #meter-fill.hot { background: var(--amber); } | |
| #meter-thr { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--muted); opacity: .7; left: 20%; } | |
| .controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } | |
| .keys { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 0.8rem; } | |
| button { | |
| font: inherit; font-weight: 500; cursor: pointer; border-radius: 999px; padding: 10px 18px; | |
| border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; | |
| } | |
| button:active:not(:disabled) { transform: translateY(1px); } | |
| button:disabled { opacity: .4; cursor: not-allowed; } | |
| button[hidden] { display: none; } | |
| button.primary { background: var(--aqua); color: var(--aqua-ink); } | |
| button.primary:hover:not(:disabled) { background: #7df0de; } | |
| button.primary.live { background: transparent; color: var(--danger); border-color: #5a3036; } | |
| button.primary.live:hover { border-color: var(--danger); background: #1a1115; } | |
| button.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); } | |
| button.ghost:hover:not(:disabled) { border-color: var(--aqua); } | |
| button.ghost[aria-pressed="true"] { border-color: var(--aqua); color: var(--aqua); background: #0f2a2b; } | |
| button.ghost.holding { background: var(--amber); border-color: var(--amber); color: #2a1a00; } | |
| button.small { padding: 8px 14px; } | |
| :focus-visible { outline: 3px solid var(--iris); outline-offset: 2px; } | |
| /* ---- settings ---- */ | |
| .settings { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; } | |
| .settings summary { cursor: pointer; font-weight: 500; } | |
| .settings fieldset { border: 0; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; } | |
| .settings legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 0.85rem; } | |
| .settings label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--muted); } | |
| .settings label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); } | |
| .settings small { color: var(--muted); } | |
| .settings select, .settings textarea, #msg { | |
| font: inherit; color: var(--text); background: var(--surface-2); | |
| border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; | |
| } | |
| .settings textarea { resize: vertical; } | |
| input[type="range"] { accent-color: var(--aqua); } | |
| input[type="checkbox"] { accent-color: var(--aqua); width: 16px; height: 16px; } | |
| .settings button { justify-self: start; } | |
| /* ---- chat ---- */ | |
| .chat { display: flex; flex-direction: column; min-height: 440px; } | |
| @media (min-width: 940px) { .chat { height: min(740px, calc(100vh - 120px)); } } | |
| .log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 4px 14px 2px; scrollbar-color: var(--line-strong) transparent; } | |
| .empty { margin: auto; text-align: center; color: var(--muted); max-width: 30ch; } | |
| .empty p { margin: 4px 0; } | |
| .msg { max-width: 86%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); overflow-wrap: anywhere; } | |
| .msg.me { align-self: flex-end; background: #11283a; border-color: #1d4059; border-bottom-right-radius: 4px; } | |
| .msg.ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; } | |
| .msg.ai .dim { color: var(--muted); } | |
| .msg.err { align-self: center; border-color: #5a3036; color: var(--danger); background: #1a1115; font-size: 0.92rem; } | |
| .msg.pending { color: var(--muted); } | |
| .msg.voice .said { font-style: italic; color: var(--muted); } | |
| .msg .meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 0.8rem; color: var(--muted); } | |
| .msg .meta button { padding: 2px 10px; font-size: 0.8rem; } | |
| .msg img.thumb { display: block; width: 96px; border-radius: 8px; margin-bottom: 6px; } | |
| .dots { display: inline-flex; gap: 4px; vertical-align: middle; } | |
| .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--iris); animation: pulse 1.2s infinite ease-in-out; } | |
| .dots span:nth-child(2) { animation-delay: .15s; } | |
| .dots span:nth-child(3) { animation-delay: .3s; } | |
| @keyframes pulse { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } } | |
| .composer { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); } | |
| #msg { flex: 1; min-width: 0; border-radius: 999px; padding: 10px 16px; } | |
| #msg::placeholder { color: var(--muted); } | |
| @media (prefers-reduced-motion: reduce) { | |
| * { transition: none ; animation: none ; } | |
| } | |