Spaces:
Paused
Paused
Download style.css from LiquidAI/masked-diffusion: direct link, hf CLI and curl.
- Browser
- Download file 16.9 kB
-
https://huggingface.co/spaces/LiquidAI/masked-diffusion/resolve/main/style.css
- Command line
-
hf download hf://spaces/LiquidAI/masked-diffusion/style.css
-
curl -L -o style.css https://huggingface.co/spaces/LiquidAI/masked-diffusion/resolve/main/style.css
16.9 kB
| :root { | |
| --paper:#fff; | |
| --ink:#050505; | |
| --purple:#6c4fe0; | |
| --lilac:#cd82f0; | |
| --green:#2dbd70; | |
| --red:#e45454; | |
| --neutral-50:#fafafa; | |
| --neutral-100:#f4f4f3; | |
| --neutral-200:#e7e7e5; | |
| --neutral-300:#b9b9b5; | |
| --neutral-500:#737373; | |
| --neutral-700:#404040; | |
| --border:rgba(0,0,0,.09); | |
| --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; | |
| --serif:"Instrument Serif",Georgia,"Times New Roman",serif; | |
| --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace; | |
| } | |
| * { box-sizing:border-box; } | |
| html { background:var(--neutral-50); } | |
| body { | |
| min-width:320px; | |
| min-height:100vh; | |
| margin:0; | |
| background:var(--neutral-50); | |
| color:var(--ink); | |
| font:16px/1.45 var(--sans); | |
| -webkit-font-smoothing:antialiased; | |
| } | |
| button,textarea,input { font:inherit; } | |
| a { color:inherit; } | |
| [hidden] { display:none; } | |
| .wrap { | |
| display:flex; | |
| flex-direction:column; | |
| width:min(calc(100% - 32px),1240px); | |
| min-height:100vh; | |
| min-height:100dvh; | |
| margin:0 auto; | |
| border-right:1px solid var(--border); | |
| border-left:1px solid var(--border); | |
| background:var(--paper); | |
| } | |
| .site-intro { margin-top:auto; padding:20px 30px 16px; } | |
| h1 { | |
| margin:0 0 7px; | |
| font:400 clamp(40px,4.3vw,51px)/.98 var(--serif); | |
| letter-spacing:.002em; | |
| } | |
| h1 em { color:var(--purple); font-weight:400; font-style:italic; } | |
| .sub { max-width:900px; margin:0; color:var(--neutral-500); font-size:15px; line-height:1.45; } | |
| .model-strip { | |
| display:grid; | |
| grid-template-columns:48px 280px minmax(240px,1fr); | |
| align-items:center; | |
| column-gap:16px; | |
| min-height:76px; | |
| padding:12px 30px; | |
| border-top:1px solid var(--border); | |
| border-bottom:1px solid var(--border); | |
| background:linear-gradient(90deg,rgba(108,79,224,.018),rgba(205,130,240,.035),rgba(108,79,224,.018)); | |
| transition:background .3s ease; | |
| } | |
| .model-logo-frame { position:relative; display:block; width:48px; height:48px; overflow:hidden; } | |
| .model-logo { | |
| position:absolute; | |
| top:50%; | |
| left:50%; | |
| display:block; | |
| width:56px; | |
| height:auto; | |
| max-width:none; | |
| transform:translate(-50%,-50%); | |
| image-rendering:pixelated; | |
| } | |
| .model-copy { display:flex; min-width:0; align-items:center; justify-content:center; } | |
| .model-name-row { display:flex; min-height:25px; align-items:center; gap:10px; white-space:nowrap; } | |
| .model-copy a { font:400 22px/1.15 var(--serif); text-decoration:none; } | |
| .model-copy a:hover { color:var(--purple); } | |
| .model-variant { display:inline-flex; height:18px; align-items:center; box-sizing:border-box; padding:0 7px; border:1px solid rgba(108,79,224,.14); border-radius:999px; background:rgba(108,79,224,.05); color:var(--purple); font:700 9px/1 var(--mono); letter-spacing:.035em; text-transform:uppercase; } | |
| .load-block { min-width:0; } | |
| .load-meta { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:8px; color:var(--neutral-500); font-size:12px; font-weight:600; } | |
| #load-percent { font:600 11px/1 var(--mono); font-variant-numeric:tabular-nums; } | |
| .load-track { height:7px; overflow:hidden; border-radius:999px; background:rgba(108,79,224,.09); } | |
| .load-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--purple),var(--lilac)); transition:width .18s ease; } | |
| .is-ready .load-track { background:rgba(45,189,112,.09); } | |
| .is-ready .load-track span { background:var(--green); } | |
| .is-ready .load-meta { color:#188e50; } | |
| .is-error .load-track span { background:var(--red); } | |
| .is-error .load-meta { color:var(--red); } | |
| main { display:flex; min-height:0; flex:0 0 auto; flex-direction:column; margin-bottom:auto; padding:18px 30px 22px; } | |
| .diffusion-workspace { | |
| display:grid; | |
| grid-template-columns:minmax(360px,.9fr) minmax(480px,1.18fr); | |
| align-items:stretch; | |
| gap:18px; | |
| min-height:432px; | |
| } | |
| .workspace-card { | |
| position:relative; | |
| min-width:0; | |
| overflow:hidden; | |
| border:1px solid var(--border); | |
| border-radius:12px; | |
| background:var(--paper); | |
| transition:border-color .2s,box-shadow .2s,transform .2s; | |
| } | |
| .prompt-panel,.response-panel { padding:20px; } | |
| .panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; } | |
| .panel-header h2 { margin:0 0 5px; color:var(--neutral-500); font:600 12px/1.25 var(--mono); letter-spacing:.08em; text-transform:uppercase; } | |
| .panel-header p { margin:0; color:var(--neutral-500); font-size:13px; line-height:1.4; } | |
| .activity-pill { | |
| display:inline-flex; | |
| align-items:center; | |
| gap:8px; | |
| flex:none; | |
| padding:7px 10px; | |
| border:1px solid var(--border); | |
| border-radius:999px; | |
| background:var(--neutral-50); | |
| color:var(--neutral-500); | |
| font-size:11px; | |
| font-weight:650; | |
| white-space:nowrap; | |
| } | |
| .activity-pill i { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(45,189,112,.1); } | |
| .activity-pill.is-running { border-color:rgba(108,79,224,.2); background:rgba(108,79,224,.055); color:var(--purple); } | |
| .activity-pill.is-running i { background:var(--purple); box-shadow:0 0 0 5px rgba(108,79,224,.11); animation:status-pulse .8s ease-in-out infinite; } | |
| .activity-pill.is-done { border-color:rgba(45,189,112,.2); background:rgba(45,189,112,.055); color:#188e50; animation:done-pill .5s ease both; } | |
| .activity-pill.is-error { border-color:rgba(228,84,84,.2); background:rgba(228,84,84,.055); color:var(--red); } | |
| .activity-pill.is-error i { background:var(--red); box-shadow:none; } | |
| .prompt-stage { position:relative; min-height:145px; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:var(--paper); transition:border-color .2s,box-shadow .2s; } | |
| .prompt-stage:focus-within { border-color:var(--purple); box-shadow:0 0 0 3px rgba(108,79,224,.11); } | |
| #prompt { position:relative; z-index:1; display:block; width:100%; min-height:145px; padding:15px 16px; border:0; outline:0; background:transparent; color:var(--ink); font-size:15px; line-height:1.55; resize:none; } | |
| #prompt::placeholder { color:var(--neutral-300); } | |
| .prompt-scan,.response-scan { position:absolute; inset:-1px; z-index:3; opacity:0; pointer-events:none; background:linear-gradient(90deg,transparent 20%,rgba(108,79,224,.055) 40%,rgba(205,130,240,.24) 49%,rgba(255,255,255,.86) 53%,transparent 73%); transform:translateX(-110%); } | |
| .is-generating .prompt-scan { opacity:1; animation:panel-sweep 1.15s cubic-bezier(.45,0,.25,1) infinite; } | |
| .composer-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:10px; } | |
| .composer-row > span { color:var(--neutral-500); font-size:10px; } | |
| #go { display:inline-flex; min-width:102px; align-items:center; justify-content:center; gap:9px; padding:9px 13px; border:1px solid var(--ink); border-radius:999px; background:var(--ink); color:var(--paper); font-size:12px; font-weight:650; cursor:pointer; transition:transform .16s,box-shadow .16s,opacity .16s; } | |
| #go i { font-size:16px; font-style:normal; transition:transform .16s; } | |
| #go:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 7px 18px rgba(0,0,0,.12); } | |
| #go:hover:not(:disabled) i { transform:translateX(2px); } | |
| #go:disabled { cursor:wait; opacity:.48; } | |
| .settings-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:17px 1px 9px; } | |
| .settings-heading h3 { margin:0; color:var(--neutral-500); font:600 10px/1.25 var(--mono); letter-spacing:.08em; text-transform:uppercase; } | |
| .settings-heading span { color:var(--neutral-300); font-size:10px; } | |
| .settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; } | |
| .range-control { display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 8px; min-width:0; padding:8px 10px 6px; border:1px solid var(--border); border-radius:9px; background:var(--neutral-50); } | |
| .range-control > span { overflow:hidden; color:var(--neutral-500); font-size:10px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; } | |
| .range-control output { color:var(--purple); font:650 10px/1 var(--mono); font-variant-numeric:tabular-nums; } | |
| .range-control input { grid-column:1/-1; } | |
| .range-wide { grid-column:1/-1; } | |
| input[type=range] { width:100%; height:18px; margin:0; appearance:none; background:transparent; accent-color:var(--purple); --pct:50%; cursor:pointer; } | |
| input[type=range]::-webkit-slider-runnable-track { height:5px; border-radius:999px; background:linear-gradient(90deg,var(--purple) 0 var(--pct),var(--neutral-200) var(--pct) 100%); } | |
| input[type=range]::-webkit-slider-thumb { width:14px; height:14px; margin-top:-4.5px; appearance:none; border:3px solid var(--paper); border-radius:50%; background:var(--purple); box-shadow:0 1px 4px rgba(38,26,90,.3); } | |
| input[type=range]::-moz-range-track { height:5px; border:0; border-radius:999px; background:var(--neutral-200); } | |
| input[type=range]::-moz-range-progress { height:5px; border-radius:999px; background:var(--purple); } | |
| input[type=range]::-moz-range-thumb { width:9px; height:9px; border:3px solid var(--paper); border-radius:50%; background:var(--purple); } | |
| .response-panel { display:flex; flex-direction:column; } | |
| .response-stage { position:relative; display:flex; min-height:342px; flex:1; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:linear-gradient(145deg,#fff 0%,rgba(108,79,224,.015) 55%,rgba(205,130,240,.035) 100%); transition:border-color .2s,box-shadow .2s; } | |
| .response-stage.is-denoising { border-color:rgba(108,79,224,.3); box-shadow:0 0 0 3px rgba(108,79,224,.055),inset 0 0 38px rgba(108,79,224,.025); } | |
| .response-stage.is-denoising .response-scan { opacity:1; animation:response-sweep 1.15s cubic-bezier(.45,0,.25,1) infinite; } | |
| .empty-state { display:flex; width:100%; flex-direction:column; align-items:center; justify-content:center; padding:30px; color:var(--neutral-500); text-align:center; } | |
| .empty-state strong { margin-top:17px; color:var(--neutral-700); font-size:14px; } | |
| .empty-state p { margin:5px 0 16px; font-size:12px; } | |
| .idle-orbit { position:relative; display:grid; width:58px; height:58px; place-items:center; border:1px solid rgba(108,79,224,.18); border-radius:50%; box-shadow:inset 0 0 0 12px rgba(108,79,224,.025); } | |
| .idle-orbit::before,.idle-orbit span { content:""; position:absolute; border-radius:50%; } | |
| .idle-orbit::before { width:10px; height:10px; background:var(--purple); box-shadow:0 0 0 6px rgba(108,79,224,.08); } | |
| .idle-orbit span { top:2px; width:7px; height:7px; background:var(--lilac); transform-origin:3.5px 26px; animation:idle-orbit-turn 3.2s linear infinite; } | |
| .idle-orbit i { width:28px; height:28px; border:1px dashed rgba(108,79,224,.18); border-radius:50%; animation:idle-orbit-turn 8s linear infinite reverse; } | |
| .idle-masks { display:flex; align-items:center; gap:5px; } | |
| .idle-masks span { width:24px; height:8px; border-radius:3px; background:rgba(108,79,224,.09); animation:idle-mask 1.6s ease-in-out infinite alternate; } | |
| .idle-masks span:nth-child(2),.idle-masks span:nth-child(5) { width:39px; animation-delay:-.5s; } | |
| .idle-masks span:nth-child(3),.idle-masks span:nth-child(6) { width:18px; animation-delay:-.9s; } | |
| .assistant-message { display:flex; width:100%; min-height:100%; flex-direction:column; padding:18px 18px 16px; } | |
| .canvas { flex:1; color:var(--ink); font-size:16px; line-height:1.75; white-space:pre-wrap; word-break:break-word; } | |
| .canvas .mask { display:inline-flex; height:1.7em; align-items:center; margin:2px 3px 2px 0; padding:0 6px; border:1px solid rgba(108,79,224,.12); border-radius:4px; background:linear-gradient(100deg,rgba(108,79,224,.055),rgba(205,130,240,.2),rgba(108,79,224,.055)); background-size:220% 100%; color:rgba(108,79,224,.78); font:600 9px/1 var(--mono); letter-spacing:-.025em; vertical-align:.1em; animation:mask-breathe 1.25s ease-in-out infinite,mask-shimmer 1.45s linear infinite; animation-delay:calc(var(--token-index) * -23ms); } | |
| .canvas .tok { animation:token-settle .28s ease both; } | |
| .canvas .tok.new { position:relative; border-radius:3px; animation:token-reveal .62s cubic-bezier(.2,.8,.2,1) both; } | |
| .starting-copy { color:var(--neutral-300); font-style:italic; } | |
| .generation-meta { margin-top:auto; padding-top:14px; } | |
| .step-track { height:6px; overflow:hidden; border-radius:999px; background:rgba(108,79,224,.08); } | |
| .step-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--purple),var(--lilac)); box-shadow:0 0 12px rgba(108,79,224,.28); transition:width .22s cubic-bezier(.2,.8,.2,1); } | |
| .stats { min-height:16px; margin-top:8px; color:var(--neutral-500); font:500 10px/1.5 var(--mono); font-variant-numeric:tabular-nums; } | |
| .response-stage.is-complete { animation:response-complete .8s ease both; } | |
| .examples-panel { display:flex; align-items:center; gap:15px; margin-top:16px; padding:15px 17px; overflow:hidden; border:1px solid var(--border); border-radius:11px; background:var(--neutral-50); } | |
| .examples-label { flex:none; color:var(--neutral-500); font:600 11px/1.3 var(--mono); letter-spacing:.07em; text-transform:uppercase; } | |
| .example-list { display:flex; flex-wrap:wrap; gap:7px; min-width:0; padding-top:2px; } | |
| .ex { display:inline-flex; align-items:center; padding:8px 12px; border:1px solid var(--border); border-radius:999px; background:var(--paper); color:var(--neutral-700); font-size:12px; line-height:1.15; cursor:pointer; transition:background .15s,border-color .15s,color .15s,transform .15s,box-shadow .15s; } | |
| .ex:hover { border-color:rgba(108,79,224,.28); color:var(--purple); transform:translateY(-1px); box-shadow:0 5px 12px rgba(54,42,105,.08); } | |
| .ex.active { border-color:var(--ink); background:var(--ink); color:var(--paper); box-shadow:none; } | |
| .prompt-panel.example-changed { animation:example-pulse .55s ease both; } | |
| .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; } | |
| @keyframes idle-orbit-turn { to { transform:rotate(360deg); } } | |
| @keyframes status-pulse { 50% { transform:scale(.72); opacity:.55; } } | |
| @keyframes done-pill { 0% { transform:scale(.95); } 55% { transform:scale(1.04); } 100% { transform:scale(1); } } | |
| @keyframes panel-sweep { from { transform:translateX(-110%); } to { transform:translateX(110%); } } | |
| @keyframes response-sweep { 0% { transform:translateX(-115%); } 70%,100% { transform:translateX(115%); } } | |
| @keyframes idle-mask { to { opacity:.35; transform:scaleX(.82); } } | |
| @keyframes mask-breathe { 50% { opacity:.42; transform:scaleY(.78); } } | |
| @keyframes mask-shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } } | |
| @keyframes token-settle { from { opacity:.35; } to { opacity:1; } } | |
| @keyframes token-reveal { 0% { color:var(--purple); background:rgba(205,130,240,.3); box-shadow:0 0 14px rgba(205,130,240,.35); transform:translateY(2px); } 100% { color:inherit; background:transparent; box-shadow:none; transform:none; } } | |
| @keyframes response-complete { 0% { box-shadow:0 0 0 0 rgba(45,189,112,.2); } 45% { border-color:rgba(45,189,112,.42); box-shadow:0 0 0 5px rgba(45,189,112,.09),inset 0 0 38px rgba(45,189,112,.035); } 100% { box-shadow:none; } } | |
| @keyframes example-pulse { 0% { border-color:var(--border); } 50% { border-color:rgba(108,79,224,.35); box-shadow:0 0 0 4px rgba(108,79,224,.06); } 100% { border-color:var(--border); box-shadow:none; } } | |
| @media (max-width:1120px) { | |
| .diffusion-workspace { grid-template-columns:minmax(330px,.88fr) minmax(410px,1.12fr); gap:14px; } | |
| } | |
| @media (max-width:900px) { | |
| .diffusion-workspace { grid-template-columns:1fr; gap:14px; } | |
| .response-stage { min-height:320px; } | |
| .model-copy { min-width:190px; } | |
| } | |
| @media (max-width:720px) { | |
| .wrap { width:100%; border:0; } | |
| .site-intro { padding:20px; } | |
| h1 { font-size:40px; } | |
| .sub { font-size:14px; } | |
| .model-strip { grid-template-columns:48px minmax(0,1fr); column-gap:16px; row-gap:10px; padding:12px 20px; } | |
| .model-copy { min-width:0; } | |
| .load-block { grid-column:1/-1; } | |
| main { padding:15px 20px 20px; } | |
| .prompt-panel,.response-panel { padding:17px; } | |
| .examples-panel { align-items:flex-start; flex-direction:column; gap:9px; } | |
| } | |
| @media (max-width:470px) { | |
| .model-name-row { align-items:flex-start; flex-direction:column; gap:2px; } | |
| .settings-grid { grid-template-columns:1fr; } | |
| .range-wide { grid-column:auto; } | |
| .composer-row { align-items:flex-end; flex-direction:column; } | |
| .composer-row > span { align-self:flex-start; } | |
| .response-heading { align-items:flex-start; flex-direction:column; } | |
| } | |
| @media (prefers-reduced-motion:reduce) { | |
| *,*::before,*::after { scroll-behavior:auto; animation-duration:.01ms; animation-iteration-count:1; transition-duration:.01ms; } | |
| } | |