Spaces:
Running
Running
Download style.css from Parv777/design-assistant: direct link, hf CLI and curl.
- Browser
- Download file 4.4 kB
-
https://huggingface.co/spaces/Parv777/design-assistant/resolve/main/style.css
- Command line
-
hf download hf://spaces/Parv777/design-assistant/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Parv777/design-assistant/resolve/main/style.css
4.4 kB
| :root { | |
| --bg: #f5f6fa; | |
| --card: #ffffff; | |
| --line: #dfe3ec; | |
| --ink: #232733; | |
| --muted: #6b7280; | |
| --brand: #4f46e5; | |
| --brand2: #ec4899; | |
| --ok: #15803d; | |
| --err: #b91c1c; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| font: 15px/1.45 "Segoe UI", Arial, sans-serif; | |
| color: var(--ink); | |
| background: var(--bg); | |
| } | |
| header { | |
| background: linear-gradient(90deg, var(--brand), var(--brand2)); | |
| color: #fff; | |
| padding: 14px 20px 0; | |
| } | |
| header h1 { margin: 0 0 10px; font-size: 20px; font-weight: 600; } | |
| .badge { | |
| font-size: 11px; | |
| background: rgba(255,255,255,.22); | |
| border-radius: 20px; | |
| padding: 3px 10px; | |
| vertical-align: middle; | |
| margin-left: 8px; | |
| } | |
| nav { display: flex; gap: 4px; flex-wrap: wrap; } | |
| nav button { | |
| border: 0; | |
| background: rgba(255,255,255,.14); | |
| color: #fff; | |
| padding: 9px 14px; | |
| border-radius: 10px 10px 0 0; | |
| cursor: pointer; | |
| font-size: 14px; | |
| } | |
| nav button.active { background: var(--bg); color: var(--ink); font-weight: 600; } | |
| main { max-width: 1080px; margin: 0 auto; padding: 18px 20px 80px; } | |
| .tab { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; } | |
| .tab.active { display: block; } | |
| h2 { margin: 0 0 14px; font-size: 18px; } | |
| label { display: block; margin: 8px 0; font-size: 13px; color: var(--muted); } | |
| label input, label textarea, label select, .row > input, .row > select { | |
| display: block; | |
| width: 100%; | |
| margin-top: 4px; | |
| padding: 9px 11px; | |
| border: 1px solid var(--line); | |
| border-radius: 9px; | |
| font: inherit; | |
| color: var(--ink); | |
| background: #fff; | |
| } | |
| label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 6px 10px 6px 0; color: var(--ink); font-size: 14px; } | |
| label.inline input, label.inline select { display: inline-block; width: auto; margin: 0; } | |
| .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; } | |
| .row > input[type=file] { flex: 1 1 240px; } | |
| .row > select, .row > label { margin: 0; } | |
| button { cursor: pointer; } | |
| button.primary { | |
| background: var(--brand); | |
| color: #fff; | |
| border: 0; | |
| border-radius: 10px; | |
| padding: 10px 16px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| } | |
| button.primary:disabled { opacity: .5; cursor: wait; } | |
| button:not(.primary) { | |
| border: 1px solid var(--line); | |
| background: #fff; | |
| border-radius: 10px; | |
| padding: 9px 13px; | |
| font-size: 13px; | |
| } | |
| .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; } | |
| @media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } } | |
| .hint { color: var(--muted); font-size: 12.5px; } | |
| .status { margin: 10px 0; font-size: 13.5px; min-height: 18px; } | |
| .status.ok { color: var(--ok); } | |
| .status.err { color: var(--err); white-space: pre-wrap; } | |
| .preview { max-width: 100%; display: block; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; } | |
| .global-status { | |
| position: fixed; left: 0; right: 0; bottom: 0; | |
| background: #1f2330; color: #e5e7eb; | |
| font-size: 12.5px; padding: 6px 14px; | |
| display: none; | |
| } | |
| .global-status.show { display: block; } | |
| .lines { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow: auto; margin: 8px 0; } | |
| .lines .line { display: grid; grid-template-columns: 34px 1fr 90px; gap: 8px; align-items: center; } | |
| .lines .line span { color: var(--muted); font-size: 12px; text-align: right; } | |
| .lines .line input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; } | |
| .lines .line input.size { text-align: center; } | |
| .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; } | |
| .gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } | |
| .gallery img { width: 100%; display: block; } | |
| .gallery figcaption { padding: 8px; font-size: 12px; } | |
| .gallery a { color: var(--brand); } | |
| .card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fbfbfe; } | |
| .card h3 { margin: 0 0 6px; font-size: 15px; } | |
| .card pre { white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 8px; font-size: 12.5px; } | |
| .dl-link { | |
| display: inline-block; | |
| margin: 4px 8px 4px 0; | |
| padding: 8px 12px; | |
| background: #eef2ff; | |
| color: var(--brand); | |
| border-radius: 9px; | |
| text-decoration: none; | |
| font-size: 13px; | |
| font-weight: 600; | |
| } | |