Spaces:
Running
Running
Download style.css from racklab/MagicEightBall: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/spaces/racklab/MagicEightBall/resolve/main/style.css
- Command line
-
hf download hf://spaces/racklab/MagicEightBall/style.css
-
curl -L -o style.css https://huggingface.co/spaces/racklab/MagicEightBall/resolve/main/style.css
10.2 kB
| :root { | |
| color-scheme: dark; | |
| --canvas: #19111b; | |
| --panel: #241924; | |
| --line: #40303d; | |
| --ink: #fff1dd; | |
| --muted: #cbb9c7; | |
| --quiet: #a58e9c; | |
| --mint: #a3e8b9; | |
| --gold: #f2c78e; | |
| --paper: #f8e8d2; | |
| font-family: "Segoe UI", system-ui, sans-serif; | |
| } | |
| *, *::before, *::after { box-sizing: border-box; } | |
| html { scroll-behavior: smooth; } | |
| body { margin: 0; background: radial-gradient(ellipse at 48% 0%, #271827 0, var(--canvas) 60%); color: var(--ink); } | |
| a { color: inherit; text-decoration: none; } | |
| button { font: inherit; color: inherit; cursor: pointer; } | |
| button[hidden], div[hidden] { display: none; } | |
| a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; } | |
| .wrap { width: min(1440px, calc(100% - 80px)); margin-inline: auto; } | |
| .skip-link { position: absolute; z-index: 4; top: .5rem; left: 1rem; padding: .75rem 1rem; border-radius: 8px; background: var(--paper); color: #211422; transform: translateY(-150%); } | |
| .skip-link:focus { transform: translateY(0); } | |
| .masthead { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 12px; } | |
| .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 730; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; } | |
| .brand-ball { width: 20px; height: 20px; border-radius: 50%; flex: none; background: radial-gradient(circle at 37% 34%, #fff5e3 0 18%, #c69a74 75%); box-shadow: inset -2px -2px 4px #8a6148, 0 0 16px #e9ab6730; } | |
| .masthead nav, .footer > div { display: flex; gap: clamp(15px, 3vw, 38px); align-items: center; color: var(--muted); font-size: 14px; font-weight: 610; } | |
| .masthead nav a:hover, .footer a:hover, .roadmap a:hover { color: var(--mint); } | |
| .nav-collection { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; } | |
| .nav-collection span, .footer span:not(.brand-ball), .roadmap a span { margin-left: 3px; color: var(--quiet); } | |
| .cover { overflow: hidden; position: relative; isolation: isolate; aspect-ratio: 1914 / 822; border: 1px solid #58404a; border-radius: 23px; background: #26161e; } | |
| .cover picture { display: block; position: absolute; inset: 0; } | |
| .cover-image { display: block; width: 100%; height: 100%; object-fit: cover; } | |
| .cover-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #120b18d4, #170d1764 29%, transparent 54%), linear-gradient(0deg, #130c1588, transparent 20%); } | |
| .cover-copy { position: absolute; top: clamp(25px, 3.4vw, 56px); left: clamp(25px, 5vw, 68px); z-index: 1; } | |
| .cover h1 { margin: 0; font-size: clamp(42px, 6.9vw, 104px); line-height: .96; font-weight: 760; letter-spacing: -.09em; text-wrap: balance; } | |
| .cover p { margin: clamp(11px, 1.5vw, 17px) 0 0; font-size: clamp(14px, 1.65vw, 23px); font-weight: 530; color: var(--paper); letter-spacing: -.017em; } | |
| .motion-toggle { z-index: 2; position: absolute; bottom: 19px; right: 19px; display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; font-size: 12px; background: #1f1521ed; border: 1px solid #664c5a; border-radius: 999px; } | |
| .motion-toggle:hover { background: #382438; } | |
| #motion-icon { color: var(--mint); font-weight: 720; width: 12px; text-align: center; } | |
| .lineup, .roadmap { scroll-margin-top: 18px; } | |
| .roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 13px 0 21px; } | |
| .roster button { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px; text-align: left; border-radius: 13px; border: 1px solid var(--line); background: #211721; } | |
| .roster button:hover { background: #30212e; border-color: #654c5d; } | |
| .roster button[aria-selected="true"] { background: #2b2230; border-color: #8eab92; box-shadow: inset 0 -2px #8dd2a6; } | |
| .roster strong { display: block; font-size: clamp(12px, 1.44vw, 17px); letter-spacing: -.027em; overflow-wrap: anywhere; } | |
| .roster small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; } | |
| .ball { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #241719; font-size: 13px; font-weight: 790; background: radial-gradient(circle at center, #fff1d5 0 28%, #fff1d500 30%), radial-gradient(circle at 33% 27%, #ffffff50, var(--tone) 46%, #140c14 100%); box-shadow: 0 2px 6px #0f080c80; } | |
| .ball-gold { --tone: #e8ad3c; } | |
| .ball-green { --tone: #308960; } | |
| .ball-eight { --tone: #343142; } | |
| .ball-blue { --tone: #548ac8; background: radial-gradient(circle at center, #fff1d5 0 29%, #fff1d500 30%), linear-gradient(#ead2b0 0 25%, #548ac8 25% 75%, #9f876f 75%); } | |
| .ball-cue { background: radial-gradient(circle at 34% 30%, #fff8e8, #e4c5a6 58%, #635043); } | |
| .model-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-height: 295px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #2b1f2c, #201722 68%); overflow: hidden; } | |
| .model-copy { padding: clamp(23px, 3vw, 42px); padding-right: 19px; } | |
| .state { color: var(--mint); display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 670; } | |
| .state span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; } | |
| .state[data-stage="test"] { color: var(--gold); } | |
| .state[data-stage="next"] { color: #c0b8e9; } | |
| .model-copy h2 { margin: 9px 0 12px; font-size: clamp(32px, 4.1vw, 59px); line-height: 1; font-weight: 745; letter-spacing: -.066em; } | |
| .model-description, .roadmap p { color: var(--muted); line-height: 1.55; } | |
| .model-description { max-width: 43ch; margin: 0; font-size: clamp(14px, 1.32vw, 17px); } | |
| .model-art { padding: 22px 22px 22px 12px; min-width: 0; } | |
| .model-art img { display: block; width: 100%; height: auto; aspect-ratio: 2.33; object-fit: cover; border: 1px solid #58404a; border-radius: 13px; } | |
| .facts { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 18px 26px; } | |
| .facts div { display: grid; gap: 4px; } | |
| .facts dt { color: var(--quiet); font-size: 12px; } | |
| .facts dd { margin: 0; font-size: 17px; letter-spacing: -.025em; font-weight: 680; } | |
| .model-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; font-size: 13px; color: var(--muted); font-weight: 650; } | |
| .model-links a:hover { color: var(--mint); } | |
| .model-links a.primary-link { padding: 10px 13px; border-radius: 8px; background: var(--mint); color: #192a20; } | |
| .model-links a.primary-link:hover { background: #c7f4cf; } | |
| .model-links span { margin-left: 4px; } | |
| .sample-area { margin-top: 16px; } | |
| .sample-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid #6a535f; border-radius: 8px; background: #372736; font-size: 13px; font-weight: 650; } | |
| .sample-toggle:hover { border-color: var(--mint); } | |
| .sample-toggle span:first-child { color: var(--mint); } | |
| .sample-message { margin: 5px 0 0; color: var(--muted); font-size: 12px; } | |
| .roadmap { padding: clamp(48px, 8vw, 96px) 0 48px; } | |
| .section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; } | |
| .section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 744; line-height: 1; letter-spacing: -.07em; } | |
| .section-heading p { margin: 0; font-size: 15px; } | |
| .roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; } | |
| .roadmap-stage { border: 1px solid var(--line); border-radius: 15px; background: #231923; padding: 20px; } | |
| .roadmap-stage h3 { color: var(--stage-color); font-size: 14px; font-weight: 685; margin: 0 0 15px; } | |
| .stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: .1em; } | |
| .stage-done { --stage-color: var(--mint); } | |
| .stage-test { --stage-color: var(--gold); } | |
| .stage-next { --stage-color: #c0b8e9; } | |
| .roadmap-item { border-top: 1px solid var(--line); padding-top: 13px; } | |
| .roadmap-item + .roadmap-item { margin-top: 14px; } | |
| .roadmap-item a { font-size: 17px; font-weight: 710; letter-spacing: -.03em; } | |
| .roadmap-item p { margin: 6px 0 0; font-size: 14px; max-width: 42ch; } | |
| .footer { padding: 20px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 17px; } | |
| @media (max-width: 1050px) { | |
| .wrap { width: calc(100% - 48px); } | |
| .roster button { gap: 7px; padding: 10px 8px; } | |
| .ball { width: 30px; height: 30px; } | |
| } | |
| @media (max-width: 740px) { | |
| .wrap { width: calc(100% - 28px); } | |
| .masthead { min-height: 61px; } | |
| .masthead nav { gap: 13px; font-size: 12px; } | |
| .nav-collection { padding: 6px 8px; } | |
| .brand { font-size: 16px; gap: 6px; } | |
| .brand-ball { width: 16px; height: 16px; } | |
| .cover { aspect-ratio: unset; height: auto; border-radius: 15px; padding-top: 113px; } | |
| .cover picture { position: relative; display: block; } | |
| .cover-image { height: auto; aspect-ratio: 1914 / 822; } | |
| .cover-shade { background: linear-gradient(180deg, #1f1222, #1f122200 68%); } | |
| .cover-copy { top: 23px; left: 17px; } | |
| .cover h1 { font-size: clamp(39px, 8vw, 62px); line-height: .98; } | |
| .cover p { font-size: 14px; margin-top: 9px; } | |
| .motion-toggle { bottom: 8px; right: 8px; padding: 6px 8px; font-size: 10px; } | |
| .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 13px; } | |
| .roster strong { font-size: 13px; white-space: nowrap; } | |
| .roster small { font-size: 11px; } | |
| .roster button[data-model='magiceightball'] { grid-column: 1 / -1; } | |
| .model-panel { grid-template-columns: minmax(0, 1fr); } | |
| .model-art { padding: 0 13px 13px; } | |
| .model-copy { padding: 21px 19px; } | |
| .roadmap { padding-bottom: 34px; } | |
| .roadmap-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; } | |
| .roadmap-stage { padding: 17px; } | |
| .footer > div { gap: 11px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| html { scroll-behavior: auto; } | |
| } | |
| @media (max-width: 355px) { | |
| .masthead nav { gap: 8px; } | |
| .masthead .nav-collection { padding-inline: 5px; } | |
| .cover h1 { font-size: 34px; } | |
| } | |