Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web/src/publish/publish.css from fsanyoto/runloopable: direct link, hf CLI and curl.
- Browser
- Download file 6.43 kB
-
https://huggingface.co/spaces/fsanyoto/runloopable/resolve/main/web/src/publish/publish.css
- Command line
-
hf download hf://spaces/fsanyoto/runloopable/web/src/publish/publish.css
-
curl -L -o publish.css https://huggingface.co/spaces/fsanyoto/runloopable/resolve/main/web/src/publish/publish.css
6.43 kB
| /* --------------------------------------------------------------------------- | |
| publish / publish.css β the published-view page (wave 33, item 8b, R5). | |
| β CO-LOCATED, per contract C4: `index.css` is B's file this wave, and the | |
| established practice for a new surface is a stylesheet beside its component | |
| (`query.css`, `SwipeView.css`, `navExtras.css`). | |
| β COLOUR is local (`--pubv-*`), TYPE is the product's (`--lp-fs-*`), and the | |
| split is not arbitrary β the first draft of this file declared literal sizes | |
| too and `verify_ui` reded on three of them, correctly. | |
| The FONT-TOKEN LAW is app-wide (DESIGN.md R5, gated by `verify_ui::font_literals` | |
| over every stylesheet under `web/src`), and it binds here for a reason this | |
| page makes sharper rather than weaker: `--lp-fs-*` are RATIOS of the | |
| `html { font-size }` root, so a literal `13px` here would be the one surface | |
| in the product that ignores a reader's browser text size. The draft's argument | |
| for going local β "a stranger's first load must look finished on its own" β | |
| was answered by checking rather than by asserting: `index.css` is imported by | |
| the app entry and is therefore in the single emitted stylesheet on every | |
| route, `#/v/<token>` included. There is no cascade in which these tokens are | |
| absent. | |
| β COLOUR stays local because there IS a real difference there: this page has | |
| no shell chrome around it, so it owns its whole surface rather than sitting | |
| inside one. The values are the product's (navy `#1F4E78`, DESIGN.md's | |
| neutrals), so nothing drifts visually. | |
| β NO EMOJI, no ALL-CAPS chrome β DESIGN.md R6 applies to a public page too. | |
| --------------------------------------------------------------------------- */ | |
| .pubv-root { | |
| --pubv-ink: #1e2233; | |
| --pubv-muted: #5d6478; | |
| --pubv-line: #e3e6ee; | |
| --pubv-surface: #ffffff; | |
| --pubv-ground: #f6f7fb; | |
| --pubv-brand: #1f4e78; | |
| box-sizing: border-box; | |
| min-height: 100vh; | |
| padding: 40px 24px 64px; | |
| background: var(--pubv-ground); | |
| color: var(--pubv-ink); | |
| font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| font-size: var(--lp-fs-sm); | |
| line-height: 1.5; | |
| } | |
| .pubv-root *, | |
| .pubv-root *::before, | |
| .pubv-root *::after { box-sizing: inherit; } | |
| /* Deliberately wordless, exactly like the shell's boot card: a "Loadingβ¦" line | |
| would flash for one round trip on every open. */ | |
| .pubv-boot { background: var(--pubv-ground); } | |
| .pubv-page { max-width: 1120px; margin: 0 auto; } | |
| .pubv-head { | |
| display: flex; | |
| align-items: baseline; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| margin-bottom: 20px; | |
| } | |
| .pubv-title { | |
| margin: 0; | |
| font-size: var(--lp-fs-lg); | |
| font-weight: 600; | |
| letter-spacing: -0.01em; | |
| color: var(--pubv-brand); | |
| } | |
| .pubv-count { margin: 0; color: var(--pubv-muted); font-size: var(--lp-fs-xs); } | |
| .pubv-note { | |
| margin: 14px 0 0; | |
| color: var(--pubv-muted); | |
| font-size: var(--lp-fs-xs); | |
| max-width: 68ch; | |
| } | |
| /* ββ the passphrase card, and the not-available card βββββββββββββββββββββββ */ | |
| .pubv-card { | |
| max-width: 380px; | |
| margin: 12vh auto 0; | |
| padding: 26px 24px; | |
| background: var(--pubv-surface); | |
| border: 1px solid var(--pubv-line); | |
| border-radius: 12px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .pubv-label { font-size: var(--lp-fs-2xs); font-weight: 500; color: var(--pubv-muted); } | |
| .pubv-input { | |
| font: inherit; | |
| padding: 9px 11px; | |
| border: 1px solid var(--pubv-line); | |
| border-radius: 8px; | |
| background: var(--pubv-surface); | |
| color: var(--pubv-ink); | |
| } | |
| .pubv-input:focus-visible { outline: 2px solid var(--pubv-brand); outline-offset: 1px; } | |
| .pubv-error { margin: 0; color: #a3453c; font-size: var(--lp-fs-xs); } | |
| .pubv-btn { | |
| font: inherit; | |
| font-weight: 500; | |
| margin-top: 4px; | |
| padding: 9px 14px; | |
| border: 0; | |
| border-radius: 8px; | |
| background: var(--pubv-brand); | |
| color: #fff; | |
| cursor: pointer; | |
| } | |
| .pubv-btn:disabled { opacity: 0.5; cursor: default; } | |
| /* ββ the map plot ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .pubv-map { | |
| background: var(--pubv-surface); | |
| border: 1px solid var(--pubv-line); | |
| border-radius: 12px; | |
| padding: 8px; | |
| overflow: hidden; | |
| } | |
| .pubv-map svg { display: block; width: 100%; height: auto; } | |
| .pubv-map-bg { fill: #eef2f7; } | |
| .pubv-pin { fill: var(--pubv-brand); fill-opacity: 0.78; stroke: #fff; stroke-width: 1.5; } | |
| /* ββ catalog / swipe cards βββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .pubv-cards { | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | |
| gap: 14px; | |
| } | |
| .pubv-card-item { | |
| background: var(--pubv-surface); | |
| border: 1px solid var(--pubv-line); | |
| border-radius: 12px; | |
| padding: 16px 16px 12px; | |
| } | |
| .pubv-card-title { margin: 0 0 8px; font-size: var(--lp-fs-sm); font-weight: 600; } | |
| .pubv-pairs { margin: 0; display: grid; gap: 4px; } | |
| .pubv-pair { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; } | |
| .pubv-pair dt { color: var(--pubv-muted); font-size: var(--lp-fs-2xs); } | |
| .pubv-pair dd { margin: 0; font-size: var(--lp-fs-xs); text-align: right; } | |
| .pubv-pair dd.is-num { font-variant-numeric: tabular-nums; } | |
| /* ββ the fallback table ββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| /* β The wrapper scrolls, not the page: a wide table must never make the whole | |
| document scroll sideways on a phone. */ | |
| .pubv-tablewrap { | |
| overflow-x: auto; | |
| background: var(--pubv-surface); | |
| border: 1px solid var(--pubv-line); | |
| border-radius: 12px; | |
| } | |
| .pubv-table { border-collapse: collapse; width: 100%; font-size: var(--lp-fs-xs); } | |
| .pubv-table th, | |
| .pubv-table td { | |
| text-align: left; | |
| padding: 9px 14px; | |
| border-bottom: 1px solid var(--pubv-line); | |
| white-space: nowrap; | |
| } | |
| .pubv-table th { font-weight: 500; color: var(--pubv-muted); } | |
| .pubv-table tr:last-child td { border-bottom: 0; } | |
| .pubv-table .is-num { text-align: right; font-variant-numeric: tabular-nums; } | |
| @media (max-width: 600px) { | |
| .pubv-root { padding: 24px 14px 48px; } | |
| .pubv-card { margin-top: 8vh; } | |
| } | |