Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download static/style.css from hugging-3d/gso-subset-builder: direct link, hf CLI and curl.
- Browser
- Download file 18.7 kB
-
https://huggingface.co/spaces/hugging-3d/gso-subset-builder/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/hugging-3d/gso-subset-builder/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/hugging-3d/gso-subset-builder/resolve/main/static/style.css
18.7 kB
| :root { | |
| --bg: #f6f5f2; | |
| --panel: #ffffff; | |
| --ink: #1d1c1a; | |
| --muted: #6b6862; | |
| --line: #e3e0d9; | |
| --accent: #2f6f5e; | |
| --accent-ink: #ffffff; | |
| --accent-soft: #e2efe9; | |
| --warn-bg: #fdf3e1; | |
| --warn-ink: #7a4b00; | |
| --tile: #eceae4; | |
| --shadow: 0 8px 30px rgb(0 0 0 / .12); | |
| --radius: 10px; | |
| --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; | |
| --mono: ui-monospace, "SF Mono", Menlo, monospace; | |
| color-scheme: light; | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| :root:not([data-theme="light"]) { | |
| --bg: #151614; --panel: #1d1f1c; --ink: #ecebe6; --muted: #a09d95; --line: #30332e; | |
| --accent: #6cc3a8; --accent-ink: #0c1a15; --accent-soft: #1f3a31; | |
| --warn-bg: #3a2e14; --warn-ink: #f2cf8a; --tile: #262925; --shadow: 0 8px 30px rgb(0 0 0 / .5); color-scheme: dark; | |
| } | |
| } | |
| :root[data-theme="dark"] { | |
| --bg: #151614; --panel: #1d1f1c; --ink: #ecebe6; --muted: #a09d95; --line: #30332e; | |
| --accent: #6cc3a8; --accent-ink: #0c1a15; --accent-soft: #1f3a31; | |
| --warn-bg: #3a2e14; --warn-ink: #f2cf8a; --tile: #262925; --shadow: 0 8px 30px rgb(0 0 0 / .5); color-scheme: dark; | |
| } | |
| * { box-sizing: border-box; } | |
| [hidden] { display: none ; } | |
| html, body { margin: 0; } | |
| body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); padding-bottom: 84px; } | |
| a { color: var(--accent); } | |
| code { font: 12px var(--mono); background: var(--tile); padding: 1px 4px; border-radius: 4px; word-break: break-all; } | |
| h1, h2, h3, h4 { margin: 0; font-weight: 600; } | |
| h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; } | |
| h3 { font-size: 13px; margin: 18px 0 8px; } | |
| .hint { color: var(--muted); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; } | |
| .center { text-align: center; } | |
| button, .btn { | |
| font: inherit; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); | |
| border-radius: 8px; padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-flex; | |
| align-items: center; gap: 6px; white-space: nowrap; | |
| } | |
| button:hover:not(:disabled), .btn:hover { border-color: var(--muted); } | |
| button:disabled { opacity: .45; cursor: not-allowed; } | |
| button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } | |
| button.ghost, .btn.ghost { background: transparent; } | |
| button.small, .btn.small { padding: 4px 9px; font-size: 12px; } | |
| button.wide { width: 100%; justify-content: center; } | |
| button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; } | |
| input, select, textarea { | |
| font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); | |
| border-radius: 8px; padding: 7px 10px; width: 100%; | |
| } | |
| input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } | |
| input[type=checkbox] { width: auto; accent-color: var(--accent); margin: 0; } | |
| .pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 18px; text-align: center; } | |
| /* ---------------------------------------------------------------- header */ | |
| .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--panel); } | |
| .brand h1 { font-size: 19px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } | |
| .lib-btn { font-size: 13px; font-weight: 400; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); border-color: var(--accent); color: var(--ink); } | |
| .lib-btn b { font-weight: 600; } | |
| dialog.libs { width: min(640px, calc(100vw - 32px)); } | |
| .libs-body { padding: 0 22px 22px; } | |
| .libs-body h2 { font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; } | |
| .libs-list { display: grid; gap: 10px; margin-top: 14px; } | |
| .lib { display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left; white-space: normal; width: 100%; } | |
| .lib.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } | |
| .lib img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--tile); flex: none; } | |
| .lib span { display: flex; flex-direction: column; gap: 2px; } | |
| .lib b { font-size: 15px; } | |
| .mf-extra { display: contents; } | |
| .mf-group select { width: auto; max-width: 280px; } | |
| .flow { margin: 4px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; } | |
| .flow span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; } | |
| .flow i { font-style: normal; opacity: .6; } | |
| .top-actions { display: flex; align-items: center; gap: 10px; } | |
| .auth { display: flex; align-items: center; gap: 8px; } | |
| .auth img { width: 26px; height: 26px; border-radius: 50%; } | |
| /* ---------------------------------------------------------------- browse */ | |
| .browse { max-width: 1400px; margin: 0 auto; padding: 18px 24px; } | |
| .find-row { display: flex; gap: 8px; } | |
| .find-row input { flex: 1; font-size: 15px; padding: 10px 14px; } | |
| .find-row select { width: auto; } | |
| .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; } | |
| .chip { padding: 5px 11px; font-size: 13px; border-radius: 999px; } | |
| .chip span { color: var(--muted); font-size: 12px; } | |
| .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } | |
| .chip[aria-pressed="true"] span { color: inherit; opacity: .8; } | |
| .chip.more { border-style: dashed; color: var(--muted); } | |
| .more-filters { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); } | |
| .mf-group { min-width: 180px; } | |
| .more-filters #reset { align-self: flex-end; margin-left: auto; } | |
| .range { display: flex; align-items: center; gap: 6px; } | |
| .range input { width: 80px; } | |
| .check { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; cursor: pointer; } | |
| .check .lbl .hint { display: block; } | |
| .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; } | |
| .toolbar-actions { display: flex; gap: 8px; align-items: center; } | |
| .count { font-weight: 600; font-size: 15px; } | |
| .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } | |
| .tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; } | |
| .tile:hover { border-color: var(--muted); } | |
| .tile.in { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } | |
| .tile .open { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: var(--tile); aspect-ratio: 1; cursor: zoom-in; } | |
| .tile .open img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; } | |
| @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .open img { mix-blend-mode: normal; } } | |
| .tile .add { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; font-size: 18px; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .15); } | |
| .tile .add:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); } | |
| .tile.in .add { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } | |
| .badges { position: absolute; top: 9px; left: 8px; display: flex; gap: 4px; } | |
| .badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); } | |
| .badge.lat { color: var(--accent); border-color: var(--accent); } | |
| .cap { padding: 7px 10px 10px; display: flex; flex-direction: column; } | |
| .cap .nm { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .cap .sub { font-size: 11px; color: var(--muted); } | |
| .empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 16px; color: var(--muted); } | |
| .empty b { color: var(--ink); font-size: 15px; } | |
| /* ---------------------------------------------------------------- selection bar */ | |
| .selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgb(0 0 0 / .06); } | |
| .selbar.has { border-top-color: var(--accent); } | |
| .sel-info { display: flex; align-items: center; gap: 12px; min-width: 0; } | |
| .sel-text { display: flex; flex-direction: column; min-width: 0; } | |
| .sel-text b { font-size: 14px; } | |
| .sel-thumbs { display: flex; } | |
| .sel-thumbs img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; background: var(--tile); border: 2px solid var(--panel); margin-left: -10px; } | |
| .sel-thumbs img:first-child { margin-left: 0; } | |
| .sel-actions { display: flex; align-items: center; gap: 8px; } | |
| .sel-actions .primary { padding: 10px 18px; font-size: 14px; } | |
| /* ---------------------------------------------------------------- drawer */ | |
| dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--panel); color: var(--ink); } | |
| dialog::backdrop { background: rgb(0 0 0 / .45); } | |
| dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); border-radius: 0; border: 0; border-left: 1px solid var(--line); display: none; flex-direction: column; } | |
| dialog.drawer[open] { display: flex; } | |
| .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); } | |
| .drawer-head h2 { margin: 0; font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: 0; } | |
| .drawer-body { overflow-y: auto; padding: 4px 22px 24px; } | |
| .step { padding: 6px 0 18px; border-bottom: 1px solid var(--line); } | |
| .step h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 12px; } | |
| .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; } | |
| .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; } | |
| .stats div { background: var(--bg); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; } | |
| .stats b { font-size: 20px; } | |
| .stats span { font-size: 11px; color: var(--muted); } | |
| .warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 6px 0; } | |
| .warn code { background: transparent; padding: 0; } | |
| .bars { margin: 10px 0; } | |
| .bar-row { display: grid; grid-template-columns: 130px 1fr 32px; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0; } | |
| .bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .bar-row em { font-style: normal; color: var(--muted); text-align: right; } | |
| .bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; } | |
| .bar > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; } | |
| details summary { cursor: pointer; font-weight: 500; margin: 8px 0; } | |
| .tips-wrap summary { color: var(--warn-ink); } | |
| .basket-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; } | |
| .basket-list li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; font-size: 12.5px; border-bottom: 1px solid var(--line); } | |
| .basket-list li:last-child { border-bottom: 0; } | |
| .basket-list img { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; background: var(--tile); flex: none; } | |
| .basket-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .basket-list .x { border: 0; padding: 2px 10px; background: transparent; color: var(--muted); font-size: 16px; } | |
| .formats { display: flex; flex-direction: column; gap: 8px; } | |
| .fmt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; } | |
| .fmt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } | |
| .fmt input { margin-top: 3px; } | |
| .fmt-text { flex: 1; display: flex; flex-direction: column; } | |
| .fmt-text em { font-style: normal; font-size: 11px; color: var(--accent); font-weight: 600; margin-left: 4px; } | |
| .fmt-text small { color: var(--muted); font-size: 12px; margin-top: 2px; } | |
| .fmt .size { color: var(--muted); font-size: 12px; white-space: nowrap; } | |
| .field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin: 0 0 12px; } | |
| .field-row { display: flex; align-items: center; gap: 6px; margin: 8px 0; } | |
| .field-row select { width: auto; max-width: 160px; } | |
| .slash { color: var(--muted); } | |
| .repo-name { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; } | |
| .dest { display: grid; gap: 10px; } | |
| .dest-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; } | |
| .dest-card h4 { font-size: 14px; margin-bottom: 4px; } | |
| .dest-card p { margin: 4px 0; } | |
| .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } | |
| .export-status { margin-top: 10px; } | |
| .export-status p { font-size: 12px; margin: 6px 0; } | |
| .extras { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; font-size: 13px; } | |
| #import-box { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; } | |
| .train-box { margin-top: 14px; padding: 4px 14px 12px; border: 1px solid var(--accent); border-radius: var(--radius); } | |
| .train-box select { width: 100%; font-size: 12px; } | |
| .t-plan { font-size: 12px; margin: 10px 0; } | |
| .t-plan ul { margin: 4px 0; padding-left: 18px; } | |
| .t-msg { font-size: 12px; } | |
| /* ---------------------------------------------------------------- detail */ | |
| .close-row { display: flex; justify-content: flex-end; padding: 10px 10px 0; } | |
| .detail-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; padding: 0 20px 20px; } | |
| model-viewer { width: 100%; height: min(440px, 60vh); background: var(--tile); border-radius: var(--radius); --poster-color: transparent; } | |
| .viewer .hint { margin: 6px 0 0; } | |
| .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; } | |
| .thumbs img { width: 100%; border-radius: 6px; background: var(--tile); } | |
| .meta h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--ink); } | |
| .desc { color: var(--muted); } | |
| dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; margin: 14px 0; } | |
| dt { color: var(--muted); } | |
| dd { margin: 0; word-break: break-word; } | |
| .siblings > div { display: flex; flex-wrap: wrap; gap: 6px; } | |
| .sib { padding: 0; width: 56px; height: 56px; overflow: hidden; background: var(--tile); } | |
| .sib img { width: 100%; height: 100%; object-fit: contain; } | |
| .sib.cur { outline: 2px solid var(--ink); } | |
| .sib.in { border-color: var(--accent); } | |
| .cmd { font-size: 12px; color: var(--muted); } | |
| .cmd code { display: block; padding: 8px; } | |
| /* ---------------------------------------------------------------- tour */ | |
| .tour { position: fixed; inset: 0; z-index: 100; } | |
| .tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(0 0 0 / .55); transition: all .25s ease; pointer-events: none; outline: 2px solid var(--accent); } | |
| .tour:has(.tour-spot[hidden]) { background: rgb(0 0 0 / .55); } | |
| .tour-card { position: fixed; width: min(380px, calc(100vw - 28px)); background: var(--panel); color: var(--ink); border-radius: 14px; padding: 18px 20px 14px; box-shadow: var(--shadow); transition: top .25s ease, left .25s ease; } | |
| .tour-card.center { width: min(480px, calc(100vw - 28px)); left: 50% ; top: 50% ; transform: translate(-50%, -50%); padding: 26px 28px 18px; } | |
| .tour-card.center h3 { font-size: 20px; } | |
| .tour-card h3 { font-size: 16px; margin: 0 0 6px; } | |
| .tour-card p { margin: 6px 0; } | |
| .tour-step { margin: 0 0 4px ; font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; } | |
| .tour-steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; } | |
| .tour-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; } | |
| .tour-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; } | |
| .tour-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; } | |
| .tour-nav span { display: flex; gap: 6px; } | |
| body.touring { overflow: hidden; } | |
| .toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 13px; z-index: 30; } | |
| footer { max-width: 1400px; margin: 0 auto; padding: 16px 24px; color: var(--muted); font-size: 12px; } | |
| @media (max-width: 720px) { | |
| body { padding-bottom: 120px; } | |
| .top { flex-direction: column; align-items: flex-start; padding: 14px 16px; } | |
| .top-actions { width: 100%; justify-content: space-between; } | |
| .browse { padding: 14px 16px; } | |
| .find-row { flex-wrap: wrap; } | |
| .find-row input { flex-basis: 100%; } | |
| .find-row button, .find-row select { flex: 1; } | |
| .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } | |
| .chip { flex: none; } | |
| .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } | |
| .selbar { padding: 10px 16px; flex-wrap: wrap; } | |
| .sel-thumbs { display: none; } | |
| .sel-actions { flex: 1; justify-content: flex-end; } | |
| .detail-body { grid-template-columns: 1fr; padding: 0 16px 16px; } | |
| model-viewer { height: 300px; } | |
| .drawer-body { padding: 4px 16px 24px; } | |
| } | |
| .name-status { font-size: 12px; margin: 2px 0 6px; min-height: 16px; color: var(--muted); } | |
| .name-status.ok { color: var(--accent); } | |
| .name-status.bad { color: #b3261e; } | |
| @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .name-status.bad { color: #f2b8b5; } } | |
| .exported-note { font-size: 12px; background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; margin: 6px 0; } | |