Spaces:
Sleeping
Sleeping
| /* ========== MOBILE-FIRST LAYOUT & BACKGROUND ========== */ | |
| /* Force background on body AND gradio root */ | |
| body, | |
| body.dark, | |
| body.light, | |
| .gradio-container, | |
| .gradio-container.gradio-container-4-40-0, | |
| .main { | |
| background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #0d47a1 100%) ; | |
| background-attachment: fixed ; | |
| } | |
| /* Page background */ | |
| body { | |
| margin: 0 ; | |
| font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif ; | |
| min-height: 100vh ; | |
| } | |
| /* Main Gradio container on top of background */ | |
| .gradio-container { | |
| max-width: 100% ; | |
| padding: 12px ; | |
| box-shadow: none ; | |
| border-radius: 0 ; | |
| min-height: 100vh ; | |
| } | |
| /* Ensure inner blocks don't bring back white panels */ | |
| .gradio-container .block, | |
| .gradio-container .gr-panel { | |
| background: transparent ; | |
| box-shadow: none ; | |
| } | |
| /* Override any white backgrounds in Gradio's wrapper divs */ | |
| .contain, | |
| .wrap, | |
| #root, | |
| gradio-app { | |
| background: transparent ; | |
| } | |
| /* ========== NEWS TRANSCRIPT ========== */ | |
| /* Target the main container and all child elements */ | |
| .news-transcript, | |
| .news-transcript>*, | |
| .news-transcript .wrap, | |
| .news-transcript .block, | |
| .news-transcript>label, | |
| .news-transcript>div, | |
| .news-transcript * { | |
| background: rgba(255, 255, 255, 0.15) ; | |
| backdrop-filter: blur(10px) ; | |
| -webkit-backdrop-filter: blur(10px) ; | |
| border-radius: 16px ; | |
| border: 1px solid rgba(255, 255, 255, 0.25) ; | |
| box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) ; | |
| } | |
| /* Specific padding for the outer container only */ | |
| .news-transcript { | |
| padding: 18px ; | |
| } | |
| /* Remove duplicate borders/shadows from inner elements */ | |
| .news-transcript * { | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* Restore main container border and shadow */ | |
| .news-transcript { | |
| border: 1px solid rgba(255, 255, 255, 0.25) ; | |
| box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) ; | |
| } | |
| /* Target the textarea and input elements */ | |
| .news-transcript textarea, | |
| .news-transcript .gr-text-input, | |
| .news-transcript input[type="text"] { | |
| background: transparent ; | |
| color: #ffffff ; | |
| font-size: 15px ; | |
| line-height: 1.6 ; | |
| } | |
| /* Force all text to be dark for readability */ | |
| .news-transcript label, | |
| .news-transcript .label, | |
| .news-transcript span, | |
| .news-transcript p, | |
| .news-transcript textarea { | |
| color: #1f2937 ; | |
| } | |
| /* ========== AUDIO PLAYER (LISTEN TO NEWS) ========== */ | |
| audio { | |
| width: 100% ; | |
| margin-top: 4px; | |
| margin-bottom: 10px; | |
| } | |
| /* If you used elem_id="listen-audio" you can uncomment to make it even slimmer */ | |
| /* | |
| #listen-audio audio { | |
| height: 32px; | |
| } | |
| */ | |
| /* ========== RESPONSIVE TWEAKS ========== */ | |
| @media (min-width: 768px) { | |
| .gradio-container { | |
| max-width: 480px ; | |
| margin: 20px auto; | |
| } | |
| } | |
| /* ========== HIDE DEFAULT GRADIO FOOTER ========== */ | |
| footer, | |
| .footer { | |
| display: none ; | |
| } |