Spaces:
Running
Running
| /* Hugging Face Harbor Visualiser — Hugging Face themed dark/light. */ | |
| :root { | |
| --bg: #ffffff; --panel: #f9fafb; --panel-2: #f1f3f5; | |
| --border: #e5e7eb; --border-strong: #d4d7dd; | |
| --text: #1b1b1f; --muted: #5b6270; --faint: #99a0ad; | |
| --accent: #e88b00; --accent-soft: rgba(255,157,0,.12); | |
| --hf-yellow: #ffd21e; --hf-orange: #ff9d00; | |
| --ok: #16a34a; --warn: #d97706; --err: #dc2626; | |
| --hover: #f1f3f5; | |
| --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; | |
| --radius: 10px; --nav-h: 56px; --maxw: 1500px; | |
| } | |
| :root[data-theme="dark"] { | |
| --bg: #0b0d12; --panel: #11141b; --panel-2: #1a1e27; | |
| --border: #232834; --border-strong: #323847; | |
| --text: #f3f4f6; --muted: #9aa1ad; --faint: #646b78; | |
| --accent: #ffae45; --accent-soft: rgba(255,174,69,.13); | |
| --hf-yellow: #ffd21e; --hf-orange: #ff9d00; | |
| --ok: #4ade80; --warn: #fbbf24; --err: #f87171; | |
| --hover: #181c24; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; } | |
| /* minimal scrollbars everywhere */ | |
| * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; } | |
| ::-webkit-scrollbar { width: 7px; height: 7px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; } | |
| ::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: padding-box; } | |
| ::-webkit-scrollbar-corner { background: transparent; } | |
| body { | |
| background: var(--bg); color: var(--text); | |
| font-family: var(--mono); font-size: 14px; line-height: 1.55; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| a { color: inherit; text-decoration: none; } | |
| button { font-family: inherit; cursor: pointer; } | |
| code, pre { font-family: var(--mono); } | |
| ::selection { background: var(--accent-soft); } | |
| /* ── nav ───────────────────────────────────────────── */ | |
| .nav { | |
| position: sticky; top: 0; z-index: 50; | |
| height: var(--nav-h); display: flex; align-items: center; gap: 22px; | |
| padding: 0 22px; background: color-mix(in srgb, var(--bg) 86%, transparent); | |
| backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); | |
| } | |
| .nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.2px; } | |
| .nav .brand:hover { color: var(--text); } | |
| .nav .brand .logo { font-size: 20px; line-height: 1; filter: saturate(1.15); } | |
| .nav .brand .tag { font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; | |
| color: #1b1b1f; background: var(--hf-yellow); padding: 2px 6px; border-radius: 5px; } | |
| .nav .links { display: flex; gap: 18px; } | |
| .nav .links a { color: var(--muted); font-size: 13px; } | |
| .nav .links a:hover, .nav .links a.active { color: var(--text); } | |
| .nav .spacer { flex: 1; } | |
| .theme-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } | |
| .theme-toggle button { | |
| background: transparent; border: 0; color: var(--faint); | |
| padding: 6px 9px; display: grid; place-items: center; line-height: 0; | |
| } | |
| .theme-toggle button:hover { color: var(--text); background: var(--hover); } | |
| .theme-toggle button.active { color: var(--text); background: var(--panel-2); } | |
| .theme-toggle svg { width: 15px; height: 15px; } | |
| /* ── layout ────────────────────────────────────────── */ | |
| .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; } | |
| .page { padding: 34px 0 80px; } | |
| h1 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 18px; } | |
| h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; } | |
| .muted { color: var(--muted); } | |
| .faint { color: var(--faint); } | |
| /* hero */ | |
| .hero { text-align: center; padding: 60px 0 30px; } | |
| .hero .mark { font-size: 56px; line-height: 1; margin-bottom: 10px; } | |
| .hero h1 { font-size: 46px; margin: 0 0 14px; letter-spacing: -1.4px; } | |
| .hero h1 .hf { background: linear-gradient(90deg, var(--hf-orange), var(--hf-yellow)); | |
| -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } | |
| .hero p { color: var(--muted); font-size: 14.5px; margin: 0 auto; max-width: 640px; line-height: 1.6; } | |
| /* example bubbles / quick-pick chips */ | |
| .chips { display: flex; flex-wrap: wrap; gap: 10px; } | |
| .chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 999px; | |
| border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 13px; | |
| cursor: pointer; transition: border-color .12s, background .12s, transform .08s; } | |
| .chip:hover { border-color: var(--hf-orange); background: var(--hover); } | |
| .chip:active { transform: translateY(1px); } | |
| .chip .src { font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; | |
| padding: 2px 6px; border-radius: 5px; flex: none; } | |
| .chip .src.hf { background: color-mix(in srgb, var(--hf-yellow) 22%, var(--panel-2)); color: var(--hf-orange); } | |
| .chip .src.gh { background: var(--panel-2); color: var(--muted); } | |
| .chip .src.harbor { background: var(--accent-soft); color: var(--accent); } | |
| /* how-to / embed instructions */ | |
| .howto { margin: 46px 0 0; } | |
| .howto h2 { font-size: 15px; margin: 0 0 14px; } | |
| .howto .steps { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } | |
| .howto .step { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; } | |
| .howto .step h3 { font-size: 13px; margin: 0 0 4px; font-weight: 600; } | |
| .howto .step p { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.55; } | |
| .snippet { display: flex; align-items: center; gap: 10px; background: var(--panel-2); | |
| border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; max-width: 100%; overflow: hidden; } | |
| .snippet code { font-size: 12px; color: var(--text); overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; } | |
| .snippet code::-webkit-scrollbar { height: 5px; } | |
| .snippet code::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; } | |
| .snippet .copy { color: var(--faint); line-height: 0; flex: none; } | |
| .snippet .copy:hover { color: var(--accent); } | |
| .snippet .copy svg { width: 14px; height: 14px; } | |
| .howto .badge-preview { display: inline-flex; align-items: stretch; font-size: 11px; font-weight: 700; | |
| border-radius: 5px; overflow: hidden; margin-bottom: 11px; } | |
| .howto .badge-preview .l { background: #555; color: #fff; padding: 3px 8px; } | |
| .howto .badge-preview .r { background: var(--hf-yellow); color: #1b1b1f; padding: 3px 8px; } | |
| @media (max-width: 700px) { .howto .steps { grid-template-columns: 1fr; } } | |
| /* accent link + nav external link */ | |
| .hl { color: var(--accent); } | |
| .hl:hover { text-decoration: underline; } | |
| .nav .links a.ext { color: var(--faint); } | |
| .nav .links a.ext:hover { color: var(--accent); } | |
| /* footer attribution */ | |
| .footer { max-width: 620px; margin: 56px auto 0; text-align: center; color: var(--faint); | |
| font-size: 12px; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 22px; } | |
| /* ── table card ────────────────────────────────────── */ | |
| .card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); } | |
| .thead { display: flex; padding: 11px 18px; border-bottom: 1px solid var(--border); | |
| font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); } | |
| .thead .col-tasks { margin-left: auto; } | |
| .row { | |
| display: flex; align-items: center; gap: 8px; padding: 13px 18px; | |
| border-bottom: 1px solid var(--border); cursor: pointer; transition: background .08s; | |
| } | |
| .row:last-child { border-bottom: 0; } | |
| .row:hover { background: var(--hover); } | |
| .row .name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .row .copy { color: var(--faint); opacity: 0; transition: opacity .1s; line-height: 0; } | |
| .row:hover .copy { opacity: 1; } | |
| .row .copy:hover { color: var(--text); } | |
| .row .copy svg { width: 13px; height: 13px; } | |
| .row .tasks { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-left: 14px; } | |
| .row .tasks .spin { color: var(--faint); } | |
| /* search */ | |
| .search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); | |
| border-radius: var(--radius); padding: 11px 16px; background: var(--panel); margin-bottom: 18px; } | |
| .search:focus-within { border-color: var(--border-strong); } | |
| .search svg { width: 16px; height: 16px; color: var(--faint); flex: none; } | |
| .search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--mono); font-size: 14px; } | |
| .search input::placeholder { color: var(--faint); } | |
| .search .kbd { color: var(--faint); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; } | |
| .search select { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-family: var(--mono); font-size: 12px; } | |
| /* buttons */ | |
| .btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); | |
| border: 1px solid var(--border); border-radius: 8px; color: var(--text); | |
| padding: 9px 16px; font-size: 13px; transition: background .1s, border-color .1s; } | |
| .btn:hover { background: var(--hover); border-color: var(--border-strong); } | |
| .center { text-align: center; margin-top: 26px; } | |
| /* pills / badges */ | |
| .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; | |
| border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--panel-2); } | |
| .pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); } | |
| /* breadcrumb */ | |
| .crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; } | |
| .crumb a:hover { color: var(--text); } | |
| .crumb .sep { color: var(--faint); } | |
| /* ── dataset / task viewer (split) ─────────────────── */ | |
| .viewer { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); | |
| border-radius: var(--radius); overflow: hidden; min-height: 70vh; } | |
| .tree { border-right: 1px solid var(--border); background: var(--panel); overflow: auto; max-height: 80vh; } | |
| .tree .thead2 { padding: 11px 16px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; | |
| color: var(--faint); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); } | |
| .tnode { display: flex; align-items: center; gap: 7px; padding: 6px 14px; cursor: pointer; font-size: 13px; | |
| color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .tnode:hover { background: var(--hover); color: var(--text); } | |
| .tnode.active { background: var(--accent-soft); color: var(--text); } | |
| .tnode.dir { color: var(--text); } | |
| .tnode .ind { display: inline-block; } | |
| .tnode svg { width: 14px; height: 14px; flex: none; color: var(--faint); } | |
| .tnode.active svg { color: var(--accent); } | |
| /* task master-detail: [tasks panel | file tree | content] */ | |
| .taskview { display: grid; grid-template-columns: 250px 230px 1fr; border: 1px solid var(--border); | |
| border-radius: var(--radius); overflow: hidden; height: calc(100vh - 200px); min-height: 460px; | |
| transition: grid-template-columns .18s ease; } | |
| .taskview.collapsed { grid-template-columns: 0 230px 1fr; } | |
| .taskview.collapsed .tasks-panel { opacity: 0; pointer-events: none; } | |
| .tasks-panel { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); | |
| background: var(--panel-2); overflow: hidden; transition: opacity .15s ease; } | |
| .tasks-panel .tp-head { padding: 11px 14px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; | |
| color: var(--faint); border-bottom: 1px solid var(--border); flex: none; } | |
| .tasks-panel .tp-search { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex: none; } | |
| .tasks-panel .tp-search svg { width: 14px; height: 14px; color: var(--faint); flex: none; } | |
| .tasks-panel .tp-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--mono); font-size: 12.5px; } | |
| .tasks-panel .tp-search input::placeholder { color: var(--faint); } | |
| .tp-list { overflow: auto; flex: 1; } | |
| .tp-item { padding: 8px 14px; font-size: 12.5px; color: var(--muted); cursor: pointer; | |
| white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid transparent; } | |
| .tp-item:hover { background: var(--hover); color: var(--text); } | |
| .tp-item.active { background: var(--accent-soft); color: var(--text); border-left-color: var(--hf-orange); } | |
| .tp-list .empty { padding: 14px; font-size: 11.5px; color: var(--faint); } | |
| /* nothing-selected state in the detail pane */ | |
| .emptysel { display: flex; flex-direction: column; align-items: center; justify-content: center; | |
| gap: 14px; height: 100%; min-height: 320px; padding: 40px; text-align: center; color: var(--faint); } | |
| .emptysel .ic { color: var(--border-strong); line-height: 0; } | |
| .emptysel .ic svg { width: 44px; height: 44px; } | |
| .emptysel p { margin: 0; font-size: 13px; max-width: 320px; line-height: 1.6; } | |
| .content { overflow: auto; max-height: 80vh; background: var(--bg); } | |
| .taskview .tree, .taskview .content { max-height: none; } | |
| .content .fhead { display: flex; align-items: center; gap: 10px; padding: 10px 16px; | |
| border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 2; } | |
| .content .fhead .path { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; } | |
| .content .fhead svg { width: 15px; height: 15px; flex: none; color: var(--faint); } | |
| .content .fhead .copy { margin-left: auto; } | |
| .content pre { margin: 0; padding: 16px; overflow: auto; font-size: 12.5px; line-height: 1.6; } | |
| .content pre code { background: transparent ; padding: 0 ; } | |
| .content .md { padding: 18px 22px; } | |
| .content .md h1 { font-size: 22px; } .content .md h2 { font-size: 17px; } .content .md pre { background: var(--panel-2); border-radius: 8px; } | |
| .content .md code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; } | |
| /* overview */ | |
| .kv { width: 100%; border-collapse: collapse; } | |
| .kv td { padding: 9px 16px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; } | |
| .kv td:first-child { color: var(--muted); width: 180px; white-space: nowrap; } | |
| .kw { display: inline-block; font-size: 11px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; margin: 0 4px 4px 0; color: var(--muted); } | |
| /* task list (within dataset) — scrolls internally, not the whole page */ | |
| .tasklist { max-height: calc(100vh - 240px); overflow-y: auto; } | |
| .tasklist .thead { position: sticky; top: 0; background: var(--panel); z-index: 1; } | |
| .tasklist .row .name { font-size: 13px; } | |
| .tasklist .row .tasks { font-size: 12px; } | |
| /* states */ | |
| .loading, .empty, .errbox { padding: 50px 20px; text-align: center; color: var(--muted); } | |
| .errbox { color: var(--err); } | |
| .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); | |
| border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| .copied { color: var(--ok) ; } | |
| /* code section (publish-style) */ | |
| .codeblock { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin: 14px 0; overflow: hidden; } | |
| .codeblock .chead { display: flex; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); } | |
| .codeblock .chead .copy { margin-left: auto; } | |
| .codeblock pre { margin: 0; padding: 14px; font-size: 12.5px; overflow: auto; } | |
| /* run-this-task command — styled like a terminal block */ | |
| .runbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; | |
| background: #0d1117; border: 1px solid var(--border-strong); border-radius: var(--radius); | |
| padding: 11px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); } | |
| :root[data-theme="light"] .runbar { background: #1b1f27; } | |
| .runbar .lbl { display: inline-flex; align-items: center; flex: none; color: #4ade80; line-height: 0; } | |
| .runbar .lbl svg { width: 15px; height: 15px; } | |
| .runbar code { font-family: var(--mono); font-size: 12.5px; color: #d7dce4; white-space: nowrap; | |
| overflow-x: auto; flex: 1; min-width: 0; } | |
| .runbar code::before { content: "$ "; color: #6b7280; } | |
| .runbar code::-webkit-scrollbar { height: 5px; } | |
| .runbar code::-webkit-scrollbar-thumb { background: #2b313b; border-radius: 3px; } | |
| .runbar .copy { flex: none; color: #6b7280; line-height: 0; } | |
| .runbar .copy:hover { color: var(--hf-yellow); } | |
| .runbar .copy svg { width: 15px; height: 15px; } | |
| .runbar.copied .copy { color: #4ade80; } | |
| /* generic icon button (crumb toggle etc.) */ | |
| .nav-btn { display: grid; place-items: center; width: 30px; height: 30px; flex: none; | |
| border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); color: var(--muted); } | |
| .nav-btn:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); } | |
| .nav-btn:disabled { opacity: .35; cursor: default; } | |
| .nav-btn svg { width: 15px; height: 15px; } | |
| .nav-btn.ghost { background: transparent; } | |
| .crumb .pos { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; flex: none; } | |
| /* inline hint / note (loading warnings, tag instruction) */ | |
| .hint { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12.5px; | |
| line-height: 1.55; background: var(--panel); border: 1px solid var(--border); | |
| border-radius: var(--radius); padding: 13px 15px; } | |
| .hint .ic { color: var(--hf-orange); flex: none; line-height: 0; margin-top: 1px; } | |
| .hint code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; color: var(--text); font-size: 12px; } | |
| .loading .sub { display: block; margin-top: 8px; font-size: 12px; color: var(--faint); } | |
| /* responsive */ | |
| @media (max-width: 760px) { | |
| .nav { gap: 12px; padding: 0 14px; } | |
| .nav .brand { font-size: 13px; } | |
| .wrap { padding: 0 14px; } | |
| .hero h1 { font-size: 32px; } | |
| .hero .mark { font-size: 46px; } | |
| .viewer { grid-template-columns: 1fr; } | |
| .tree { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--border); } | |
| .content { max-height: none; } | |
| .nav .links { gap: 12px; } | |
| .nav .links a:not(.ext) { display: none; } | |
| .crumb { gap: 6px; } | |
| .kv td:first-child { width: auto; } | |
| /* task view stacks: tasks panel (toggleable) over tree over content */ | |
| .taskview { grid-template-columns: 1fr; height: auto; } | |
| .taskview.collapsed { grid-template-columns: 1fr; } | |
| .tasks-panel { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--border); } | |
| .taskview.collapsed .tasks-panel { display: none; } | |
| .taskview .tree { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--border); } | |
| .taskview .content { max-height: 70vh; } | |
| } | |