Spaces:
Running
Running
File size: 19,644 Bytes
a301de7 119621d a301de7 119621d a301de7 78d005c a301de7 e5d80d4 119621d e5d80d4 119621d a301de7 78d005c a301de7 78d005c a301de7 e5d80d4 a301de7 119621d a301de7 119621d a301de7 119621d a301de7 119621d a301de7 e5d80d4 a301de7 78d005c a301de7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | /* Hugging Face Harbor Visualiser β Hugging Face themed dark/light. */
:root {
--bg: #ffffff; --panel: #f9fafb; --panel-2: #eef0f3;
--border: #d3d8e0; --border-strong: #aeb5c0;
--text: #1b1b1f; --muted: #3f4655; --faint: #7d8493;
--accent: #e88b00; --accent-soft: rgba(255,157,0,.14);
--hf-yellow: #ffd21e; --hf-orange: #ff9d00;
--ok: #16a34a; --warn: #d97706; --err: #dc2626;
--hover: #eef0f3;
--mono: 'JetBrains Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
--radius: 10px; --nav-h: 56px; --maxw: 1500px;
}
:root[data-theme="dark"] {
--bg: #0a0c14; --panel: #14171f; --panel-2: #1e2230;
--border: #3a4258; --border-strong: #525a73;
--text: #f6f7fa; --muted: #c6cbd6; --faint: #8a91a2;
--accent: #ffc266; --accent-soft: rgba(255,194,102,.18);
--hf-yellow: #ffd21e; --hf-orange: #ffa320;
--ok: #5af08a; --warn: #ffc94a; --err: #ff7a7a;
--hover: #232938;
}
* { 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(--muted); font-weight: 600; 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-strong);
border-radius: var(--radius); overflow: hidden; height: calc(100vh - 200px); min-height: 460px;
transition: grid-template-columns .18s ease; box-shadow: 0 0 0 1px transparent; }
.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-strong);
background: var(--panel-2); overflow: hidden; transition: opacity .15s ease; }
.taskview .tree { border-right: 1px solid var(--border-strong); }
.tasks-panel .tp-head { padding: 11px 14px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
color: var(--muted); border-bottom: 1px solid var(--border); flex: none; font-weight: 600; }
.tasks-panel .tp-head .faint { color: var(--faint); font-weight: 400; }
.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 !important; padding: 0 !important; }
.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) !important; }
/* 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; }
}
|