ainews / styles.css
humanizetech's picture
First commit
01c8b05
/* ========== 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%) !important;
background-attachment: fixed !important;
}
/* Page background */
body {
margin: 0 !important;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
min-height: 100vh !important;
}
/* Main Gradio container on top of background */
.gradio-container {
max-width: 100% !important;
padding: 12px !important;
box-shadow: none !important;
border-radius: 0 !important;
min-height: 100vh !important;
}
/* Ensure inner blocks don't bring back white panels */
.gradio-container .block,
.gradio-container .gr-panel {
background: transparent !important;
box-shadow: none !important;
}
/* Override any white backgrounds in Gradio's wrapper divs */
.contain,
.wrap,
#root,
gradio-app {
background: transparent !important;
}
/* ========== 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) !important;
backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important;
border-radius: 16px !important;
border: 1px solid rgba(255, 255, 255, 0.25) !important;
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}
/* Specific padding for the outer container only */
.news-transcript {
padding: 18px !important;
}
/* Remove duplicate borders/shadows from inner elements */
.news-transcript * {
border: none !important;
box-shadow: none !important;
}
/* Restore main container border and shadow */
.news-transcript {
border: 1px solid rgba(255, 255, 255, 0.25) !important;
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}
/* Target the textarea and input elements */
.news-transcript textarea,
.news-transcript .gr-text-input,
.news-transcript input[type="text"] {
background: transparent !important;
color: #ffffff !important;
font-size: 15px !important;
line-height: 1.6 !important;
}
/* 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 !important;
}
/* ========== AUDIO PLAYER (LISTEN TO NEWS) ========== */
audio {
width: 100% !important;
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 !important;
margin: 20px auto;
}
}
/* ========== HIDE DEFAULT GRADIO FOOTER ========== */
footer,
.footer {
display: none !important;
}