- Optional token (Settings) for gated/private models and higher limits; stored in ComfyUI's system-user dir, never in the node folder, never returned in full, only sent to huggingface.co - Redirects never forward the Authorization header to another host (HF CDN) - Stable error codes for 401/403/404/429/network, translated in the UI (EN/ES) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
372 lines
15 KiB
CSS
372 lines
15 KiB
CSS
/* SPDX-License-Identifier: GPL-3.0-only */
|
|
/* Copyright (C) 2026 Enob-Studio S.L. and Juan Gea */
|
|
/* ============================================================
|
|
BS Model Manager — hoja de estilo (Bone Studio)
|
|
Marca: Rojo #AC1F23 · Hueso #FAF0DC · Gris #3B3839
|
|
Lienzo oscuro "estudio" cinematográfico. El rojo es acento, no fondo.
|
|
Tipos: Jost (display) · Hanken Grotesk (cuerpo) · IBM Plex Mono (meta)
|
|
Tokens replicados de BS_Prompter (frontend/src/index.css).
|
|
============================================================ */
|
|
@import "fonts.css";
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
--bone-red: #AC1F23;
|
|
--bone-cream: #FAF0DC;
|
|
--bone-grey: #3B3839;
|
|
|
|
--ink-950: #1A1819;
|
|
--ink-900: #211F20;
|
|
--ink-800: #2B2829;
|
|
--ink-700: #3B3839;
|
|
--ink-600: #524F50;
|
|
--ink-500: #6F6B6C;
|
|
--ink-400: #918D8D;
|
|
--ink-300: #B6B2B1;
|
|
--ink-200: #D7D3D1;
|
|
|
|
--bone-50: #FFFCF5;
|
|
--bone-100: #FAF0DC;
|
|
--bone-200: #F2E6CB;
|
|
--bone-300: #E7D6B2;
|
|
|
|
--red-300: #D56A6D;
|
|
--red-400: #C24145;
|
|
--red-500: #AC1F23;
|
|
--red-600: #8E1A1D;
|
|
|
|
--green-400: #6FB58C;
|
|
--green-500: #4E8B6B;
|
|
--amber-400: #D69A3C;
|
|
--info-400: #5E93B4;
|
|
|
|
/* Superficies */
|
|
--surface-canvas: var(--ink-950);
|
|
--surface-raised: var(--ink-900);
|
|
--surface-card: var(--ink-800);
|
|
--surface-inset: var(--ink-700);
|
|
|
|
/* Texto */
|
|
--text-strong: var(--bone-50);
|
|
--text-body: var(--ink-200);
|
|
--text-muted: var(--ink-400);
|
|
--text-faint: var(--ink-500);
|
|
--text-accent: var(--red-400);
|
|
|
|
/* Líneas */
|
|
--border-subtle: rgba(250, 240, 220, 0.08);
|
|
--border-default: rgba(250, 240, 220, 0.14);
|
|
--border-strong: rgba(250, 240, 220, 0.28);
|
|
|
|
/* Acción de marca */
|
|
--action-primary: var(--red-500);
|
|
--action-primary-hover: var(--red-400);
|
|
--action-primary-press: var(--red-600);
|
|
--focus-ring: var(--red-400);
|
|
|
|
/* Tipos */
|
|
--font-display: "Jost", "Century Gothic", system-ui, sans-serif;
|
|
--font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
--font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
|
|
|
|
/* Radios / sombras / motion */
|
|
--radius-sm: 4px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.42);
|
|
--ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
color: var(--text-body);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
-webkit-font-smoothing: antialiased;
|
|
/* Lienzo de estudio cálido: diagonal tinta→rojo, nunca azul/púrpura */
|
|
background:
|
|
radial-gradient(1200px 700px at 88% -15%, rgba(172, 31, 35, 0.12), transparent 60%),
|
|
radial-gradient(900px 600px at -10% 110%, rgba(59, 56, 57, 0.45), transparent 55%),
|
|
var(--ink-950);
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); font-weight: 500; }
|
|
|
|
/* Scrollbars finas, tintadas en hueso */
|
|
* { scrollbar-width: thin; scrollbar-color: rgba(250, 240, 220, 0.16) transparent; }
|
|
*::-webkit-scrollbar { width: 9px; height: 9px; }
|
|
*::-webkit-scrollbar-thumb { background: rgba(250, 240, 220, 0.16); border-radius: 999px; }
|
|
*::-webkit-scrollbar-thumb:hover { background: rgba(250, 240, 220, 0.28); }
|
|
|
|
/* ---------- Top bar / tabs ---------- */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
padding: 11px 16px;
|
|
background: rgba(33, 31, 32, 0.72);
|
|
backdrop-filter: blur(6px);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; transition: opacity .15s var(--ease-standard); }
|
|
.brand:hover { opacity: 0.82; }
|
|
.brand-logo { height: 36px; width: 36px; display: block; flex-shrink: 0; }
|
|
.brand-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
|
|
.brand-name {
|
|
font-family: var(--font-display);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-strong);
|
|
}
|
|
.brand-app {
|
|
font-family: var(--font-display);
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.28em;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.tabs { display: flex; gap: 6px; }
|
|
.tab {
|
|
font-family: var(--font-display);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: var(--text-muted);
|
|
padding: 6px 14px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
transition: color .15s var(--ease-standard), background .15s var(--ease-standard);
|
|
}
|
|
.tab:hover { color: var(--text-strong); background: rgba(250, 240, 220, 0.05); }
|
|
.tab.active { color: var(--text-strong); background: var(--surface-inset); border-color: var(--border-default); }
|
|
|
|
.header-right {
|
|
margin-left: auto; /* ayuda + idioma juntos al extremo derecho del header */
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.help-btn {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border-default);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-display);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: grid;
|
|
place-items: center;
|
|
transition: color .12s var(--ease-standard), border-color .12s var(--ease-standard);
|
|
}
|
|
.help-btn:hover { color: var(--text-strong); border-color: var(--text-accent); }
|
|
.help-btn svg { width: 14px; height: 14px; display: block; }
|
|
/* Indicador discreto: hay un token de HuggingFace guardado. */
|
|
.help-btn.has-token { color: var(--green-400); border-color: rgba(111, 181, 140, 0.55); }
|
|
|
|
.lang-toggle {
|
|
display: inline-flex;
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
}
|
|
.lang-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.05em;
|
|
padding: 5px 9px;
|
|
cursor: pointer;
|
|
transition: background .12s var(--ease-standard), color .12s var(--ease-standard);
|
|
}
|
|
.lang-btn + .lang-btn { border-left: 1px solid var(--border-default); }
|
|
.lang-btn:hover { color: var(--text-strong); background: rgba(250, 240, 220, 0.05); }
|
|
.lang-btn.active { background: var(--action-primary); color: var(--bone-50); }
|
|
|
|
.view { display: none; padding: 16px; }
|
|
.view.active { display: block; }
|
|
|
|
/* ---------- Paneles (cards) ---------- */
|
|
.panel {
|
|
background: var(--surface-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.panel.hidden, .hidden { display: none !important; }
|
|
|
|
.row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
|
|
.row h3 { margin: 4px 0; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
|
|
.toolbar { align-items: center; }
|
|
.footer { align-items: center; margin-top: 12px; }
|
|
.spacer { flex: 1; }
|
|
|
|
.field { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
|
|
.field.grow { flex: 1; min-width: 220px; }
|
|
.field.inline { flex-direction: row; align-items: center; gap: 6px; min-width: 0; }
|
|
.field > span {
|
|
color: var(--text-faint);
|
|
font-size: 10.5px;
|
|
font-family: var(--font-mono);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
input, select {
|
|
background: var(--surface-inset);
|
|
border: 1px solid var(--border-default);
|
|
color: var(--text-strong);
|
|
border-radius: var(--radius-sm);
|
|
padding: 7px 9px;
|
|
font-size: 13px;
|
|
font-family: var(--font-body);
|
|
outline: none;
|
|
transition: border-color .15s var(--ease-standard), box-shadow .15s var(--ease-standard);
|
|
}
|
|
input::placeholder { color: var(--text-faint); }
|
|
input:focus, select:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 2px rgba(172, 31, 35, 0.25); }
|
|
select option, select optgroup { background-color: var(--ink-900); color: var(--text-body); }
|
|
.filter { min-width: 220px; }
|
|
|
|
/* ---------- Botones ---------- */
|
|
.btn {
|
|
font-family: var(--font-display);
|
|
background: var(--surface-inset);
|
|
border: 1px solid var(--border-default);
|
|
color: var(--text-body);
|
|
border-radius: var(--radius-sm);
|
|
padding: 7px 13px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
transition: all .15s var(--ease-standard);
|
|
}
|
|
.btn:hover { border-color: var(--border-strong); color: var(--text-strong); }
|
|
.btn.primary { background: var(--action-primary); border-color: var(--action-primary); color: var(--bone-50); }
|
|
.btn.primary:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); }
|
|
.btn.primary:active { background: var(--action-primary-press); }
|
|
.btn.small { padding: 5px 10px; font-size: 12px; }
|
|
.btn.danger { color: var(--bone-50); background: var(--red-600); border-color: var(--red-600); }
|
|
.btn.danger:hover { background: var(--red-500); border-color: var(--red-500); }
|
|
.btn:disabled { opacity: .45; cursor: not-allowed; }
|
|
|
|
.status { margin-top: 8px; font-size: 12px; min-height: 16px; font-family: var(--font-mono); color: var(--text-muted); }
|
|
.status.error { color: var(--red-300); }
|
|
.status.ok { color: var(--green-400); }
|
|
.muted { color: var(--text-muted); font-size: 12px; }
|
|
|
|
/* ---------- Tablas ---------- */
|
|
.table-wrap {
|
|
overflow: auto;
|
|
max-height: 48vh;
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
margin-top: 10px;
|
|
}
|
|
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
|
|
thead th {
|
|
position: sticky; top: 0; z-index: 1;
|
|
background: var(--surface-raised);
|
|
text-align: left;
|
|
padding: 9px 8px;
|
|
border-bottom: 1px solid var(--border-default);
|
|
font-family: var(--font-mono);
|
|
font-weight: 500;
|
|
font-size: 10.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-faint);
|
|
}
|
|
tbody td { padding: 7px 8px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
|
|
tbody tr:hover { background: rgba(250, 240, 220, 0.035); }
|
|
.c-check { width: 30px; }
|
|
.c-size { width: 92px; white-space: nowrap; color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }
|
|
.c-dest { width: 210px; }
|
|
.c-name { width: 220px; }
|
|
.c-file { word-break: break-all; font-family: var(--font-mono); font-size: 11.5px; }
|
|
.dest-cell { display: flex; flex-direction: column; gap: 4px; }
|
|
.dir-select { font-family: var(--font-mono); font-size: 11px; }
|
|
.dir-hint { color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; padding-left: 2px; word-break: break-all; }
|
|
td select, td input { width: 100%; padding: 5px 7px; }
|
|
|
|
input[type="checkbox"] { accent-color: var(--red-500); width: 15px; height: 15px; cursor: pointer; }
|
|
|
|
.badge {
|
|
display: inline-block; padding: 1px 7px; border-radius: 999px;
|
|
font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.03em;
|
|
border: 1px solid var(--border-default); color: var(--text-muted);
|
|
}
|
|
.badge.weight { color: var(--red-300); border-color: rgba(213, 106, 109, 0.5); }
|
|
.badge.lfs { color: var(--info-400); border-color: rgba(94, 147, 180, 0.5); }
|
|
.badge.extra { color: var(--amber-400); border-color: rgba(214, 154, 60, 0.5); }
|
|
.badge.main { color: var(--text-faint); }
|
|
|
|
/* ---------- Descargas (jobs) ---------- */
|
|
.job { background: var(--surface-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 9px 11px; margin-top: 8px; }
|
|
.job .job-head { display: flex; align-items: center; gap: 8px; }
|
|
.job .job-name { font-weight: 600; color: var(--text-strong); word-break: break-all; }
|
|
.job .job-meta { color: var(--text-muted); font-size: 11.5px; font-family: var(--font-mono); margin-top: 3px; }
|
|
.bar { height: 7px; background: var(--ink-950); border-radius: 6px; margin-top: 8px; overflow: hidden; }
|
|
.bar > div { height: 100%; background: var(--red-500); width: 0%; transition: width .3s var(--ease-standard); }
|
|
.job.state-done .bar > div { background: var(--green-500); }
|
|
.job.state-error .bar > div { background: var(--red-400); }
|
|
.job.state-canceled .bar > div { background: var(--ink-500); }
|
|
.state-pill { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-default); color: var(--text-muted); }
|
|
.state-downloading .state-pill { color: var(--red-300); border-color: rgba(213, 106, 109, 0.5); }
|
|
.state-done .state-pill { color: var(--green-400); border-color: rgba(111, 181, 140, 0.5); }
|
|
.state-error .state-pill { color: var(--red-300); border-color: rgba(213, 106, 109, 0.5); }
|
|
.state-queued .state-pill { color: var(--amber-400); border-color: rgba(214, 154, 60, 0.5); }
|
|
|
|
/* ---------- Manager local ---------- */
|
|
.cat-group { margin-top: 14px; }
|
|
.cat-group h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.03em; color: var(--text-accent); text-transform: uppercase; }
|
|
.model-name { color: var(--text-body); word-break: break-all; }
|
|
.model-sub { color: var(--text-faint); font-size: 11px; font-family: var(--font-mono); margin-top: 2px; word-break: break-all; }
|
|
.move-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; padding: 9px; background: var(--surface-raised); border: 1px dashed var(--border-default); border-radius: var(--radius-sm); }
|
|
.move-form .muted { font-family: var(--font-mono); font-size: 11px; }
|
|
|
|
/* ---------- Modal ---------- */
|
|
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
|
|
.modal-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 18px; width: min(520px, 92vw); box-shadow: var(--shadow-md); }
|
|
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-strong); margin-bottom: 10px; }
|
|
.modal-body { color: var(--text-body); margin-bottom: 16px; word-break: break-word; }
|
|
.modal-body .muted { font-family: var(--font-mono); font-size: 11px; }
|
|
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
|
|
/* ---------- Ayuda / documentación ---------- */
|
|
.help-card { width: min(680px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
|
|
.help-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
|
|
.help-head .modal-title { margin: 0; flex: 1; }
|
|
.help-body { overflow-y: auto; color: var(--text-body); line-height: 1.55; }
|
|
.help-body h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-accent); margin: 14px 0 4px; }
|
|
.help-body p { margin: 0 0 8px; }
|
|
.help-body code { font-family: var(--font-mono); font-size: 11.5px; background: rgba(250, 240, 220, 0.08); padding: 1px 5px; border-radius: 4px; }
|
|
.help-body a { color: var(--red-300); }
|
|
.help-body .badge { vertical-align: middle; }
|
|
|
|
/* ---------- Ajustes ---------- */
|
|
.token-row { margin: 6px 0 4px; }
|
|
.token-row .grow-input { flex: 1; min-width: 200px; font-family: var(--font-mono); font-size: 12px; }
|