Nischal Subedi
commited on
Commit
·
b8732a6
1
Parent(s):
270a5fa
UI update
Browse files
app.py
CHANGED
@@ -292,8 +292,8 @@ Answer:"""
|
|
292 |
custom_css = """
|
293 |
/* Import legible fonts from Google Fonts */
|
294 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
|
295 |
-
|
296 |
-
/*
|
297 |
:root {
|
298 |
--primary-color: #FF8C00;
|
299 |
--primary-hover: #E07B00;
|
@@ -311,28 +311,28 @@ Answer:"""
|
|
311 |
--error-text: #E05C00;
|
312 |
--input-bg: #FFFFFF;
|
313 |
}
|
314 |
-
|
315 |
-
/*
|
316 |
@media (prefers-color-scheme: dark) {
|
317 |
body {
|
318 |
-
--primary-color: #
|
319 |
-
--primary-hover: #
|
320 |
-
--background-primary:
|
321 |
-
--background-secondary:
|
322 |
-
--text-primary: #
|
323 |
-
--text-secondary: #
|
324 |
-
--border-color:
|
325 |
-
--border-focus: #
|
326 |
-
--shadow-sm: 0
|
327 |
-
--shadow-md: 0
|
328 |
-
--shadow-lg: 0
|
329 |
-
--error-bg: #
|
330 |
-
--error-border: #
|
331 |
-
--error-text: #
|
332 |
-
--input-bg: #
|
333 |
}
|
334 |
}
|
335 |
-
|
336 |
body, html {
|
337 |
background-color: var(--background-secondary) !important;
|
338 |
color: var(--text-primary) !important;
|
@@ -369,7 +369,7 @@ Answer:"""
|
|
369 |
left: 0;
|
370 |
width: 100%;
|
371 |
height: 100%;
|
372 |
-
background: radial-gradient(circle at top left, rgba(255,
|
373 |
z-index: 0;
|
374 |
opacity: 0.8;
|
375 |
pointer-events: none;
|
@@ -395,7 +395,6 @@ Answer:"""
|
|
395 |
z-index: 1;
|
396 |
display: inline-block;
|
397 |
max-width: 100%;
|
398 |
-
text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Added for better readability */
|
399 |
}
|
400 |
.app-header-tagline {
|
401 |
font-size: 1.25rem !important;
|
@@ -516,7 +515,7 @@ Answer:"""
|
|
516 |
.gradio-textbox input:focus {
|
517 |
outline: none !important;
|
518 |
border-color: var(--border-focus) !important;
|
519 |
-
box-shadow: 0 0 0 4px rgba(255,
|
520 |
}
|
521 |
.gradio-radio {
|
522 |
padding: 0 !important;
|
@@ -554,7 +553,7 @@ Answer:"""
|
|
554 |
}
|
555 |
.gradio-radio input[type="radio"]:checked + label {
|
556 |
background-color: var(--primary-color) !important;
|
557 |
-
color: #FFFFFF !important;
|
558 |
border-color: var(--primary-hover) !important;
|
559 |
box-shadow: var(--shadow-md) !important;
|
560 |
transform: translateY(-1px) !important;
|
@@ -593,7 +592,7 @@ Answer:"""
|
|
593 |
}
|
594 |
.input-field {
|
595 |
flex: none !important;
|
596 |
-
width: 100
|
597 |
}
|
598 |
.button-row {
|
599 |
display: flex !important;
|
|
|
292 |
custom_css = """
|
293 |
/* Import legible fonts from Google Fonts */
|
294 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
|
295 |
+
|
296 |
+
/* Force light theme variables, overriding dark mode */
|
297 |
:root {
|
298 |
--primary-color: #FF8C00;
|
299 |
--primary-hover: #E07B00;
|
|
|
311 |
--error-text: #E05C00;
|
312 |
--input-bg: #FFFFFF;
|
313 |
}
|
314 |
+
|
315 |
+
/* Ensure dark mode is overridden with light theme */
|
316 |
@media (prefers-color-scheme: dark) {
|
317 |
body {
|
318 |
+
--primary-color: #FF8C00;
|
319 |
+
--primary-hover: #E07B00;
|
320 |
+
--background-primary: hsl(30, 100%, 99.9%);
|
321 |
+
--background-secondary: hsl(30, 100%, 96%);
|
322 |
+
--text-primary: #4A3C32;
|
323 |
+
--text-secondary: #8C7B6F;
|
324 |
+
--border-color: hsl(30, 70%, 85%);
|
325 |
+
--border-focus: #FF8C00;
|
326 |
+
--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
|
327 |
+
--shadow-md: 0 4px 10px rgba(0,0,0,0.1);
|
328 |
+
--shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
|
329 |
+
--error-bg: #FFF0E0;
|
330 |
+
--error-border: #FFD2B2;
|
331 |
+
--error-text: #E05C00;
|
332 |
+
--input-bg: #FFFFFF;
|
333 |
}
|
334 |
}
|
335 |
+
|
336 |
body, html {
|
337 |
background-color: var(--background-secondary) !important;
|
338 |
color: var(--text-primary) !important;
|
|
|
369 |
left: 0;
|
370 |
width: 100%;
|
371 |
height: 100%;
|
372 |
+
background: radial-gradient(circle at top left, rgba(255,140,0,0.3) 0%, transparent 60%), radial-gradient(circle at bottom right, rgba(255,140,0,0.3) 0%, transparent 60%);
|
373 |
z-index: 0;
|
374 |
opacity: 0.8;
|
375 |
pointer-events: none;
|
|
|
395 |
z-index: 1;
|
396 |
display: inline-block;
|
397 |
max-width: 100%;
|
|
|
398 |
}
|
399 |
.app-header-tagline {
|
400 |
font-size: 1.25rem !important;
|
|
|
515 |
.gradio-textbox input:focus {
|
516 |
outline: none !important;
|
517 |
border-color: var(--border-focus) !important;
|
518 |
+
box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2) !important;
|
519 |
}
|
520 |
.gradio-radio {
|
521 |
padding: 0 !important;
|
|
|
553 |
}
|
554 |
.gradio-radio input[type="radio"]:checked + label {
|
555 |
background-color: var(--primary-color) !important;
|
556 |
+
color: #FFFFFF !important;
|
557 |
border-color: var(--primary-hover) !important;
|
558 |
box-shadow: var(--shadow-md) !important;
|
559 |
transform: translateY(-1px) !important;
|
|
|
592 |
}
|
593 |
.input-field {
|
594 |
flex: none !important;
|
595 |
+
width: 100 !important;
|
596 |
}
|
597 |
.button-row {
|
598 |
display: flex !important;
|