Flowframes-WebGPU / style.css
Nekochu's picture
Credit n00mkrad/Flowframes, memory controls (free GPU memory, delete model), python branch link
511e3f4 verified
Raw History Blame Contribute Delete
3.15 kB
:root { --bg:#f6f3f4; --panel:#fff; --ink:#1e1b1d; --muted:#6c6568; --line:#d9d2d5; --accent:#a8325e; --accent-ink:#fff; --bad:#a3261b; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#161315; --panel:#211d1f; --ink:#ede7ea; --muted:#a69da1; --line:#3b3438; --accent:#e0688f; --accent-ink:#161315; --bad:#ff8a7a; } }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
main { display:grid; gap:10px; padding:10px 12px 24px; max-width:860px; margin:0 auto; }
#line { margin:0; font-size:14px; color:var(--muted); } #line b { color:var(--ink); }
a { color:var(--accent); }
#drop { display:grid; place-items:center; min-height:110px; border:2px dashed var(--line); border-radius:8px; background:var(--panel); cursor:pointer; color:var(--muted); text-align:center; padding:12px; }
#drop.over, #drop:hover { border-color:var(--accent); color:var(--ink); }
#drop input { position:absolute; width:1px; height:1px; opacity:0; }
#drop:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
#info { margin:0; font-size:13px; color:var(--muted); }
#opts { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
#opts label { display:flex; gap:6px; align-items:center; font-size:14px; }
select { font:inherit; padding:6px 8px; color:var(--ink); background:var(--panel); border:1px solid var(--line); border-radius:5px; min-height:38px; }
button, .btn { font:inherit; font-weight:600; min-height:38px; padding:0 16px; cursor:pointer; color:var(--accent-ink); background:var(--accent); border:0; border-radius:5px; display:inline-flex; align-items:center; text-decoration:none; }
button:disabled { opacity:.55; cursor:default; }
#stop { background:transparent; color:var(--ink); border:1px solid var(--line); font-weight:500; }
#status { margin:0; min-height:1.4em; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; } #status.bad { color:var(--bad); }
#bar { height:4px; background:var(--line); border-radius:2px; overflow:hidden; margin-top:-4px; } #bar i { display:block; height:100%; width:0; background:var(--accent); transition:width .2s; }
#result { display:grid; gap:8px; justify-items:start; } #video { width:100%; max-height:70vh; background:#000; border-radius:6px; }
#more { color:var(--muted); font-size:13px; } #more p { margin:6px 0; } summary { cursor:pointer; }
:where(button,select,summary,a,[tabindex]):focus-visible { outline:2px solid var(--accent) !important; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration:.01ms !important; } }
[hidden] { display: none !important; }
#examples-row { margin:0; font-size:13px; color:var(--muted); }
#examples button { min-height:30px; padding:0 12px; font-weight:500; color:var(--ink); background:transparent; border:1px solid var(--line); }
#examples button:hover { border-color:var(--accent); color:var(--accent); }
#free, #wipe { min-height:30px; font-weight:500; color:var(--ink); background:transparent; border:1px solid var(--line); margin-right:6px; }