Spaces:
Running on Zero
Running on Zero
Download ui.css from sujalrajpoot/AIRealNetAudio: direct link, hf CLI and curl.
- Browser
- Download file 9.82 kB
-
https://huggingface.co/spaces/sujalrajpoot/AIRealNetAudio/resolve/main/ui.css
- Command line
-
hf download hf://spaces/sujalrajpoot/AIRealNetAudio/ui.css
-
curl -L -o ui.css https://huggingface.co/spaces/sujalrajpoot/AIRealNetAudio/resolve/main/ui.css
9.82 kB
| /* ------------------------------------------------------------------ | |
| AIRealNetAudio UI | |
| Theme-aware: every colour below is a token, redefined for dark mode. | |
| (The earlier bug: hero had a hard-coded light background while Gradio | |
| forced light text on it in dark mode, so the title was invisible.) | |
| ------------------------------------------------------------------- */ | |
| .gradio-container { | |
| --ai-indigo: #5b5bd6; | |
| --ai-purple: #7c3aed; | |
| --ai-ink: #111827; | |
| --ai-muted: #5b6474; | |
| --ai-border: #e3e6ee; | |
| --ai-surface: #ffffff; | |
| --ai-surface-2: #f5f6fc; | |
| --ai-badge-bg: rgba(91, 91, 214, .10); | |
| --ai-badge-text: #4338ca; | |
| --ai-pill-bg: rgba(255, 255, 255, .85); | |
| --ai-pill-text: #475467; | |
| --ai-shadow: 0 18px 45px rgba(31, 41, 55, .08); | |
| --ai-glow-1: rgba(99, 102, 241, .10); | |
| --ai-glow-2: rgba(124, 58, 237, .08); | |
| --ai-real: #15803d; | |
| --ai-real-bg: rgba(34, 197, 94, .12); | |
| --ai-fake: #b91c1c; | |
| --ai-fake-bg: rgba(239, 68, 68, .12); | |
| --ai-track: #e8eaf2; | |
| } | |
| .dark .gradio-container, | |
| .gradio-container.dark { | |
| --ai-ink: #f3f4fb; | |
| --ai-muted: #a4acc0; | |
| --ai-border: #2b3046; | |
| --ai-surface: #14172a; | |
| --ai-surface-2: #1b1f36; | |
| --ai-badge-bg: rgba(129, 140, 248, .16); | |
| --ai-badge-text: #c7d2fe; | |
| --ai-pill-bg: rgba(255, 255, 255, .05); | |
| --ai-pill-text: #c3c9dc; | |
| --ai-shadow: 0 18px 45px rgba(0, 0, 0, .35); | |
| --ai-glow-1: rgba(99, 102, 241, .18); | |
| --ai-glow-2: rgba(124, 58, 237, .14); | |
| --ai-real: #4ade80; | |
| --ai-real-bg: rgba(74, 222, 128, .14); | |
| --ai-fake: #f87171; | |
| --ai-fake-bg: rgba(248, 113, 113, .14); | |
| --ai-track: #262b44; | |
| } | |
| .gradio-container { | |
| max-width: 1120px ; | |
| margin: 0 auto ; | |
| padding-left: clamp(10px, 3vw, 24px) ; | |
| padding-right: clamp(10px, 3vw, 24px) ; | |
| background: | |
| radial-gradient(circle at 8% 0%, var(--ai-glow-1), transparent 28rem), | |
| radial-gradient(circle at 92% 8%, var(--ai-glow-2), transparent 25rem); | |
| } | |
| footer { display: none ; } | |
| /* ---------------------------- Hero ---------------------------- */ | |
| .app-shell { width: 100%; } | |
| .gradio-container .hero { | |
| position: relative; | |
| overflow: hidden; | |
| padding: clamp(20px, 4vw, 34px); | |
| margin: 14px 0 20px; | |
| border: 1px solid var(--ai-border); | |
| border-radius: 24px; | |
| background: linear-gradient(135deg, var(--ai-surface), var(--ai-surface-2)); | |
| box-shadow: var(--ai-shadow); | |
| } | |
| .gradio-container .hero::after { | |
| content: ""; | |
| position: absolute; | |
| width: 220px; | |
| height: 220px; | |
| right: -70px; | |
| top: -100px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, rgba(91, 91, 214, .22), rgba(124, 58, 237, .05)); | |
| pointer-events: none; | |
| } | |
| .gradio-container .hero-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| max-width: 100%; | |
| padding: 7px 13px; | |
| border-radius: 999px; | |
| background: var(--ai-badge-bg); | |
| color: var(--ai-badge-text) ; | |
| font-size: 13px; | |
| font-weight: 650; | |
| } | |
| .gradio-container .status-dot { | |
| flex: 0 0 auto; | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: #22c55e; | |
| box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); | |
| animation: ai-pulse 2.4s ease-in-out infinite; | |
| } | |
| @keyframes ai-pulse { | |
| 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } | |
| } | |
| .gradio-container .hero-title-row { | |
| position: relative; | |
| z-index: 1; | |
| display: flex; | |
| align-items: center; | |
| gap: 18px; | |
| margin-top: 18px; | |
| } | |
| .gradio-container .hero-icon { | |
| display: grid; | |
| place-items: center; | |
| flex: 0 0 60px; | |
| width: 60px; | |
| height: 60px; | |
| border-radius: 18px; | |
| color: #fff ; | |
| background: linear-gradient(135deg, var(--ai-indigo), var(--ai-purple)); | |
| box-shadow: 0 12px 25px rgba(91, 91, 214, .30); | |
| } | |
| .gradio-container .hero-copy { min-width: 0; } | |
| /* !important + ancestor: Gradio's .prose rules otherwise recolour these */ | |
| .gradio-container .hero h1 { | |
| margin: 0 ; | |
| padding: 0 ; | |
| border: 0 ; | |
| color: var(--ai-ink) ; | |
| font-size: clamp(30px, 6vw, 46px) ; | |
| line-height: 1.05 ; | |
| letter-spacing: -0.03em; | |
| font-weight: 800 ; | |
| overflow-wrap: anywhere; | |
| } | |
| .gradio-container .hero p { | |
| max-width: 62ch; | |
| margin: 10px 0 0 ; | |
| color: var(--ai-muted) ; | |
| font-size: clamp(14px, 2.2vw, 16px); | |
| line-height: 1.6; | |
| } | |
| .gradio-container .hero-pills { | |
| position: relative; | |
| z-index: 1; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| margin-top: 20px; | |
| } | |
| .gradio-container .hero-pills span { | |
| padding: 6px 12px; | |
| border: 1px solid var(--ai-border); | |
| border-radius: 999px; | |
| background: var(--ai-pill-bg); | |
| color: var(--ai-pill-text) ; | |
| font-size: 12.5px; | |
| font-weight: 600; | |
| white-space: nowrap; | |
| } | |
| /* ------------------------- Form controls ------------------------- */ | |
| .gradio-container .block { border-radius: 18px ; } | |
| .gradio-container input, | |
| .gradio-container textarea, | |
| .gradio-container select { border-radius: 12px ; } | |
| .gradio-container .step-title h3 { | |
| margin: 4px 0 0 ; | |
| font-size: 15px; | |
| letter-spacing: -0.01em; | |
| } | |
| /* Demo buttons: two side-by-side choices */ | |
| .gradio-container .demo-row { | |
| gap: 10px ; | |
| flex-wrap: nowrap ; | |
| } | |
| .gradio-container .demo-btn { | |
| min-width: 0 ; | |
| min-height: 52px ; | |
| border-radius: 14px ; | |
| font-weight: 700 ; | |
| border: 1px solid var(--ai-border) ; | |
| transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; | |
| } | |
| .gradio-container .demo-btn:hover { transform: translateY(-1px); } | |
| .gradio-container .demo-btn:active { transform: translateY(0); } | |
| .gradio-container .demo-real { | |
| background: var(--ai-real-bg) ; | |
| color: var(--ai-real) ; | |
| border-color: color-mix(in srgb, var(--ai-real) 40%, transparent) ; | |
| } | |
| .gradio-container .demo-fake { | |
| background: var(--ai-fake-bg) ; | |
| color: var(--ai-fake) ; | |
| border-color: color-mix(in srgb, var(--ai-fake) 40%, transparent) ; | |
| } | |
| .gradio-container .gr-button-primary, | |
| .gradio-container button.primary { | |
| min-height: 52px ; | |
| border-radius: 14px ; | |
| font-weight: 750 ; | |
| box-shadow: 0 9px 22px rgba(91, 91, 214, .25); | |
| } | |
| /* --------------------------- Result card --------------------------- */ | |
| .gradio-container .rc { | |
| padding: clamp(16px, 3vw, 24px); | |
| border: 1px solid var(--ai-border); | |
| border-radius: 20px; | |
| background: var(--ai-surface); | |
| box-shadow: var(--ai-shadow); | |
| color: var(--ai-ink); | |
| } | |
| .gradio-container .rc * { color: inherit; } | |
| .gradio-container .rc .rc-sub, | |
| .gradio-container .rc .rc-label { color: var(--ai-muted) ; } | |
| .gradio-container .rc-idle { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 230px; | |
| text-align: center; | |
| gap: 4px; | |
| } | |
| .gradio-container .rc-idle .rc-emoji { font-size: 34px; } | |
| .gradio-container .rc-title { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; margin: 0; } | |
| .gradio-container .rc-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.55; max-width: 34ch; } | |
| .gradio-container .rc-head { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| flex-wrap: wrap; | |
| } | |
| .gradio-container .rc-chip { | |
| flex: 0 0 auto; | |
| padding: 6px 12px; | |
| border-radius: 999px; | |
| font-size: 13px; | |
| font-weight: 700; | |
| } | |
| .gradio-container .rc-ai .rc-chip { background: var(--ai-fake-bg); color: var(--ai-fake) ; } | |
| .gradio-container .rc-human .rc-chip { background: var(--ai-real-bg); color: var(--ai-real) ; } | |
| .gradio-container .rc-ai .rc-title { color: var(--ai-fake) ; } | |
| .gradio-container .rc-human .rc-title { color: var(--ai-real) ; } | |
| .gradio-container .rc-big { | |
| margin: 14px 0 2px; | |
| font-size: clamp(36px, 9vw, 52px); | |
| font-weight: 800; | |
| letter-spacing: -0.04em; | |
| line-height: 1; | |
| } | |
| .gradio-container .rc-meter { margin-top: 18px; } | |
| .gradio-container .rc-meter + .rc-meter { margin-top: 14px; } | |
| .gradio-container .rc-meter-top { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 10px; | |
| margin-bottom: 6px; | |
| font-size: 14px; | |
| font-weight: 650; | |
| } | |
| .gradio-container .rc-track { | |
| height: 10px; | |
| overflow: hidden; | |
| border-radius: 999px; | |
| background: var(--ai-track); | |
| } | |
| .gradio-container .rc-fill { height: 100%; border-radius: 999px; } | |
| .gradio-container .rc-fill-ai { background: linear-gradient(90deg, #f97316, #ef4444); } | |
| .gradio-container .rc-fill-human { background: linear-gradient(90deg, #22c55e, #16a34a); } | |
| .gradio-container .rc-error { border-color: var(--ai-fake); } | |
| .gradio-container .rc-error code { | |
| display: block; | |
| margin-top: 8px; | |
| padding: 8px 10px; | |
| border-radius: 10px; | |
| background: var(--ai-surface-2); | |
| font-size: 12.5px; | |
| overflow-wrap: anywhere; | |
| } | |
| /* --------------------------- Responsive --------------------------- */ | |
| @media (max-width: 720px) { | |
| .gradio-container .hero { border-radius: 20px; margin-top: 8px; } | |
| .gradio-container .hero-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; } | |
| .gradio-container .hero-icon svg { width: 24px; height: 24px; } | |
| .gradio-container .hero-title-row { gap: 14px; align-items: flex-start; } | |
| .gradio-container .hero-pills span { font-size: 12px; padding: 5px 10px; } | |
| } | |
| @media (max-width: 420px) { | |
| /* Icon above the title on very narrow phones */ | |
| .gradio-container .hero-title-row { flex-direction: column; align-items: flex-start; gap: 12px; } | |
| .gradio-container .hero-pills { gap: 6px; } | |
| .gradio-container .demo-btn { font-size: 13px ; padding-left: 8px ; padding-right: 8px ; } | |
| } | |
| @media (min-width: 1400px) { | |
| .gradio-container { max-width: 1240px ; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .gradio-container .status-dot { animation: none; } | |
| .gradio-container .demo-btn { transition: none; } | |
| } |