Spaces:
Running
Running
Download demo.css from rigel08/polypshift: direct link, hf CLI and curl.
- Browser
- Download file 6.29 kB
-
https://huggingface.co/spaces/rigel08/polypshift/resolve/main/demo.css
- Command line
-
hf download hf://spaces/rigel08/polypshift/demo.css
-
curl -L -o demo.css https://huggingface.co/spaces/rigel08/polypshift/resolve/main/demo.css
6.29 kB
| /* Shared styles for the in-browser demos. Tokens come from ../styles.css (loaded first). */ | |
| .demo-top { display: flex; align-items: center; gap: 16px; height: 60px; } | |
| .demo-top .crumbs { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; } | |
| .demo-top .crumbs a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 999px; } | |
| .demo-top .crumbs a:hover { background: var(--bg-tint); color: var(--ink); } | |
| .banner { | |
| display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; | |
| margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; | |
| background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); | |
| font-size: 14.5px; line-height: 1.5; | |
| } | |
| .banner strong { color: var(--warn); } | |
| .banner .private { color: var(--ink-2); } | |
| .demo-head { padding: 28px 0 8px; } | |
| .demo-head h1 { font: 700 clamp(30px, 4.6vw, 46px)/1.08 var(--sans); letter-spacing: -.03em; margin-top: 10px; } | |
| .demo-head .lede { color: var(--ink-2); max-width: 70ch; margin-top: 12px; font-size: 16.5px; } | |
| .demo-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; margin: 24px 0 40px; align-items: start; } | |
| .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; } | |
| .panel h2 { font: 650 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; } | |
| .panel h2:not(:first-child) { margin-top: 22px; } | |
| .field { display: grid; gap: 6px; margin-bottom: 14px; } | |
| .field label, .field .lbl { font-size: 13.5px; color: var(--ink-2); font-weight: 600; } | |
| select, input[type="file"] { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; } | |
| input[type="range"] { width: 100%; accent-color: var(--accent); } | |
| .seg { display: grid; gap: 6px; } | |
| .seg label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); background: var(--bg); } | |
| .seg input { accent-color: var(--accent); } | |
| .seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); } | |
| .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } | |
| .btn.small { padding: 8px 14px; font-size: 14px; } | |
| .btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); } | |
| .status { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; min-height: 1.4em; font-variant-numeric: tabular-nums; } | |
| .status.err { color: #c2410c; } | |
| .bar-track { height: 4px; background: var(--bg-tint); border-radius: 4px; overflow: hidden; margin-top: 8px; } | |
| .bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; } | |
| .probs { display: grid; gap: 10px; } | |
| .prob { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; } | |
| .prob .name { color: var(--ink-2); } | |
| .prob .name b { color: var(--ink); } | |
| .prob .val { font-variant-numeric: tabular-nums; font-weight: 650; } | |
| .prob .track { grid-column: 1 / -1; position: relative; height: 8px; background: var(--bg-tint); border-radius: 6px; overflow: visible; } | |
| .prob .fill { height: 100%; border-radius: 6px; background: var(--ink-3); } | |
| .prob.flag .fill { background: var(--accent); } | |
| .prob .tick { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); opacity: .55; } | |
| .verdict { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-tint); font-size: 15px; } | |
| .verdict b { display: block; font-size: 18px; margin-bottom: 2px; } | |
| .verdict.alert { background: var(--accent-soft); } | |
| .note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.55; } | |
| .note code, .mono { font-family: var(--mono); font-size: 12.5px; } | |
| .canvas-wrap { position: relative; width: 100%; } | |
| .canvas-wrap canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--bg); } | |
| .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } | |
| .pair figure { margin: 0; } | |
| .pair figcaption, .cap { font-size: 13px; color: var(--ink-3); margin-top: 6px; } | |
| .kv { width: 100%; border-collapse: collapse; font-size: 14.5px; } | |
| .kv td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; } | |
| .kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; } | |
| .flags { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 14.5px; } | |
| .flags li { padding: 8px 12px; border-radius: 10px; background: var(--bg-tint); } | |
| .flags li.on { background: var(--warn-soft); color: var(--ink); } | |
| .flags li.on::before { content: "⚠ "; color: var(--warn); } | |
| .demo-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-3); font-size: 13.5px; } | |
| .demo-foot a { color: var(--ink-2); } | |
| /* Demos index */ | |
| .demo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 28px 0 48px; } | |
| .demo-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; } | |
| .demo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } | |
| .demo-card h2 { font: 700 22px/1.15 var(--sans); letter-spacing: -.02em; } | |
| .demo-card p { color: var(--ink-2); font-size: 15px; } | |
| .demo-card .meta { margin-top: auto; font-size: 13px; color: var(--ink-3); } | |
| .demo-card .go { color: var(--accent-ink); font-weight: 650; font-size: 15px; } | |
| .kind { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); } | |
| .kind.replay { background: var(--warn-soft); color: var(--warn); } | |
| @media (max-width: 860px) { | |
| .demo-grid { grid-template-columns: 1fr; } | |
| } | |
| @media (max-width: 520px) { | |
| .pair { grid-template-columns: 1fr; } | |
| .demo-top .crumbs a.hide-sm { display: none; } | |
| .panel { padding: 16px; } | |
| } | |
| .demo-card .kind { align-self: flex-start; } | |