Nischal Subedi
commited on
Commit
·
b2577ee
1
Parent(s):
ede9114
UI v31
Browse files
app.py
CHANGED
@@ -299,16 +299,18 @@ Answer:"""
|
|
299 |
|
300 |
--background-app: hsl(210, 15%, 15%); /* Dark charcoal/navy for overall background */
|
301 |
--background-card: hsl(210, 30%, 20%); /* Deep blue for main content cards (image primary blue) */
|
302 |
-
--background-input-output: hsl(
|
303 |
|
304 |
--text-on-dark: hsl(0, 0%, 95%); /* Very light text (white/light gray) for dark backgrounds */
|
|
|
305 |
|
306 |
--text-muted-on-dark: hsl(210, 10%, 70%); /* Muted light text for secondary info on dark backgrounds */
|
307 |
-
--text-muted-on-input: hsl(210, 15%, 55%); /* Muted blue-gray for placeholders on input fields */
|
308 |
|
309 |
--border-card: hsl(210, 10%, 65%); /* Light gray for outer card borders (from image) */
|
310 |
-
--border-input: hsl(210, 15%, 45%); /* Mid-tone blue-gray for borders on inner elements */
|
311 |
-
|
|
|
312 |
--shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
|
313 |
--shadow-md: 0 4px 10px rgba(0,0,0,0.3);
|
314 |
--shadow-lg: 0 10px 20px rgba(0,0,0,0.4);
|
@@ -320,7 +322,7 @@ Answer:"""
|
|
320 |
--button-secondary-bg: hsl(0, 0%, 85%); /* Light gray button */
|
321 |
--button-secondary-text: hsl(210, 30%, 20%); /* Dark text for secondary button */
|
322 |
|
323 |
-
--link-footer-color:
|
324 |
}
|
325 |
|
326 |
/* Body and Gradio Container */
|
@@ -338,7 +340,7 @@ Answer:"""
|
|
338 |
border-radius: 16px !important;
|
339 |
}
|
340 |
|
341 |
-
/* Header Styling (title box) */
|
342 |
.app-header-wrapper {
|
343 |
background: var(--background-card) !important; /* Consistent deep blue with other cards (as per image) */
|
344 |
border: 2px solid var(--border-card) !important; /* Border for header is the same as card border */
|
@@ -381,7 +383,7 @@ Answer:"""
|
|
381 |
.app-header-title {
|
382 |
font-family: 'Poppins', sans-serif !important;
|
383 |
font-size: 3rem !important;
|
384 |
-
font-weight: 800 !important;
|
385 |
color: var(--text-on-dark) !important; /* White for title */
|
386 |
margin: 0 0 0.75rem 0 !important;
|
387 |
line-height: 1.1 !important;
|
@@ -422,13 +424,13 @@ Answer:"""
|
|
422 |
transform: translateY(-3px) !important;
|
423 |
}
|
424 |
|
425 |
-
/* Section Titles (e.g., "Welcome & Disclaimer") */
|
426 |
.sub-section-title {
|
427 |
font-family: 'Poppins', sans-serif !important;
|
428 |
font-size: 1.7rem !important;
|
429 |
-
font-weight: 700 !important;
|
430 |
color: var(--text-on-dark) !important; /* White for titles */
|
431 |
-
text-align:
|
432 |
margin: 0 0 1.25rem 0 !important;
|
433 |
padding-bottom: 0.75rem !important;
|
434 |
border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important; /* Subtle light dashed line as separator */
|
@@ -444,19 +446,19 @@ Answer:"""
|
|
444 |
color: var(--accent-orange) !important; /* Orange for specific strong text (e.g., Disclaimer) */
|
445 |
}
|
446 |
|
447 |
-
/* Input Styling (textboxes, dropdowns) - now
|
448 |
.gradio-textbox textarea,
|
449 |
.gradio-textbox input,
|
450 |
.gradio-dropdown > div > input[type="text"],
|
451 |
.gradio-dropdown .primary-wrap,
|
452 |
.gradio-dropdown .scroll-hide {
|
453 |
-
background: var(--background-input-output) !important; /*
|
454 |
-
border: 2px solid var(--border-input) !important; /*
|
455 |
border-radius: 8px !important;
|
456 |
padding: 0.85rem 1rem !important;
|
457 |
font-size: 0.98rem !important;
|
458 |
font-family: 'Inter', sans-serif !important;
|
459 |
-
color: var(--text-
|
460 |
transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
|
461 |
box-shadow: var(--shadow-sm) !important;
|
462 |
}
|
@@ -542,14 +544,14 @@ Answer:"""
|
|
542 |
box-shadow: none !important;
|
543 |
}
|
544 |
|
545 |
-
/* Output Styling - now
|
546 |
.output-content-wrapper {
|
547 |
-
background: var(--background-input-output) !important; /*
|
548 |
border: 2px dashed var(--border-input) !important; /* Dashed light blue-gray border */
|
549 |
border-radius: 8px !important;
|
550 |
padding: 1.5rem !important;
|
551 |
min-height: 150px !important;
|
552 |
-
color: var(--text-
|
553 |
display: flex;
|
554 |
flex-direction: column;
|
555 |
justify-content: center;
|
@@ -563,7 +565,7 @@ Answer:"""
|
|
563 |
overflow-wrap: break-word;
|
564 |
word-break: break-word;
|
565 |
text-align: left !important;
|
566 |
-
color: var(--text-
|
567 |
}
|
568 |
@keyframes fadeInAndSlideUp {
|
569 |
from { opacity: 0; transform: translateY(15px); }
|
@@ -619,7 +621,7 @@ Answer:"""
|
|
619 |
opacity: 0.8;
|
620 |
}
|
621 |
.placeholder {
|
622 |
-
background: var(--background-input-output) !important; /*
|
623 |
border: 2px dashed var(--border-input) !important; /* Dashed light blue-gray border */
|
624 |
border-radius: 8px !important;
|
625 |
padding: 2.5rem 1.5rem !important;
|
@@ -631,7 +633,7 @@ Answer:"""
|
|
631 |
box-sizing: border-box;
|
632 |
}
|
633 |
|
634 |
-
/* Examples Table Styling - now
|
635 |
.examples-section .gr-samples-table {
|
636 |
border: 2px solid var(--border-card) !important; /* Outer table border matches cards */
|
637 |
border-radius: 8px !important;
|
@@ -651,14 +653,14 @@ Answer:"""
|
|
651 |
color: var(--text-on-dark) !important; /* White text for header */
|
652 |
}
|
653 |
.examples-section .gr-samples-table td {
|
654 |
-
background: var(--background-input-output) !important; /*
|
655 |
-
color: var(--text-
|
656 |
border-top: 1px solid var(--border-input) !important; /* Mid-tone blue-gray border between rows */
|
657 |
cursor: pointer !important;
|
658 |
transition: background 0.2s ease, transform 0.1s ease !important;
|
659 |
}
|
660 |
.examples-section .gr-samples-table tr:hover td {
|
661 |
-
background: hsl(
|
662 |
transform: translateX(5px);
|
663 |
}
|
664 |
.gr-examples .gr-label,
|
@@ -684,14 +686,14 @@ Answer:"""
|
|
684 |
line-height: 1.6 !important;
|
685 |
}
|
686 |
.app-footer a {
|
687 |
-
color: var(--link-footer-color) !important; /*
|
688 |
text-decoration: none !important;
|
689 |
font-weight: 600 !important;
|
690 |
transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease !important;
|
691 |
}
|
692 |
.app-footer a:hover {
|
693 |
text-decoration: underline !important;
|
694 |
-
text-decoration-color: var(--link-footer-color) !important; /*
|
695 |
}
|
696 |
|
697 |
/* Responsive Design */
|
|
|
299 |
|
300 |
--background-app: hsl(210, 15%, 15%); /* Dark charcoal/navy for overall background */
|
301 |
--background-card: hsl(210, 30%, 20%); /* Deep blue for main content cards (image primary blue) */
|
302 |
+
--background-input-output: hsl(0, 0%, 100%); /* PURE WHITE for input/output elements (as per latest request) */
|
303 |
|
304 |
--text-on-dark: hsl(0, 0%, 95%); /* Very light text (white/light gray) for dark backgrounds */
|
305 |
+
--text-dark: hsl(210, 20%, 20%); /* Dark text for light backgrounds (input/output text) */
|
306 |
|
307 |
--text-muted-on-dark: hsl(210, 10%, 70%); /* Muted light text for secondary info on dark backgrounds */
|
308 |
+
--text-muted-on-input: hsl(210, 15%, 55%); /* Muted blue-gray for placeholders on white input fields */
|
309 |
|
310 |
--border-card: hsl(210, 10%, 65%); /* Light gray for outer card borders (from image) */
|
311 |
+
--border-input: hsl(210, 15%, 45%); /* Mid-tone blue-gray for borders on inner elements (original image) */
|
312 |
+
--border-white-input: hsl(210, 5%, 80%); /* Light gray border for white input fields (new) */
|
313 |
+
|
314 |
--shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
|
315 |
--shadow-md: 0 4px 10px rgba(0,0,0,0.3);
|
316 |
--shadow-lg: 0 10px 20px rgba(0,0,0,0.4);
|
|
|
322 |
--button-secondary-bg: hsl(0, 0%, 85%); /* Light gray button */
|
323 |
--button-secondary-text: hsl(210, 30%, 20%); /* Dark text for secondary button */
|
324 |
|
325 |
+
--link-footer-color: var(--primary-color); /* GREEN for footer links (as per latest request, overrides image) */
|
326 |
}
|
327 |
|
328 |
/* Body and Gradio Container */
|
|
|
340 |
border-radius: 16px !important;
|
341 |
}
|
342 |
|
343 |
+
/* Header Styling (title box) - background matches other cards, not different */
|
344 |
.app-header-wrapper {
|
345 |
background: var(--background-card) !important; /* Consistent deep blue with other cards (as per image) */
|
346 |
border: 2px solid var(--border-card) !important; /* Border for header is the same as card border */
|
|
|
383 |
.app-header-title {
|
384 |
font-family: 'Poppins', sans-serif !important;
|
385 |
font-size: 3rem !important;
|
386 |
+
font-weight: 800 !important; /* Bold */
|
387 |
color: var(--text-on-dark) !important; /* White for title */
|
388 |
margin: 0 0 0.75rem 0 !important;
|
389 |
line-height: 1.1 !important;
|
|
|
424 |
transform: translateY(-3px) !important;
|
425 |
}
|
426 |
|
427 |
+
/* Section Titles (e.g., "Welcome & Disclaimer") - now centered */
|
428 |
.sub-section-title {
|
429 |
font-family: 'Poppins', sans-serif !important;
|
430 |
font-size: 1.7rem !important;
|
431 |
+
font-weight: 700 !important; /* Bold */
|
432 |
color: var(--text-on-dark) !important; /* White for titles */
|
433 |
+
text-align: center !important; /* CENTERED as per latest request */
|
434 |
margin: 0 0 1.25rem 0 !important;
|
435 |
padding-bottom: 0.75rem !important;
|
436 |
border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important; /* Subtle light dashed line as separator */
|
|
|
446 |
color: var(--accent-orange) !important; /* Orange for specific strong text (e.g., Disclaimer) */
|
447 |
}
|
448 |
|
449 |
+
/* Input Styling (textboxes, dropdowns) - now pure white backgrounds */
|
450 |
.gradio-textbox textarea,
|
451 |
.gradio-textbox input,
|
452 |
.gradio-dropdown > div > input[type="text"],
|
453 |
.gradio-dropdown .primary-wrap,
|
454 |
.gradio-dropdown .scroll-hide {
|
455 |
+
background: var(--background-input-output) !important; /* PURE WHITE background for inputs */
|
456 |
+
border: 2px solid var(--border-white-input) !important; /* Light gray border for white inputs */
|
457 |
border-radius: 8px !important;
|
458 |
padding: 0.85rem 1rem !important;
|
459 |
font-size: 0.98rem !important;
|
460 |
font-family: 'Inter', sans-serif !important;
|
461 |
+
color: var(--text-dark) !important; /* Dark text for inputs */
|
462 |
transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
|
463 |
box-shadow: var(--shadow-sm) !important;
|
464 |
}
|
|
|
544 |
box-shadow: none !important;
|
545 |
}
|
546 |
|
547 |
+
/* Output Styling - now pure white background */
|
548 |
.output-content-wrapper {
|
549 |
+
background: var(--background-input-output) !important; /* PURE WHITE background for output box */
|
550 |
border: 2px dashed var(--border-input) !important; /* Dashed light blue-gray border */
|
551 |
border-radius: 8px !important;
|
552 |
padding: 1.5rem !important;
|
553 |
min-height: 150px !important;
|
554 |
+
color: var(--text-dark) !important; /* Dark text for output */
|
555 |
display: flex;
|
556 |
flex-direction: column;
|
557 |
justify-content: center;
|
|
|
565 |
overflow-wrap: break-word;
|
566 |
word-break: break-word;
|
567 |
text-align: left !important;
|
568 |
+
color: var(--text-dark) !important; /* Ensure this also overrides to dark text */
|
569 |
}
|
570 |
@keyframes fadeInAndSlideUp {
|
571 |
from { opacity: 0; transform: translateY(15px); }
|
|
|
621 |
opacity: 0.8;
|
622 |
}
|
623 |
.placeholder {
|
624 |
+
background: var(--background-input-output) !important; /* PURE WHITE background for placeholder */
|
625 |
border: 2px dashed var(--border-input) !important; /* Dashed light blue-gray border */
|
626 |
border-radius: 8px !important;
|
627 |
padding: 2.5rem 1.5rem !important;
|
|
|
633 |
box-sizing: border-box;
|
634 |
}
|
635 |
|
636 |
+
/* Examples Table Styling - now pure white background rows */
|
637 |
.examples-section .gr-samples-table {
|
638 |
border: 2px solid var(--border-card) !important; /* Outer table border matches cards */
|
639 |
border-radius: 8px !important;
|
|
|
653 |
color: var(--text-on-dark) !important; /* White text for header */
|
654 |
}
|
655 |
.examples-section .gr-samples-table td {
|
656 |
+
background: var(--background-input-output) !important; /* PURE WHITE for example rows */
|
657 |
+
color: var(--text-dark) !important; /* Dark text for example rows */
|
658 |
border-top: 1px solid var(--border-input) !important; /* Mid-tone blue-gray border between rows */
|
659 |
cursor: pointer !important;
|
660 |
transition: background 0.2s ease, transform 0.1s ease !important;
|
661 |
}
|
662 |
.examples-section .gr-samples-table tr:hover td {
|
663 |
+
background: hsl(0, 0%, 95%) !important; /* Slightly darker white on hover */
|
664 |
transform: translateX(5px);
|
665 |
}
|
666 |
.gr-examples .gr-label,
|
|
|
686 |
line-height: 1.6 !important;
|
687 |
}
|
688 |
.app-footer a {
|
689 |
+
color: var(--link-footer-color) !important; /* GREEN highlight for links (as per latest request) */
|
690 |
text-decoration: none !important;
|
691 |
font-weight: 600 !important;
|
692 |
transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease !important;
|
693 |
}
|
694 |
.app-footer a:hover {
|
695 |
text-decoration: underline !important;
|
696 |
+
text-decoration-color: var(--link-footer-color) !important; /* Green underline on hover */
|
697 |
}
|
698 |
|
699 |
/* Responsive Design */
|