Spaces:
Running on Zero
Running on Zero
Download style.css from PixilabAI/smalt-studio-medium: direct link, hf CLI and curl.
- Browser
- Download file 9.01 kB
-
https://huggingface.co/spaces/PixilabAI/smalt-studio-medium/resolve/main/style.css
- Command line
-
hf download hf://spaces/PixilabAI/smalt-studio-medium/style.css
-
curl -L -o style.css https://huggingface.co/spaces/PixilabAI/smalt-studio-medium/resolve/main/style.css
9.01 kB
| /* smalt studio (MIT): night smalt glaze, gold ink, sprites on dark tinted cards. Dark in every browser mode. */ | |
| :root, .dark { color-scheme: dark; } | |
| body, gradio-app { background: #0b1029 ; } | |
| .gradio-container { max-width: 1440px ; margin: 0 auto ; padding: 0 ; color: #ece6d6 ; | |
| background: | |
| radial-gradient(1000px 500px at 85% -10%, rgba(75, 99, 216, .22), transparent 60%), | |
| radial-gradient(700px 500px at -10% 110%, rgba(164, 76, 240, .12), transparent 60%), #0b1029 ; } | |
| footer { display: none ; } | |
| #sm-shell { gap: 0 ; align-items: stretch ; } | |
| /* ---------- sidebar ---------- */ | |
| #sm-side { background: rgba(14, 21, 56, .92) ; border-right: 1px solid #1d2560; padding: 26px 24px 28px ; | |
| gap: 14px ; position: sticky; top: 0; align-self: flex-start; min-height: 100vh; } | |
| .sm-side-head { text-align: center; } | |
| .sm-logo { width: 292px; max-width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; | |
| filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); margin: 4px auto 14px; display: block; } | |
| .sm-blurb { text-align: left; font-size: 15px; line-height: 1.55; color: #c9cdea; margin: 0 0 8px; } | |
| .sm-blurb b { color: #ece6d6; } | |
| .sm-by { font-size: 13px; color: #9aa3d4; margin: 0; } | |
| .sm-by a { color: #f2c45a; text-decoration: none; } | |
| .sm-by a:hover { text-decoration: underline; } | |
| #sm-side .block, #sm-side .form { box-shadow: none ; } | |
| #sm-prompt textarea { font-size: 16px ; line-height: 1.45 ; padding: 14px 16px ; border-radius: 14px ; | |
| border: 1px solid #2a3474 ; background: #0b1029 ; color: #ece6d6 ; } | |
| #sm-prompt textarea:focus { border-color: #f2c45a ; box-shadow: 0 0 0 3px rgba(242, 196, 90, .18) ; } | |
| #sm-chips { flex-wrap: wrap ; gap: 7px ; } | |
| #sm-chips .sm-chip { flex: 0 0 auto ; min-width: 0 ; width: auto ; border-radius: 999px ; | |
| padding: 6px 13px ; font-size: 13px ; font-weight: 500 ; background: #121a45 ; | |
| border: 1px solid #2a3474 ; color: #c9cdea ; box-shadow: none ; } | |
| #sm-chips .sm-chip:hover { border-color: #f2c45a ; color: #f2c45a ; background: #1a2357 ; } | |
| #sm-kinds .wrap, #sm-n .wrap { gap: 4px ; } | |
| #sm-kinds label, #sm-n label { border-radius: 10px ; padding: 5px 11px ; font-size: 13px ; | |
| background: #0e1538 ; border: 1px solid #1d2560 ; color: #c9cdea ; } | |
| #sm-kinds label.selected, #sm-n label.selected, #sm-kinds label:has(input:checked), #sm-n label:has(input:checked) { | |
| background: #f2c45a ; border-color: #f2c45a ; color: #0b1029 ; font-weight: 700; } | |
| #sm-kinds input[type=radio], #sm-n input[type=radio] { display: none ; } | |
| #sm-go { font-family: "Jersey 10", "Instrument Sans", sans-serif ; font-size: 27px ; letter-spacing: .5px; | |
| border-radius: 14px ; min-height: 52px; color: #0b1029 ; | |
| background: linear-gradient(180deg, #ffe08f, #f2c45a 50%, #c9952f) ; box-shadow: 0 4px 0 #6e4d12 ; | |
| transition: transform .06s; } | |
| #sm-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #6e4d12 ; } | |
| #sm-dice { border-radius: 14px ; min-height: 52px; font-size: 14px ; } | |
| #sm-settings { border-radius: 14px ; } | |
| /* ---------- tabs ---------- */ | |
| #sm-mainc { padding: 18px 30px 40px ; } | |
| #sm-tabs button[role="tab"], #sm-tabs .tab-container button, #sm-tabs .tab-wrapper button { | |
| color: #9aa3d4 ; background: transparent ; font-size: 16px ; font-weight: 600 ; } | |
| #sm-tabs button[role="tab"]:hover, #sm-tabs .tab-container button:hover { color: #ece6d6 ; } | |
| #sm-tabs button[role="tab"][aria-selected="true"], #sm-tabs .tab-container button.selected { color: #f2c45a ; } | |
| #sm-tabs button[role="tab"][aria-selected="true"]::after, #sm-tabs .tab-container button.selected::after { background: #f2c45a ; } | |
| #sm-tabs .tab-container, #sm-tabs .tab-wrapper { border-color: #1d2560 ; background: transparent ; } | |
| #sm-tabs .tabitem, #sm-tabs [role="tabpanel"] { background: transparent ; border: 0 ; } | |
| /* ---------- explore + palette ---------- */ | |
| .ex-head h2 { font-size: 30px; margin: 10px 0 4px; letter-spacing: -.3px; color: #ece6d6; font-weight: 700; } | |
| .ex-head p { margin: 0 0 22px; color: #9aa3d4; font-size: 15px; max-width: 760px; } | |
| .ex-head b { color: #f2c45a; } | |
| .ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; } | |
| .ex-card { position: relative; margin: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; cursor: default; | |
| box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7); transition: transform .18s ease, box-shadow .18s ease; | |
| animation: ex-in .5s ease both; } | |
| @keyframes ex-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } | |
| .ex-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(242, 196, 90, .55), 0 18px 34px -16px rgba(0,0,0,.8); } | |
| .ex-card img, .ex-anim { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; } | |
| .ex-anim { background-repeat: no-repeat; background-size: calc(var(--frames) * 100%) 100%; background-position: 0 0; opacity: 0; } | |
| .ex-card:hover .ex-anim { opacity: 1; animation: ex-play 1.3s steps(16) forwards; } | |
| .ex-card:hover img { opacity: 0; } | |
| @keyframes ex-play { from { background-position: 0 0; } to { background-position: 100% 0; } } | |
| .ex-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: 12px; font-weight: 600; color: #ece6d6; | |
| background: rgba(11, 16, 41, .82); backdrop-filter: blur(4px); border-radius: 8px; padding: 4px 8px; | |
| opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; } | |
| .ex-card:hover figcaption { opacity: 1; transform: none; } | |
| .pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 3px; } | |
| .pal-grid i { aspect-ratio: 1; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); } | |
| .pal-grid i:hover { transform: scale(1.6); box-shadow: 0 4px 10px rgba(0,0,0,.6); position: relative; z-index: 2; } | |
| /* ---------- studio ---------- */ | |
| #sm-status { min-height: 28px; color: #9aa3d4; font-size: 14px; } | |
| #sm-status strong { color: #ece6d6; } | |
| #sm-status code { color: #f2c45a ; background: transparent ; letter-spacing: -1px; } | |
| #sm-gallery, #sm-gallery > div { background: transparent ; border: 0 ; box-shadow: none ; } | |
| #sm-gallery .grid-wrap { padding: 0 ; } | |
| #sm-gallery .grid-container { gap: 16px ; } | |
| #sm-gallery .grid-wrap, #sm-gallery .grid-container { max-height: none ; overflow: visible ; } | |
| #sm-gallery { height: auto ; } | |
| #sm-gallery .thumbnail-item { border: 0 ; background: transparent ; border-radius: 18px ; | |
| box-shadow: 0 10px 26px -14px rgba(0,0,0,.7) ; transition: transform .15s; } | |
| #sm-gallery .thumbnail-item:hover { transform: translateY(-3px); } | |
| #sm-gallery .thumbnail-item.selected { box-shadow: 0 0 0 3px #f2c45a, 0 10px 26px -14px rgba(0,0,0,.8) ; } | |
| #sm-gallery img { image-rendering: pixelated ; image-rendering: crisp-edges ; border-radius: 18px; } | |
| #sm-actions { align-items: center ; gap: 10px ; margin-top: 10px; } | |
| #sm-actions .sm-act { min-height: 46px; border-radius: 12px ; font-size: 15px ; font-weight: 600 ; | |
| background: #121a45 ; border: 1px solid #2a3474 ; color: #ece6d6 ; } | |
| #sm-actions .sm-act:hover:not(:disabled) { border-color: #f2c45a ; color: #f2c45a ; background: #1a2357 ; } | |
| #sm-actions .sm-dl:not(:disabled) { background: #f2c45a ; color: #0b1029 ; border-color: #f2c45a ; } | |
| #sm-actions .sm-act:disabled { opacity: .45 ; } | |
| /* ---------- how it works ---------- */ | |
| #sm-how { max-width: 820px; font-size: 15px; color: #c9cdea; } | |
| #sm-how h2, #sm-how strong { color: #ece6d6; } | |
| #sm-how code { color: #f2c45a ; background: #1a2357 ; border: 0 ; padding: 1px 6px ; | |
| border-radius: 6px ; font-size: 13px ; } | |
| @media (max-width: 900px) { | |
| #sm-side { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid #1d2560; } | |
| #sm-mainc { padding: 14px 14px 30px ; } | |
| .ex-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { .ex-card, .ex-card:hover .ex-anim { animation: none ; } } | |