Download styles.css from api-ix/Bxhdh: direct link, hf CLI and curl.
- Browser
- Download file 9.89 kB
-
https://huggingface.co/spaces/api-ix/Bxhdh/resolve/main/styles.css
- Command line
-
hf download hf://spaces/api-ix/Bxhdh/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/api-ix/Bxhdh/resolve/main/styles.css
9.89 kB
| /* 1. Custom font – make it usable everywhere */ | |
| @font-face { | |
| font-family: "Gagalin"; | |
| src: url("./media/gagalin.otf") format("opentype"); | |
| font-display: swap; | |
| } | |
| :root { | |
| --bg: #0f0f0f; | |
| --surface: rgba(255, 255, 255, 0.05); | |
| --border: rgba(255, 255, 255, 0.08); | |
| --accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%); | |
| --accent-solid: #ffb347; | |
| --text: #ffffff; | |
| --text2: #d2b48c; | |
| --radius: 16px; | |
| } | |
| /* 2. Apply Gagalin globally */ | |
| * { | |
| margin: 0; padding: 0; box-sizing: border-box; | |
| } | |
| html { scroll-behavior: smooth; } | |
| body { | |
| font-family: "Gagalin", "Inter", -apple-system, BlinkMacSystemFont, sans-serif; | |
| background: var(--bg); | |
| color: var(--text); | |
| line-height: 1.5; | |
| overflow-x: hidden; | |
| } | |
| /* 3. Liquid BG */ | |
| .liquid-bg { | |
| position: fixed; inset: 0; z-index: -1; overflow: hidden; | |
| } | |
| .orb { | |
| position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.7; | |
| animation: drift 20s infinite ease-in-out; | |
| } | |
| .orb-1 { width: 50vw; height: 50vw; top: -15%; left: -15%; background: #ffb347; } | |
| .orb-2 { width: 40vw; height: 40vw; bottom: -15%; right: -15%; background: #ff8c00; } | |
| .orb-3 { width: 30vw; height: 30vw; top: 30%; left: 30%; background: #d2691e; } | |
| @keyframes drift { | |
| 0% { transform: translate(0, 0) scale(1); } | |
| 50% { transform: translate(40px, -40px) scale(1.15); } | |
| 100% { transform: translate(0, 0) scale(1); } | |
| } | |
| /* 4. Header */ | |
| .header { | |
| position: sticky; top: 0; z-index: 10; | |
| display: flex; align-items: center; justify-content: space-between; | |
| padding: 1rem 2rem; background: var(--surface); backdrop-filter: blur(20px); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .logo { font-family: "Gagalin"; font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; color: var(--accent-solid); } | |
| nav { display: flex; gap: 1.2rem; } | |
| nav a { color: var(--text2); font-weight: 500; text-decoration: none; transition: color .2s; } | |
| nav a:hover { color: var(--accent-solid); } | |
| /* 5. Hero */ | |
| .hero { | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; | |
| text-align: center; min-height: 50vh; padding: 4rem 1rem; | |
| } | |
| .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 800; } | |
| .hero-title .accent { | |
| background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; | |
| } | |
| .hero-sub { margin: .75rem 0 2rem; color: var(--text2); } | |
| .cta { | |
| background: var(--accent); color: #000; border: none; | |
| padding: .9rem 2.2rem; border-radius: 50px; font-family: "Gagalin"; font-size: 1rem; | |
| cursor: pointer; transition: transform .25s, box-shadow .25s; | |
| } | |
| .cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); } | |
| .btn-copy { | |
| font-family: "Gagalin", "JetBrains Mono", monospace ; | |
| } | |
| /* 6. Stats */ | |
| .stats { | |
| display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap; | |
| } | |
| .stat-card { | |
| background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); | |
| padding: 1.2rem 2rem; text-align: center; min-width: 150px; backdrop-filter: blur(20px); | |
| transition: transform .25s, box-shadow .25s; | |
| } | |
| .stat-card:hover, | |
| .stat-card:active { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(255, 179, 71, 0.35); } | |
| .stat-card i { | |
| display: block; font-size: 1.5rem; | |
| background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; | |
| margin-bottom: .4rem; | |
| } | |
| .stat-card span { font-size: 1.4rem; font-weight: 700; } | |
| .stat-card small { color: var(--text2); } | |
| /* 7. API Section */ | |
| .api-section { padding: 3rem 1rem; max-width: 1000px; margin: auto; } | |
| .controls { margin-bottom: 2rem; } | |
| #search { | |
| width: 100%; max-width: 400px; margin: 0 auto 1rem; display: block; | |
| padding: .75rem 1rem; border-radius: 50px; border: 1px solid var(--border); | |
| background: var(--surface); color: var(--text); | |
| } | |
| .pills { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; } | |
| .pill { | |
| padding: .4rem 1rem; border: 1px solid var(--border); border-radius: 50px; | |
| background: transparent; color: var(--text2); cursor: pointer; | |
| transition: all .25s ease; | |
| } | |
| .pill:hover, .pill.active { | |
| background: var(--accent); color: #000; border-color: var(--accent-solid); | |
| } | |
| .grid { | |
| display: grid; gap: 1.5rem; | |
| grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); | |
| } | |
| .card { | |
| background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); | |
| padding: 1.5rem; transition: transform .25s, box-shadow .25s; cursor: pointer; | |
| position: relative; | |
| } | |
| .card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(255, 179, 71, 0.4); } | |
| .card h4 { margin-bottom: .5rem; font-size: 1.1rem; } | |
| .card .cat { | |
| display: inline-block; font-size: .7rem; background: var(--accent); | |
| color: #000; padding: .2rem .6rem; border-radius: 20px; margin-bottom: .7rem; | |
| } | |
| .card p { font-size: .9rem; color: var(--text2); } | |
| .card .method { | |
| position: absolute; top: 1rem; right: 1rem; | |
| font-family: var(--mono); font-size: .7rem; | |
| background: rgba(255, 179, 71, 0.2); color: #ffb347; | |
| padding: .15rem .4rem; border-radius: 4px; | |
| } | |
| .status { | |
| position: absolute; bottom: 1rem; right: 1rem; | |
| font-size: .7rem; font-weight: 600; | |
| color: #000; padding: .2rem .5rem; border-radius: 12px; | |
| } | |
| .status.active { background: #2ecc71; } | |
| .status.inactive { background: #e74c3c; } | |
| .load-more { | |
| display: block; margin: 2.5rem auto 0; | |
| padding: .75rem 2rem; border: 1px solid var(--accent-solid); | |
| border-radius: 50px; color: var(--accent-solid); background: transparent; | |
| cursor: pointer; transition: all .25s ease; | |
| } | |
| .load-more:hover { background: var(--accent); color: #000; } | |
| /* 8. Docs */ | |
| .docs { | |
| background: var(--surface); margin: 2rem 0; padding: 3rem 1rem; | |
| text-align: center; | |
| } | |
| .docs h2 { font-size: 1.8rem; margin-bottom: 2rem; } | |
| .steps { | |
| display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); | |
| gap: 2rem; max-width: 800px; margin: auto; | |
| } | |
| .step-icon { | |
| width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; | |
| background: var(--accent); display: grid; place-items: center; | |
| font-family: "Gagalin"; font-size: 2.2rem; color: #000; | |
| } | |
| .step-icon::before { content: attr(class); } | |
| .step-icon.icon-1::before { content: "1"; } | |
| .step-icon.icon-2::before { content: "2"; } | |
| .step-icon.icon-3::before { content: "3"; } | |
| article h3 { font-size: 1.1rem; margin-bottom: .5rem; } | |
| article p { color: var(--text2); } | |
| /* 9. Footer */ | |
| footer { | |
| text-align: center; padding: 2rem 1rem; color: var(--text2); | |
| } | |
| .social { display: flex; justify-content: center; gap: 1rem; margin-bottom: .8rem; } | |
| .social a { color: var(--text2); font-size: 1.3rem; transition: color .2s; } | |
| .social a:hover { color: var(--accent-solid); } | |
| /* 10. Modal */ | |
| .modal { | |
| position: fixed; inset: 0; z-index: 100; | |
| display: grid; place-items: center; padding: 1rem; | |
| background: rgba(0,0,0,.6); backdrop-filter: blur(8px); | |
| opacity: 0; visibility: hidden; transition: opacity .3s; | |
| } | |
| .modal.active { opacity: 1; visibility: visible; } | |
| .modal-card { | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: var(--radius); width: 100%; max-width: 450px; | |
| max-height: 80vh; overflow-y: auto; padding: 2rem; position: relative; | |
| } | |
| .modal-close { | |
| position: absolute; top: 1rem; right: 1rem; background: none; | |
| border: none; font-size: 1.5rem; color: var(--text2); cursor: pointer; | |
| } | |
| .code-snippet { | |
| background: #111; border: 1px solid var(--border); border-radius: 8px; | |
| padding: 1rem; font-family: var(--mono); font-size: .85rem; | |
| margin-top: 1rem; overflow-x: auto; | |
| } | |
| /* 11. Modal Buttons (tappable) */ | |
| .btn-copy { | |
| background: var(--accent); color: #000; border: none; | |
| padding: .5rem 1rem; border-radius: 50px; font-size: .85rem; | |
| cursor: pointer; transition: all .15s ease; | |
| } | |
| .btn-copy:active { | |
| transform: scale(.94); | |
| filter: brightness(1.3); | |
| } | |
| .btn-copy:hover { opacity: .9; } | |
| /* 12. Responsive */ | |
| @media (max-width: 600px) { | |
| .header { padding: 1rem; } | |
| nav { display: none; } | |
| } | |
| /* ====== DYNAMIC EYE-CANDY ====== */ | |
| /* ---- music widget ---- */ | |
| #music-widget { | |
| position: fixed; | |
| bottom: 2rem; | |
| right: 2rem; | |
| z-index: 200; | |
| display: flex; | |
| align-items: center; | |
| gap: .6rem; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 50px; | |
| padding: .5rem 1rem; | |
| backdrop-filter: blur(12px); | |
| animation: slideIn .6s ease-out; | |
| } | |
| #music-toggle { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| border: none; | |
| background: var(--accent); | |
| color: #000; | |
| font-size: 1rem; | |
| cursor: pointer; | |
| transition: transform .2s; | |
| } | |
| #music-toggle:hover { transform: scale(1.15); } | |
| #music-text { font-size: .75rem; color: var(--text2); } | |
| /* ---- cursor chasing orbs ---- */ | |
| .orb { | |
| will-change: transform; | |
| transition: transform .6s ease-out; | |
| } | |
| body:hover .orb { animation: none; } /* pause default drift on hover */ | |
| /* ---- 3-D tilt cards ---- */ | |
| .card { | |
| transform-style: preserve-3d; | |
| transition: transform .3s ease, box-shadow .3s ease; | |
| } | |
| .card:hover { | |
| transform: perspective(1000px) rotateX(6deg) rotateY(-6deg) scale(1.05); | |
| box-shadow: 0 20px 40px rgba(255, 179, 71, .45); | |
| } | |
| /* ---- button ripple ---- */ | |
| .cta, .pill, .load-more, .btn-copy { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .ripple { | |
| position: absolute; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, .6); | |
| transform: scale(0); | |
| animation: ripple .6s ease-out; | |
| } | |
| @keyframes ripple { to { transform: scale(4); opacity: 0; } } | |
| /* ---- header auto-shrink ---- */ | |
| .header { | |
| transition: padding .3s, background .3s; | |
| } | |
| .header.compact { padding: .6rem 2rem; background: rgba(0, 0, 0, .45); } | |
| /* ---- number count-up ---- */ | |
| .stat-card span { | |
| display: inline-block; | |
| min-width: 3rem; /* avoid jump */ | |
| } | |
| /* ---- micro-animations ---- */ | |
| @keyframes slideIn { from { transform: translateY(30px); opacity: 0; } } | |