Spaces:
Running on Zero

smalt-studio / style.css
nyxia's picture
smalt studio
6a76c87
Raw History Blame Contribute Delete
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 !important; }
.gradio-container { max-width: 1440px !important; margin: 0 auto !important; padding: 0 !important; color: #ece6d6 !important;
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 !important; }
footer { display: none !important; }
#sm-shell { gap: 0 !important; align-items: stretch !important; }
/* ---------- sidebar ---------- */
#sm-side { background: rgba(14, 21, 56, .92) !important; border-right: 1px solid #1d2560; padding: 26px 24px 28px !important;
gap: 14px !important; 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 !important; }
#sm-prompt textarea { font-size: 16px !important; line-height: 1.45 !important; padding: 14px 16px !important; border-radius: 14px !important;
border: 1px solid #2a3474 !important; background: #0b1029 !important; color: #ece6d6 !important; }
#sm-prompt textarea:focus { border-color: #f2c45a !important; box-shadow: 0 0 0 3px rgba(242, 196, 90, .18) !important; }
#sm-chips { flex-wrap: wrap !important; gap: 7px !important; }
#sm-chips .sm-chip { flex: 0 0 auto !important; min-width: 0 !important; width: auto !important; border-radius: 999px !important;
padding: 6px 13px !important; font-size: 13px !important; font-weight: 500 !important; background: #121a45 !important;
border: 1px solid #2a3474 !important; color: #c9cdea !important; box-shadow: none !important; }
#sm-chips .sm-chip:hover { border-color: #f2c45a !important; color: #f2c45a !important; background: #1a2357 !important; }
#sm-kinds .wrap, #sm-n .wrap { gap: 4px !important; }
#sm-kinds label, #sm-n label { border-radius: 10px !important; padding: 5px 11px !important; font-size: 13px !important;
background: #0e1538 !important; border: 1px solid #1d2560 !important; color: #c9cdea !important; }
#sm-kinds label.selected, #sm-n label.selected, #sm-kinds label:has(input:checked), #sm-n label:has(input:checked) {
background: #f2c45a !important; border-color: #f2c45a !important; color: #0b1029 !important; font-weight: 700; }
#sm-kinds input[type=radio], #sm-n input[type=radio] { display: none !important; }
#sm-go { font-family: "Jersey 10", "Instrument Sans", sans-serif !important; font-size: 27px !important; letter-spacing: .5px;
border-radius: 14px !important; min-height: 52px; color: #0b1029 !important;
background: linear-gradient(180deg, #ffe08f, #f2c45a 50%, #c9952f) !important; box-shadow: 0 4px 0 #6e4d12 !important;
transition: transform .06s; }
#sm-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #6e4d12 !important; }
#sm-dice { border-radius: 14px !important; min-height: 52px; font-size: 14px !important; }
#sm-settings { border-radius: 14px !important; }
/* ---------- tabs ---------- */
#sm-mainc { padding: 18px 30px 40px !important; }
#sm-tabs button[role="tab"], #sm-tabs .tab-container button, #sm-tabs .tab-wrapper button {
color: #9aa3d4 !important; background: transparent !important; font-size: 16px !important; font-weight: 600 !important; }
#sm-tabs button[role="tab"]:hover, #sm-tabs .tab-container button:hover { color: #ece6d6 !important; }
#sm-tabs button[role="tab"][aria-selected="true"], #sm-tabs .tab-container button.selected { color: #f2c45a !important; }
#sm-tabs button[role="tab"][aria-selected="true"]::after, #sm-tabs .tab-container button.selected::after { background: #f2c45a !important; }
#sm-tabs .tab-container, #sm-tabs .tab-wrapper { border-color: #1d2560 !important; background: transparent !important; }
#sm-tabs .tabitem, #sm-tabs [role="tabpanel"] { background: transparent !important; border: 0 !important; }
/* ---------- 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 !important; background: transparent !important; letter-spacing: -1px; }
#sm-gallery, #sm-gallery > div { background: transparent !important; border: 0 !important; box-shadow: none !important; }
#sm-gallery .grid-wrap { padding: 0 !important; }
#sm-gallery .grid-container { gap: 16px !important; }
#sm-gallery .grid-wrap, #sm-gallery .grid-container { max-height: none !important; overflow: visible !important; }
#sm-gallery { height: auto !important; }
#sm-gallery .thumbnail-item { border: 0 !important; background: transparent !important; border-radius: 18px !important;
box-shadow: 0 10px 26px -14px rgba(0,0,0,.7) !important; 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) !important; }
#sm-gallery img { image-rendering: pixelated !important; image-rendering: crisp-edges !important; border-radius: 18px; }
#sm-actions { align-items: center !important; gap: 10px !important; margin-top: 10px; }
#sm-actions .sm-act { min-height: 46px; border-radius: 12px !important; font-size: 15px !important; font-weight: 600 !important;
background: #121a45 !important; border: 1px solid #2a3474 !important; color: #ece6d6 !important; }
#sm-actions .sm-act:hover:not(:disabled) { border-color: #f2c45a !important; color: #f2c45a !important; background: #1a2357 !important; }
#sm-actions .sm-dl:not(:disabled) { background: #f2c45a !important; color: #0b1029 !important; border-color: #f2c45a !important; }
#sm-actions .sm-act:disabled { opacity: .45 !important; }
/* ---------- 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 !important; background: #1a2357 !important; border: 0 !important; padding: 1px 6px !important;
border-radius: 6px !important; font-size: 13px !important; }
@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 !important; }
.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 !important; } }