Dhruv Pawar
commited on
Commit
·
3c3fc03
1
Parent(s):
92a25bc
Enhanced UI:css updated for text
Browse files
config.py
CHANGED
|
@@ -182,6 +182,7 @@ CUSTOM_CSS = """
|
|
| 182 |
background: rgba(255,255,255,0.35);
|
| 183 |
}
|
| 184 |
|
|
|
|
| 185 |
.metrics-card {
|
| 186 |
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
| 187 |
border-left: 5px solid #667eea;
|
|
@@ -191,15 +192,23 @@ CUSTOM_CSS = """
|
|
| 191 |
font-family: 'JetBrains Mono', monospace;
|
| 192 |
transition: var(--transition);
|
| 193 |
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
|
|
| 194 |
}
|
| 195 |
|
|
|
|
| 196 |
.metrics-card * {
|
| 197 |
color: #2c3e50 !important;
|
| 198 |
}
|
| 199 |
|
| 200 |
.metrics-card strong {
|
| 201 |
-
color: #
|
| 202 |
-
font-weight:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
}
|
| 204 |
|
| 205 |
.metrics-card:hover {
|
|
@@ -267,6 +276,19 @@ CUSTOM_CSS = """
|
|
| 267 |
.gr-button:hover {
|
| 268 |
transform: translateY(-2px) !important;
|
| 269 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
"""
|
| 271 |
|
| 272 |
logger.info("Enhanced configuration initialized")
|
|
|
|
| 182 |
background: rgba(255,255,255,0.35);
|
| 183 |
}
|
| 184 |
|
| 185 |
+
/* ⭐ FIXED: Metrics card with proper text colors */
|
| 186 |
.metrics-card {
|
| 187 |
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
| 188 |
border-left: 5px solid #667eea;
|
|
|
|
| 192 |
font-family: 'JetBrains Mono', monospace;
|
| 193 |
transition: var(--transition);
|
| 194 |
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
| 195 |
+
color: #2c3e50 !important;
|
| 196 |
}
|
| 197 |
|
| 198 |
+
/* ⭐ CRITICAL FIX: All text in metrics card must be dark */
|
| 199 |
.metrics-card * {
|
| 200 |
color: #2c3e50 !important;
|
| 201 |
}
|
| 202 |
|
| 203 |
.metrics-card strong {
|
| 204 |
+
color: #1a202c !important;
|
| 205 |
+
font-weight: 700 !important;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
/* ⭐ Ensure values after colon are visible */
|
| 209 |
+
.metrics-card br + text,
|
| 210 |
+
.metrics-card strong + text {
|
| 211 |
+
color: #2c3e50 !important;
|
| 212 |
}
|
| 213 |
|
| 214 |
.metrics-card:hover {
|
|
|
|
| 276 |
.gr-button:hover {
|
| 277 |
transform: translateY(-2px) !important;
|
| 278 |
}
|
| 279 |
+
|
| 280 |
+
/* ⭐ Additional fix for markdown text in metrics */
|
| 281 |
+
.gr-markdown .metrics-card {
|
| 282 |
+
color: #2c3e50 !important;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
.gr-markdown .metrics-card p {
|
| 286 |
+
color: #2c3e50 !important;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.gr-markdown .metrics-card span {
|
| 290 |
+
color: #2c3e50 !important;
|
| 291 |
+
}
|
| 292 |
"""
|
| 293 |
|
| 294 |
logger.info("Enhanced configuration initialized")
|
main.py
CHANGED
|
@@ -143,7 +143,7 @@ def create_ui() -> gr.Blocks:
|
|
| 143 |
clear_btn = gr.Button("Clear", scale=1)
|
| 144 |
pdf_btn = gr.Button("Download PDF", scale=1)
|
| 145 |
# ⭐ NEW: Toggle Sidebar Button
|
| 146 |
-
toggle_sidebar_btn = gr.Button("⚙️ Toggle Settings", scale=1, variant="secondary")
|
| 147 |
|
| 148 |
# COLLAPSIBLE SIDEBAR
|
| 149 |
with gr.Column(scale=1, visible=True, elem_classes="settings-column") as sidebar:
|
|
|
|
| 143 |
clear_btn = gr.Button("Clear", scale=1)
|
| 144 |
pdf_btn = gr.Button("Download PDF", scale=1)
|
| 145 |
# ⭐ NEW: Toggle Sidebar Button
|
| 146 |
+
toggle_sidebar_btn = gr.Button("⚙️ Toggle Sidebar-Settings", scale=1, variant="secondary")
|
| 147 |
|
| 148 |
# COLLAPSIBLE SIDEBAR
|
| 149 |
with gr.Column(scale=1, visible=True, elem_classes="settings-column") as sidebar:
|