Upload ui/styles.py with huggingface_hub
Browse files57 unmodified lines5859606162636465666768338 unmodified lines4074084094104114124134144154161376 unmodified lines179317941795179617971798356 unmodified lines215521562157215821592160216121622163216421652166216757 unmodified linesbackground: var(--bg-void) !important;color: var(--text-primary) !important;font-family: var(--font-ui) !important;/* Size the frame to the LARGEST 16:9 that fits the viewport: as wide as~90vw, but capped at 1700px AND at the width whose 16:9 height is ~88vh(88vh × 16/9 ≈ 156vh). The height cap is what reclaims the empty band thatappeared below an 80%-width frame on a 16:9 screen. */width: min(90vw, 1900px, 156vh) !important;min-width: 720px !important; /* prevent collapse on small viewports */margin: 0 auto !important;}338 unmodified linesletter-spacing: 0.15em;animation: vnPulse 1.6s ease infinite;}.vn-casting .portraits { display: flex; gap: 24px; }.vn-portrait {width: clamp(82px, 9cqw, 130px); height: clamp(120px, 13cqw, 190px);border-radius: 6px;border: 1px solid var(--border-mid);background: var(--bg-surface);overflow: hidden;1376 unmodified lines(opts.active != null) ? opts.active : 0);const node = prose.querySelector('.vn-casting');if (node) node.setAttribute('data-skeleton', '1');};// Fire a hidden Gradio button for a casting action. A SINGLE fire — no retry:356 unmodified lines// Instant CARDS feedback: re-show the last real casting screen (cards// with the sprites baked so far) if we captured one, else a skeleton// from the roster. The server's next yield replaces it.paintCasting(window._vnLastCasting? { html: window._vnLastCasting }: { names: window._vnRoster || ['?', '?', '?'],message: reviewConfirm ? 'Sketching the next portrait…': 'Re-sketching…',sub: reviewConfirm ? 'drawing the next portrait': 'the artist is trying again' });setTimeout(function() {fireCasting(reviewConfirm ? '#casting-confirm-btn' : '#casting-redo-btn');}, 120);57 unmodified lines58596061626364656667686970338 unmodified lines4094104114124134144154164174181376 unmodified lines179517961797179817991800180118021803180418051806180718081809181018111812356 unmodified lines2169217021712172217321742175217621772178217921802181218257 unmodified linesbackground: var(--bg-void) !important;color: var(--text-primary) !important;font-family: var(--font-ui) !important;/* Size the frame to the LARGEST 16:9 that fits the viewport: nearly fullwidth (~97vw) and full height — the width whose 16:9 height is ~97vh(97vh × 16/9 ≈ 173vh) — so the stage fills the screen instead of floatingin a band of empty space. (True edge-to-edge would mean dropping the 16:9aspect on .vn-screen, which re-proportions the sprite framing — kept 16:9here; see note in chat.) */width: min(97vw, 2400px, 173vh) !important;min-width: 720px !important; /* prevent collapse on small viewports */margin: 0 auto !important;}338 unmodified linesletter-spacing: 0.15em;animation: vnPulse 1.6s ease infinite;}.vn-casting .portraits { display: flex; gap: 3cqw; }.vn-portrait {width: clamp(120px, 14cqw, 230px); height: clamp(170px, 20cqw, 330px);border-radius: 8px;border: 1px solid var(--border-mid);background: var(--bg-surface);overflow: hidden;1376 unmodified lines(opts.active != null) ? opts.active : 0);const node = prose.querySelector('.vn-casting');if (node) node.setAttribute('data-skeleton', '1');// When re-showing CAPTURED server cards (opts.html, used by Confirm/Redo to// keep the sprites baked so far), their title/sub/active reflect the PREVIOUS// action — refresh them so e.g. Confirm doesn't read "Re-sketching Marie".if (opts.html && opts.message) {const t = prose.querySelector('.casting-title');if (t) t.textContent = '✦ ' + opts.message;const s = prose.querySelector('.vn-loading-sub');if (s) s.textContent = opts.sub || '';prose.querySelectorAll('.vn-portrait.active').forEach(function(p) {p.classList.remove('active');});}};// Fire a hidden Gradio button for a casting action. A SINGLE fire — no retry:356 unmodified lines// Instant CARDS feedback: re-show the last real casting screen (cards// with the sprites baked so far) if we captured one, else a skeleton// from the roster. The server's next yield replaces it.const _castMsg = reviewConfirm ? 'Bringing your cast to life…': 'Re-sketching…';const _castSub = reviewConfirm ? 'one moment': 'the artist is trying again';paintCasting(window._vnLastCasting? { html: window._vnLastCasting, message: _castMsg, sub: _castSub }: { names: window._vnRoster || ['?', '?', '?'],message: _castMsg, sub: _castSub });setTimeout(function() {fireCasting(reviewConfirm ? '#casting-confirm-btn' : '#casting-redo-btn');}, 120);
ui/styles.py+28-13