Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download static/style.css from hugging-3d/smithsonian-3d-explorer: direct link, hf CLI and curl.
- Browser
- Download file 12.2 kB
-
https://huggingface.co/spaces/hugging-3d/smithsonian-3d-explorer/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/hugging-3d/smithsonian-3d-explorer/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/hugging-3d/smithsonian-3d-explorer/resolve/main/static/style.css
12.2 kB
| /* Two identities, one layout. | |
| nasa: clean-room aluminium, ink navy, Kapton-foil gold. Archivo throughout, wide cuts for display. | |
| smithsonian: museum vitrine, green-slate dark, brass. Newsreader titles, Public Sans text. */ | |
| :root[data-ds="nasa"] { | |
| --bg: #e6e9ec; | |
| --panel: #f4f5f6; | |
| --well: #d7dce1; | |
| --ink: #16213a; | |
| --ink-2: #4a5568; | |
| --line: #c3cad3; | |
| --accent: #b88a17; /* Kapton gold */ | |
| --accent-ink: #fffaf0; | |
| --signal: #1f46c9; /* drafting blue, links + focus */ | |
| --stage: #dfe3e8; | |
| --stage-2: #c8ced6; | |
| --font-display: "Archivo", system-ui, sans-serif; | |
| --font-text: "Archivo", system-ui, sans-serif; | |
| --display-wdth: 118; | |
| --display-wght: 760; | |
| --title-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); | |
| --radius-card: 2px; | |
| color-scheme: light; | |
| } | |
| :root[data-ds="smithsonian"] { | |
| --bg: #1c2320; | |
| --panel: #252e2a; | |
| --well: #303a35; | |
| --ink: #ece8dc; | |
| --ink-2: #a9b0a6; | |
| --line: #3b4741; | |
| --accent: #c9a25d; /* brass */ | |
| --accent-ink: #1c2320; | |
| --signal: #e2c48a; | |
| --stage: #26302b; | |
| --stage-2: #141a17; | |
| --font-display: "Newsreader", Georgia, serif; | |
| --font-text: "Public Sans", system-ui, sans-serif; | |
| --display-wdth: 100; | |
| --display-wght: 500; | |
| --title-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); | |
| --radius-card: 3px; | |
| color-scheme: dark; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; } | |
| body { | |
| background: var(--bg); | |
| color: var(--ink); | |
| font: 400 15px/1.5 var(--font-text); | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| a { color: var(--signal); text-underline-offset: 2px; } | |
| :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; } | |
| .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } | |
| button { font: inherit; color: inherit; cursor: pointer; } | |
| [hidden] { display: none ; } | |
| /* ---------- masthead ---------- */ | |
| .masthead { padding: 28px 24px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg); } | |
| .mast-inner { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; } | |
| .ident h1 { | |
| margin: 0; font-family: var(--font-display); font-size: var(--title-size); line-height: 1; | |
| font-variation-settings: "wdth" var(--display-wdth); font-weight: var(--display-wght); letter-spacing: -0.01em; | |
| } | |
| :root[data-ds="smithsonian"] .ident h1 { font-variation-settings: "opsz" 72; letter-spacing: -0.015em; } | |
| .ident p { margin: 8px 0 0; color: var(--ink-2); max-width: 62ch; } | |
| .ds-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; } | |
| .searchrow { display: flex; gap: 12px; align-items: center; padding: 18px 0 16px; } | |
| .search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); padding: 0 12px; height: 46px; border-radius: 2px; } | |
| .search:focus-within { border-color: var(--signal); } | |
| .search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; flex: none; } | |
| .search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; min-width: 0; } | |
| .search kbd { font: 12px var(--font-text); color: var(--ink-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; } | |
| .sort { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; } | |
| .sort select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); height: 46px; padding: 0 10px; font: inherit; border-radius: 2px; } | |
| .btn { background: var(--accent); color: var(--accent-ink); border: 0; padding: 9px 14px; border-radius: 2px; font-weight: 600; } | |
| .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; } | |
| .btn.ghost:hover { border-color: var(--ink-2); } | |
| .btn:disabled { opacity: .35; cursor: default; } | |
| .btn.small { padding: 3px 9px; font-size: 13px; } | |
| .only-narrow { display: none; } | |
| /* ---------- layout ---------- */ | |
| .layout { display: grid; grid-template-columns: 250px 1fr; gap: 0; align-items: start; } | |
| .facets { position: sticky; top: var(--mast-h, 160px); max-height: calc(100vh - var(--mast-h, 160px)); overflow: auto; padding: 18px 20px 40px 24px; border-right: 1px solid var(--line); } | |
| .facet { margin-bottom: 22px; } | |
| .facet h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink); letter-spacing: 0.01em; } | |
| .facet ul { list-style: none; margin: 0; padding: 0; } | |
| .facet li button { | |
| width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; | |
| padding: 4px 6px; margin: 0 -6px; border-radius: 2px; font-size: 14px; color: var(--ink-2); | |
| } | |
| .facet li button:hover { background: var(--well); color: var(--ink); } | |
| .facet li button[aria-pressed="true"] { background: var(--ink); color: var(--bg); } | |
| .facet li button .n { font-variant-numeric: tabular-nums; opacity: .75; } | |
| .facet li button[disabled] { opacity: .35; cursor: default; } | |
| .facet .more { background: none; border: 0; color: var(--signal); padding: 4px 0; font-size: 13px; } | |
| .results { padding: 14px 24px 60px; min-width: 0; } | |
| .result-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; min-height: 34px; margin-bottom: 10px; } | |
| .result-bar p { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; } | |
| .chips { display: flex; gap: 6px; flex-wrap: wrap; } | |
| .chip { background: var(--well); border: 0; border-radius: 20px; padding: 3px 10px 3px 12px; font-size: 13px; color: var(--ink); } | |
| .chip::after { content: " ×"; color: var(--ink-2); } | |
| /* ---------- grid: the wall of objects ---------- */ | |
| .grid { list-style: none; margin: 0; padding: 1px 0 0 1px; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0; } | |
| .card { background: var(--panel); outline: 1px solid var(--line); margin: 0 1px 1px 0; } | |
| .card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; } | |
| .card .ph { aspect-ratio: 1; background: var(--stage); display: grid; place-items: center; overflow: hidden; } | |
| :root[data-ds="smithsonian"] .card .ph { background: radial-gradient(circle at 50% 40%, #34403a, #1b221f 75%); } | |
| .card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; } | |
| .card button:hover img { transform: scale(1.04); } | |
| .card .ext { font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 700; font-size: 34px; color: var(--ink-2); } | |
| .card .cap { padding: 9px 11px 11px; } | |
| .card .t { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } | |
| :root[data-ds="smithsonian"] .card .t { font-family: var(--font-display); font-size: 16px; font-weight: 500; } | |
| :root[data-ds="smithsonian"] .card .t.sci { font-style: italic; } | |
| .card .s { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .card .tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 3px; } | |
| .empty { padding: 60px 0; text-align: center; color: var(--ink-2); } | |
| /* ---------- detail ---------- */ | |
| .detail { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) 420px; background: var(--bg); } | |
| .stage { position: relative; background: radial-gradient(ellipse at 50% 35%, var(--stage), var(--stage-2)); overflow: hidden; } | |
| #canvas { width: 100%; height: 100%; display: block; touch-action: none; } | |
| #tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; } | |
| #tex.zoom { object-fit: none; cursor: zoom-out; padding: 0; } | |
| #tex { cursor: zoom-in; } | |
| .filecard { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--ink-2); } | |
| .filecard .big { font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 750; font-size: clamp(64px, 12vw, 150px); color: var(--ink); line-height: 1; } | |
| .loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 80%); text-align: center; color: var(--ink-2); font-size: 14px; } | |
| .loading .bar { height: 3px; background: var(--line); overflow: hidden; } | |
| .loading .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; } | |
| .loading.indeterminate .bar span { width: 30%; animation: slide 1.1s ease-in-out infinite; } | |
| @keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } } | |
| .tools { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; } | |
| .tool { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; border-radius: 2px; backdrop-filter: blur(6px); } | |
| .tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } | |
| .hint { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 12px; color: var(--ink-2); } | |
| .info { overflow: auto; padding: 18px 26px 40px; border-left: 1px solid var(--line); background: var(--panel); } | |
| .info-top { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; } | |
| .info-top span { flex: 1; text-align: center; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; } | |
| .kicker { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 600; } | |
| .info h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-wght); font-variation-settings: "wdth" 105; font-size: 28px; line-height: 1.12; } | |
| :root[data-ds="smithsonian"] .info h2 { font-weight: 500; font-size: 31px; font-variation-settings: "opsz" 40; } | |
| :root[data-ds="smithsonian"] .info h2.sci { font-style: italic; } | |
| .sub { margin: 6px 0 0; color: var(--ink-2); } | |
| .desc { margin-top: 14px; max-width: 62ch; } | |
| .desc p { margin: 0 0 10px; } | |
| .meta { display: grid; grid-template-columns: 118px 1fr; gap: 7px 14px; margin: 20px 0; font-size: 14px; } | |
| .meta dt { color: var(--ink-2); } | |
| .meta dd { margin: 0; overflow-wrap: anywhere; min-width: 0; } | |
| .meta dd .fl { background: none; border: 0; padding: 0; color: var(--signal); text-decoration: underline; text-underline-offset: 2px; text-align: left; } | |
| .links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; font-size: 14px; } | |
| .code { border: 1px solid var(--line); } | |
| .code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); } | |
| .code pre { margin: 0; padding: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.55 ui-monospace, "SF Mono", Menlo, monospace; background: var(--well); } | |
| .foot { padding: 26px 24px 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; } | |
| .foot p { margin: 0 0 6px; max-width: 90ch; } | |
| @media (max-width: 1000px) { | |
| .detail { grid-template-columns: minmax(0, 1fr); grid-template-rows: 55vh auto; overflow: auto; } | |
| .info { border-left: 0; border-top: 1px solid var(--line); overflow: visible; } | |
| } | |
| @media (max-width: 760px) { | |
| .masthead { padding: 18px 16px 0; position: static; } | |
| .layout { grid-template-columns: 1fr; } | |
| .only-narrow { display: inline-block; } | |
| .sort span { display: none; } | |
| .facets { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; display: none; } | |
| .facets.open { display: block; } | |
| .results { padding: 12px 16px 40px; } | |
| .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } | |
| .hint { display: none; } | |
| .search kbd { display: none; } | |
| .searchrow { flex-wrap: wrap; } | |
| .search { flex: 1 0 100%; } | |
| .sort { flex: 1; } | |
| .sort select { width: 100%; } | |
| .info { padding: 16px 16px 40px; } | |
| .info-top .btn { padding: 8px 10px; } | |
| .meta { grid-template-columns: 104px minmax(0, 1fr); } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .card img { transition: none; } | |
| .loading.indeterminate .bar span { animation: none; width: 100%; opacity: .5; } | |
| } | |