Nischal Subedi
commited on
Commit
·
7ba0df4
1
Parent(s):
9ed8c63
updated UI
Browse files
app.py
CHANGED
|
@@ -289,7 +289,6 @@ Answer:"""
|
|
| 289 |
# --- Custom CSS for "Legal Noir" Theme (Dark Mode First) ---
|
| 290 |
custom_css = """
|
| 291 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');
|
| 292 |
-
|
| 293 |
:root {
|
| 294 |
/* Dark Theme Colors (Default: Legal Noir) */
|
| 295 |
--app-bg-dark: #0F0F1A; /* Very dark blue-purple for the absolute background */
|
|
@@ -306,7 +305,6 @@ Answer:"""
|
|
| 306 |
--error-bg-dark: #4D001A; /* Deep red for errors */
|
| 307 |
--error-text-dark: #FFB3C2; /* Light pink for error text */
|
| 308 |
--error-border-dark: #990026;
|
| 309 |
-
|
| 310 |
/* Light Theme Colors (Alternative: Legal Lumen) */
|
| 311 |
--app-bg-light: #F0F2F5; /* Soft light gray background */
|
| 312 |
--header-bg-light: #E0E4EB; /* Lighter header/footer elements */
|
|
@@ -322,7 +320,6 @@ Answer:"""
|
|
| 322 |
--error-bg-light: #F8D7DA;
|
| 323 |
--error-text-light: #721C24;
|
| 324 |
--error-border-light: #F5C6CB;
|
| 325 |
-
|
| 326 |
/* General Styling Variables */
|
| 327 |
--font-family-main: 'Inter', sans-serif;
|
| 328 |
--font-family-header: 'Playfair Display', serif; /* Elegant serif for titles */
|
|
@@ -336,7 +333,6 @@ Answer:"""
|
|
| 336 |
--padding-md: 2.5rem;
|
| 337 |
--padding-sm: 1.8rem;
|
| 338 |
}
|
| 339 |
-
|
| 340 |
/* Apply theme based on system preference */
|
| 341 |
body, .gradio-container {
|
| 342 |
font-family: var(--font-family-main) !important;
|
|
@@ -352,14 +348,12 @@ Answer:"""
|
|
| 352 |
transition: background var(--transition-speed), color var(--transition-speed);
|
| 353 |
}
|
| 354 |
* { box-sizing: border-box; }
|
| 355 |
-
|
| 356 |
@media (prefers-color-scheme: light) {
|
| 357 |
body, .gradio-container {
|
| 358 |
background: var(--app-bg-light) !important;
|
| 359 |
color: var(--text-primary-light) !important;
|
| 360 |
}
|
| 361 |
}
|
| 362 |
-
|
| 363 |
/* Global container for content alignment and padding */
|
| 364 |
.gradio-container > .flex.flex-col {
|
| 365 |
max-width: 1120px; /* Even wider for a more expansive dashboard feel */
|
|
@@ -368,7 +362,6 @@ Answer:"""
|
|
| 368 |
gap: 0 !important;
|
| 369 |
transition: padding var(--transition-speed);
|
| 370 |
}
|
| 371 |
-
|
| 372 |
/* Header styling: dynamic, centralized, and visually connecting */
|
| 373 |
.app-header-wrapper {
|
| 374 |
background: var(--header-bg-dark);
|
|
@@ -400,7 +393,6 @@ Answer:"""
|
|
| 400 |
border-top: none;
|
| 401 |
}
|
| 402 |
}
|
| 403 |
-
|
| 404 |
.app-header {
|
| 405 |
display: flex;
|
| 406 |
flex-direction: column;
|
|
@@ -418,7 +410,6 @@ Answer:"""
|
|
| 418 |
transition: filter var(--transition-speed);
|
| 419 |
}
|
| 420 |
@media (prefers-color-scheme: light) { .app-header-logo { filter: drop-shadow(0 0 10px var(--accent-main-light)); } }
|
| 421 |
-
|
| 422 |
.app-header-title {
|
| 423 |
font-family: var(--font-family-header) !important;
|
| 424 |
font-size: 4.2rem; /* The main title: massive, bold, and dynamic */
|
|
@@ -431,7 +422,6 @@ Answer:"""
|
|
| 431 |
transition: text-shadow var(--transition-speed), color var(--transition-speed);
|
| 432 |
}
|
| 433 |
@media (prefers-color-scheme: light) { .app-header-title { text-shadow: 0 6px 12px rgba(0,0,0,0.25); } }
|
| 434 |
-
|
| 435 |
.app-header-tagline {
|
| 436 |
font-family: var(--font-family-main) !important;
|
| 437 |
font-size: 1.6rem; /* Larger, more inviting tagline */
|
|
@@ -442,13 +432,11 @@ Answer:"""
|
|
| 442 |
animation: fadeInSlideDown 1.5s ease-out forwards; animation-delay: 0.9s;
|
| 443 |
transition: opacity var(--transition-speed);
|
| 444 |
}
|
| 445 |
-
|
| 446 |
/* Keyframe animations for header elements */
|
| 447 |
@keyframes fadeInSlideDown {
|
| 448 |
from { opacity: 0; transform: translateY(-40px); }
|
| 449 |
to { opacity: 1; transform: translateY(0); }
|
| 450 |
}
|
| 451 |
-
|
| 452 |
/* --- NEW: Main Dashboard Console Container --- */
|
| 453 |
.main-dashboard-container {
|
| 454 |
background: var(--main-card-bg-dark) !important;
|
|
@@ -473,7 +461,6 @@ Answer:"""
|
|
| 473 |
border: 1px solid var(--border-light) !important;
|
| 474 |
}
|
| 475 |
}
|
| 476 |
-
|
| 477 |
/* --- NEW: Card Sections within the Main Console --- */
|
| 478 |
.dashboard-card-section {
|
| 479 |
background: var(--card-section-bg-dark) !important;
|
|
@@ -493,7 +480,6 @@ Answer:"""
|
|
| 493 |
box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
|
| 494 |
}
|
| 495 |
}
|
| 496 |
-
|
| 497 |
/* Section titles within the unified main content area */
|
| 498 |
.section-title { /* For 'Know Your Rights' */
|
| 499 |
font-family: var(--font-family-header) !important;
|
|
@@ -523,7 +509,6 @@ Answer:"""
|
|
| 523 |
border-bottom-color: var(--border-light) !important;
|
| 524 |
}
|
| 525 |
}
|
| 526 |
-
|
| 527 |
/* General text styling within main content: highly legible */
|
| 528 |
.dashboard-card-section p, .output-content-wrapper p {
|
| 529 |
font-size: 1.15rem; /* Larger, more readable body text */
|
|
@@ -553,7 +538,6 @@ Answer:"""
|
|
| 553 |
.dashboard-card-section a:hover, .output-content-wrapper a:hover { color: var(--accent-hover-light); }
|
| 554 |
.dashboard-card-section strong, .output-content-wrapper strong { color: var(--text-primary-light); }
|
| 555 |
}
|
| 556 |
-
|
| 557 |
/* Horizontal rule for visual separation within the main block */
|
| 558 |
.section-divider {
|
| 559 |
border: none;
|
|
@@ -562,7 +546,6 @@ Answer:"""
|
|
| 562 |
transition: border-color var(--transition-speed);
|
| 563 |
}
|
| 564 |
@media (prefers-color-scheme: light) { .section-divider { border-top: 1px solid var(--border-light); } }
|
| 565 |
-
|
| 566 |
/* Input field groups and layout: spacious and clear */
|
| 567 |
.input-field-group { margin-bottom: 1rem; } /* Reduced from 1.5rem */
|
| 568 |
.input-row {
|
|
@@ -574,7 +557,6 @@ Answer:"""
|
|
| 574 |
.input-field {
|
| 575 |
flex: 1; /* Allows flexible sizing */
|
| 576 |
}
|
| 577 |
-
|
| 578 |
/* Input labels and info text: prominent and clear */
|
| 579 |
.gradio-input-label {
|
| 580 |
font-size: 1.2rem !important; /* Larger, more prominent labels */
|
|
@@ -585,7 +567,7 @@ Answer:"""
|
|
| 585 |
transition: color var(--transition-speed);
|
| 586 |
}
|
| 587 |
.gradio-input-info {
|
| 588 |
-
font-size:
|
| 589 |
color: var(--text-secondary-dark) !important;
|
| 590 |
margin-top: 0.6rem;
|
| 591 |
transition: color var(--transition-speed);
|
|
@@ -594,7 +576,6 @@ Answer:"""
|
|
| 594 |
.gradio-input-label { color: var(--text-primary-light) !important; }
|
| 595 |
.gradio-input-info { color: var(--text-secondary-light) !important; }
|
| 596 |
}
|
| 597 |
-
|
| 598 |
/* Textbox, Dropdown, Password input styling: larger, more refined */
|
| 599 |
.gradio-textbox textarea,
|
| 600 |
.gradio-dropdown select,
|
|
@@ -637,7 +618,6 @@ Answer:"""
|
|
| 637 |
box-shadow: 0 0 0 6px var(--focus-ring-light) !important, inset 0 1px 3px rgba(0,0,0,0.2);
|
| 638 |
}
|
| 639 |
}
|
| 640 |
-
|
| 641 |
/* Custom dropdown arrow */
|
| 642 |
.gradio-dropdown select {
|
| 643 |
appearance: none; -webkit-appearance: none; -moz-appearance: none;
|
|
@@ -652,7 +632,6 @@ Answer:"""
|
|
| 652 |
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%236C757D%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
|
| 653 |
}
|
| 654 |
}
|
| 655 |
-
|
| 656 |
/* Button group and styling: dynamic and clear actions */
|
| 657 |
.button-row {
|
| 658 |
display: flex;
|
|
@@ -682,7 +661,6 @@ Answer:"""
|
|
| 682 |
border-color: #4A4A60 !important;
|
| 683 |
cursor: not-allowed;
|
| 684 |
}
|
| 685 |
-
|
| 686 |
/* Primary button */
|
| 687 |
.gr-button-primary {
|
| 688 |
background: var(--accent-main-dark) !important;
|
|
@@ -693,7 +671,6 @@ Answer:"""
|
|
| 693 |
background: var(--accent-hover-dark) !important;
|
| 694 |
border-color: var(--accent-hover-dark) !important;
|
| 695 |
}
|
| 696 |
-
|
| 697 |
/* Secondary button */
|
| 698 |
.gr-button-secondary {
|
| 699 |
background: transparent !important;
|
|
@@ -706,7 +683,6 @@ Answer:"""
|
|
| 706 |
color: var(--accent-main-dark) !important;
|
| 707 |
border-color: var(--accent-main-dark) !important;
|
| 708 |
}
|
| 709 |
-
|
| 710 |
@media (prefers-color-scheme: light) {
|
| 711 |
.gradio-button { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
|
| 712 |
.gradio-button:hover:not(:disabled) { box-shadow: 0 12px 28px rgba(0,0,0,0.2) !important; }
|
|
@@ -735,7 +711,6 @@ Answer:"""
|
|
| 735 |
border-color: var(--accent-main-light) !important;
|
| 736 |
}
|
| 737 |
}
|
| 738 |
-
|
| 739 |
/* Output Styling within the main content area */
|
| 740 |
.output-card { /* Class for the output content area markdown component */
|
| 741 |
padding: 0 !important; /* Markdown itself might have padding, control it within */
|
|
@@ -787,7 +762,6 @@ Answer:"""
|
|
| 787 |
.output-card .output-content-wrapper a:hover {
|
| 788 |
color: var(--accent-hover-dark);
|
| 789 |
}
|
| 790 |
-
|
| 791 |
@media (prefers-color-scheme: light) {
|
| 792 |
.output-card .response-header { color: var(--text-primary-light); }
|
| 793 |
.output-card .response-icon { color: var(--accent-main-light); }
|
|
@@ -796,7 +770,6 @@ Answer:"""
|
|
| 796 |
.output-card .output-content-wrapper a { color: var(--accent-main-light); }
|
| 797 |
.output-card .output-content-wrapper a:hover { color: var(--accent-hover-light); }
|
| 798 |
}
|
| 799 |
-
|
| 800 |
/* Error messages: clear, prominent, and legible */
|
| 801 |
.output-card .error-message { /* This is also an inner div within the output markdown */
|
| 802 |
padding: 1.5rem 2rem; /* Reduced padding */
|
|
@@ -829,7 +802,6 @@ Answer:"""
|
|
| 829 |
border: 2px solid var(--error-border-light);
|
| 830 |
}
|
| 831 |
}
|
| 832 |
-
|
| 833 |
/* Output placeholder styling: inviting and distinct */
|
| 834 |
.output-card .placeholder { /* Also an inner div within the output markdown */
|
| 835 |
padding: 2.5rem 2rem; /* Reduced padding */
|
|
@@ -847,7 +819,6 @@ Answer:"""
|
|
| 847 |
color: var(--text-secondary-light);
|
| 848 |
}
|
| 849 |
}
|
| 850 |
-
|
| 851 |
/* Examples table styling: integrated within the main content block, but with clear visual identity */
|
| 852 |
/* Applied to the gr.Column that wraps the examples */
|
| 853 |
.examples-section .gr-examples-table {
|
|
@@ -865,7 +836,6 @@ Answer:"""
|
|
| 865 |
box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
|
| 866 |
}
|
| 867 |
}
|
| 868 |
-
|
| 869 |
.examples-section .gr-examples-table th,
|
| 870 |
.examples-section .gr-examples-table td {
|
| 871 |
padding: 1rem 1.2rem !important; /* Slightly reduced padding for tighter coupling */
|
|
@@ -890,15 +860,12 @@ Answer:"""
|
|
| 890 |
background: rgba(255, 193, 7, 0.1) !important; /* Gold tint on hover */
|
| 891 |
}
|
| 892 |
.examples-section .gr-examples-table tr:first-child td { border-top: none !important; }
|
| 893 |
-
|
| 894 |
@media (prefers-color-scheme: light) {
|
| 895 |
.examples-section .gr-examples-table { border: 1px solid var(--border-light) !important; background: var(--card-section-bg-light) !important; }
|
| 896 |
.examples-section .gr-examples-table th { background: var(--header-bg-light) !important; color: var(--text-primary-light) !important; }
|
| 897 |
.examples-section .gr-examples-table td { background: var(--card-section-bg-light) !important; color: var(--text-primary-light) !important; border-top: 1px solid var(--border-light) !important; }
|
| 898 |
.examples-section .gr-examples-table tr:hover td { background: rgba(0, 123, 255, 0.08) !important; }
|
| 899 |
}
|
| 900 |
-
|
| 901 |
-
|
| 902 |
/* Footer styling: clean and informative, integrated at the very bottom */
|
| 903 |
.app-footer-wrapper {
|
| 904 |
background: var(--header-bg-dark); /* Match header background for consistency */
|
|
@@ -923,7 +890,6 @@ Answer:"""
|
|
| 923 |
box-shadow: inset 0 6px 12px rgba(0,0,0,0.1);
|
| 924 |
}
|
| 925 |
}
|
| 926 |
-
|
| 927 |
.app-footer {
|
| 928 |
padding: 0 var(--padding-lg) !important;
|
| 929 |
text-align: center !important;
|
|
@@ -953,7 +919,6 @@ Answer:"""
|
|
| 953 |
.app-footer a { color: var(--accent-main-light) !important; }
|
| 954 |
.app-footer a:hover { color: var(--accent-hover-light) !important; }
|
| 955 |
}
|
| 956 |
-
|
| 957 |
/* Accessibility: Focus styles */
|
| 958 |
:focus-visible {
|
| 959 |
outline: 5px solid var(--accent-main-dark) !important; /* Even thicker for accessibility */
|
|
@@ -968,7 +933,6 @@ Answer:"""
|
|
| 968 |
}
|
| 969 |
}
|
| 970 |
.gradio-button span:focus { outline: none !important; }
|
| 971 |
-
|
| 972 |
/* MOST AGGRESSIVE "FALSE" & FILTER ICON REMOVAL - THIS SHOULD FINALLY KILL IT */
|
| 973 |
/* Targets ALL known problematic elements that might contain "false", the filter menu icon, or accordion toggle */
|
| 974 |
.gr-examples .gr-label,
|
|
@@ -1004,8 +968,6 @@ Answer:"""
|
|
| 1004 |
position: absolute !important; /* Take it out of normal flow */
|
| 1005 |
pointer-events: none !important; /* Ensure it's not interactive */
|
| 1006 |
}
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
/* Responsive Adjustments (meticulously refined) */
|
| 1010 |
@media (max-width: 1024px) {
|
| 1011 |
.gradio-container > .flex.flex-col { max-width: 960px; padding: 0 1.5rem !important; }
|
|
@@ -1025,7 +987,6 @@ Answer:"""
|
|
| 1025 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.9rem 1.1rem !important; }
|
| 1026 |
.app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 1027 |
}
|
| 1028 |
-
|
| 1029 |
@media (max-width: 768px) {
|
| 1030 |
.gradio-container > .flex.flex-col { padding: 0 1rem !important; }
|
| 1031 |
.app-header-wrapper { padding: var(--padding-sm) var(--padding-md) !important; margin-bottom: 1.8rem; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
|
|
@@ -1049,7 +1010,6 @@ Answer:"""
|
|
| 1049 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.9rem 1.1rem !important; font-size: 1.0rem !important; } /* Restore to 0.9rem/1.1rem */
|
| 1050 |
.app-footer-wrapper { margin-top: 0.5rem; padding-top: 2rem; padding-bottom: 2rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 1051 |
}
|
| 1052 |
-
|
| 1053 |
@media (max-width: 480px) {
|
| 1054 |
.gradio-container > .flex.flex-col { padding: 0 0.8rem !important; }
|
| 1055 |
.app-header-wrapper { padding: 1.2rem 1rem !important; margin-bottom: 1.5rem; border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
|
|
|
|
| 289 |
# --- Custom CSS for "Legal Noir" Theme (Dark Mode First) ---
|
| 290 |
custom_css = """
|
| 291 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');
|
|
|
|
| 292 |
:root {
|
| 293 |
/* Dark Theme Colors (Default: Legal Noir) */
|
| 294 |
--app-bg-dark: #0F0F1A; /* Very dark blue-purple for the absolute background */
|
|
|
|
| 305 |
--error-bg-dark: #4D001A; /* Deep red for errors */
|
| 306 |
--error-text-dark: #FFB3C2; /* Light pink for error text */
|
| 307 |
--error-border-dark: #990026;
|
|
|
|
| 308 |
/* Light Theme Colors (Alternative: Legal Lumen) */
|
| 309 |
--app-bg-light: #F0F2F5; /* Soft light gray background */
|
| 310 |
--header-bg-light: #E0E4EB; /* Lighter header/footer elements */
|
|
|
|
| 320 |
--error-bg-light: #F8D7DA;
|
| 321 |
--error-text-light: #721C24;
|
| 322 |
--error-border-light: #F5C6CB;
|
|
|
|
| 323 |
/* General Styling Variables */
|
| 324 |
--font-family-main: 'Inter', sans-serif;
|
| 325 |
--font-family-header: 'Playfair Display', serif; /* Elegant serif for titles */
|
|
|
|
| 333 |
--padding-md: 2.5rem;
|
| 334 |
--padding-sm: 1.8rem;
|
| 335 |
}
|
|
|
|
| 336 |
/* Apply theme based on system preference */
|
| 337 |
body, .gradio-container {
|
| 338 |
font-family: var(--font-family-main) !important;
|
|
|
|
| 348 |
transition: background var(--transition-speed), color var(--transition-speed);
|
| 349 |
}
|
| 350 |
* { box-sizing: border-box; }
|
|
|
|
| 351 |
@media (prefers-color-scheme: light) {
|
| 352 |
body, .gradio-container {
|
| 353 |
background: var(--app-bg-light) !important;
|
| 354 |
color: var(--text-primary-light) !important;
|
| 355 |
}
|
| 356 |
}
|
|
|
|
| 357 |
/* Global container for content alignment and padding */
|
| 358 |
.gradio-container > .flex.flex-col {
|
| 359 |
max-width: 1120px; /* Even wider for a more expansive dashboard feel */
|
|
|
|
| 362 |
gap: 0 !important;
|
| 363 |
transition: padding var(--transition-speed);
|
| 364 |
}
|
|
|
|
| 365 |
/* Header styling: dynamic, centralized, and visually connecting */
|
| 366 |
.app-header-wrapper {
|
| 367 |
background: var(--header-bg-dark);
|
|
|
|
| 393 |
border-top: none;
|
| 394 |
}
|
| 395 |
}
|
|
|
|
| 396 |
.app-header {
|
| 397 |
display: flex;
|
| 398 |
flex-direction: column;
|
|
|
|
| 410 |
transition: filter var(--transition-speed);
|
| 411 |
}
|
| 412 |
@media (prefers-color-scheme: light) { .app-header-logo { filter: drop-shadow(0 0 10px var(--accent-main-light)); } }
|
|
|
|
| 413 |
.app-header-title {
|
| 414 |
font-family: var(--font-family-header) !important;
|
| 415 |
font-size: 4.2rem; /* The main title: massive, bold, and dynamic */
|
|
|
|
| 422 |
transition: text-shadow var(--transition-speed), color var(--transition-speed);
|
| 423 |
}
|
| 424 |
@media (prefers-color-scheme: light) { .app-header-title { text-shadow: 0 6px 12px rgba(0,0,0,0.25); } }
|
|
|
|
| 425 |
.app-header-tagline {
|
| 426 |
font-family: var(--font-family-main) !important;
|
| 427 |
font-size: 1.6rem; /* Larger, more inviting tagline */
|
|
|
|
| 432 |
animation: fadeInSlideDown 1.5s ease-out forwards; animation-delay: 0.9s;
|
| 433 |
transition: opacity var(--transition-speed);
|
| 434 |
}
|
|
|
|
| 435 |
/* Keyframe animations for header elements */
|
| 436 |
@keyframes fadeInSlideDown {
|
| 437 |
from { opacity: 0; transform: translateY(-40px); }
|
| 438 |
to { opacity: 1; transform: translateY(0); }
|
| 439 |
}
|
|
|
|
| 440 |
/* --- NEW: Main Dashboard Console Container --- */
|
| 441 |
.main-dashboard-container {
|
| 442 |
background: var(--main-card-bg-dark) !important;
|
|
|
|
| 461 |
border: 1px solid var(--border-light) !important;
|
| 462 |
}
|
| 463 |
}
|
|
|
|
| 464 |
/* --- NEW: Card Sections within the Main Console --- */
|
| 465 |
.dashboard-card-section {
|
| 466 |
background: var(--card-section-bg-dark) !important;
|
|
|
|
| 480 |
box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
|
| 481 |
}
|
| 482 |
}
|
|
|
|
| 483 |
/* Section titles within the unified main content area */
|
| 484 |
.section-title { /* For 'Know Your Rights' */
|
| 485 |
font-family: var(--font-family-header) !important;
|
|
|
|
| 509 |
border-bottom-color: var(--border-light) !important;
|
| 510 |
}
|
| 511 |
}
|
|
|
|
| 512 |
/* General text styling within main content: highly legible */
|
| 513 |
.dashboard-card-section p, .output-content-wrapper p {
|
| 514 |
font-size: 1.15rem; /* Larger, more readable body text */
|
|
|
|
| 538 |
.dashboard-card-section a:hover, .output-content-wrapper a:hover { color: var(--accent-hover-light); }
|
| 539 |
.dashboard-card-section strong, .output-content-wrapper strong { color: var(--text-primary-light); }
|
| 540 |
}
|
|
|
|
| 541 |
/* Horizontal rule for visual separation within the main block */
|
| 542 |
.section-divider {
|
| 543 |
border: none;
|
|
|
|
| 546 |
transition: border-color var(--transition-speed);
|
| 547 |
}
|
| 548 |
@media (prefers-color-scheme: light) { .section-divider { border-top: 1px solid var(--border-light); } }
|
|
|
|
| 549 |
/* Input field groups and layout: spacious and clear */
|
| 550 |
.input-field-group { margin-bottom: 1rem; } /* Reduced from 1.5rem */
|
| 551 |
.input-row {
|
|
|
|
| 557 |
.input-field {
|
| 558 |
flex: 1; /* Allows flexible sizing */
|
| 559 |
}
|
|
|
|
| 560 |
/* Input labels and info text: prominent and clear */
|
| 561 |
.gradio-input-label {
|
| 562 |
font-size: 1.2rem !important; /* Larger, more prominent labels */
|
|
|
|
| 567 |
transition: color var(--transition-speed);
|
| 568 |
}
|
| 569 |
.gradio-input-info {
|
| 570 |
+
font-size: 1.0rem !important;
|
| 571 |
color: var(--text-secondary-dark) !important;
|
| 572 |
margin-top: 0.6rem;
|
| 573 |
transition: color var(--transition-speed);
|
|
|
|
| 576 |
.gradio-input-label { color: var(--text-primary-light) !important; }
|
| 577 |
.gradio-input-info { color: var(--text-secondary-light) !important; }
|
| 578 |
}
|
|
|
|
| 579 |
/* Textbox, Dropdown, Password input styling: larger, more refined */
|
| 580 |
.gradio-textbox textarea,
|
| 581 |
.gradio-dropdown select,
|
|
|
|
| 618 |
box-shadow: 0 0 0 6px var(--focus-ring-light) !important, inset 0 1px 3px rgba(0,0,0,0.2);
|
| 619 |
}
|
| 620 |
}
|
|
|
|
| 621 |
/* Custom dropdown arrow */
|
| 622 |
.gradio-dropdown select {
|
| 623 |
appearance: none; -webkit-appearance: none; -moz-appearance: none;
|
|
|
|
| 632 |
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%236C757D%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
|
| 633 |
}
|
| 634 |
}
|
|
|
|
| 635 |
/* Button group and styling: dynamic and clear actions */
|
| 636 |
.button-row {
|
| 637 |
display: flex;
|
|
|
|
| 661 |
border-color: #4A4A60 !important;
|
| 662 |
cursor: not-allowed;
|
| 663 |
}
|
|
|
|
| 664 |
/* Primary button */
|
| 665 |
.gr-button-primary {
|
| 666 |
background: var(--accent-main-dark) !important;
|
|
|
|
| 671 |
background: var(--accent-hover-dark) !important;
|
| 672 |
border-color: var(--accent-hover-dark) !important;
|
| 673 |
}
|
|
|
|
| 674 |
/* Secondary button */
|
| 675 |
.gr-button-secondary {
|
| 676 |
background: transparent !important;
|
|
|
|
| 683 |
color: var(--accent-main-dark) !important;
|
| 684 |
border-color: var(--accent-main-dark) !important;
|
| 685 |
}
|
|
|
|
| 686 |
@media (prefers-color-scheme: light) {
|
| 687 |
.gradio-button { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
|
| 688 |
.gradio-button:hover:not(:disabled) { box-shadow: 0 12px 28px rgba(0,0,0,0.2) !important; }
|
|
|
|
| 711 |
border-color: var(--accent-main-light) !important;
|
| 712 |
}
|
| 713 |
}
|
|
|
|
| 714 |
/* Output Styling within the main content area */
|
| 715 |
.output-card { /* Class for the output content area markdown component */
|
| 716 |
padding: 0 !important; /* Markdown itself might have padding, control it within */
|
|
|
|
| 762 |
.output-card .output-content-wrapper a:hover {
|
| 763 |
color: var(--accent-hover-dark);
|
| 764 |
}
|
|
|
|
| 765 |
@media (prefers-color-scheme: light) {
|
| 766 |
.output-card .response-header { color: var(--text-primary-light); }
|
| 767 |
.output-card .response-icon { color: var(--accent-main-light); }
|
|
|
|
| 770 |
.output-card .output-content-wrapper a { color: var(--accent-main-light); }
|
| 771 |
.output-card .output-content-wrapper a:hover { color: var(--accent-hover-light); }
|
| 772 |
}
|
|
|
|
| 773 |
/* Error messages: clear, prominent, and legible */
|
| 774 |
.output-card .error-message { /* This is also an inner div within the output markdown */
|
| 775 |
padding: 1.5rem 2rem; /* Reduced padding */
|
|
|
|
| 802 |
border: 2px solid var(--error-border-light);
|
| 803 |
}
|
| 804 |
}
|
|
|
|
| 805 |
/* Output placeholder styling: inviting and distinct */
|
| 806 |
.output-card .placeholder { /* Also an inner div within the output markdown */
|
| 807 |
padding: 2.5rem 2rem; /* Reduced padding */
|
|
|
|
| 819 |
color: var(--text-secondary-light);
|
| 820 |
}
|
| 821 |
}
|
|
|
|
| 822 |
/* Examples table styling: integrated within the main content block, but with clear visual identity */
|
| 823 |
/* Applied to the gr.Column that wraps the examples */
|
| 824 |
.examples-section .gr-examples-table {
|
|
|
|
| 836 |
box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
|
| 837 |
}
|
| 838 |
}
|
|
|
|
| 839 |
.examples-section .gr-examples-table th,
|
| 840 |
.examples-section .gr-examples-table td {
|
| 841 |
padding: 1rem 1.2rem !important; /* Slightly reduced padding for tighter coupling */
|
|
|
|
| 860 |
background: rgba(255, 193, 7, 0.1) !important; /* Gold tint on hover */
|
| 861 |
}
|
| 862 |
.examples-section .gr-examples-table tr:first-child td { border-top: none !important; }
|
|
|
|
| 863 |
@media (prefers-color-scheme: light) {
|
| 864 |
.examples-section .gr-examples-table { border: 1px solid var(--border-light) !important; background: var(--card-section-bg-light) !important; }
|
| 865 |
.examples-section .gr-examples-table th { background: var(--header-bg-light) !important; color: var(--text-primary-light) !important; }
|
| 866 |
.examples-section .gr-examples-table td { background: var(--card-section-bg-light) !important; color: var(--text-primary-light) !important; border-top: 1px solid var(--border-light) !important; }
|
| 867 |
.examples-section .gr-examples-table tr:hover td { background: rgba(0, 123, 255, 0.08) !important; }
|
| 868 |
}
|
|
|
|
|
|
|
| 869 |
/* Footer styling: clean and informative, integrated at the very bottom */
|
| 870 |
.app-footer-wrapper {
|
| 871 |
background: var(--header-bg-dark); /* Match header background for consistency */
|
|
|
|
| 890 |
box-shadow: inset 0 6px 12px rgba(0,0,0,0.1);
|
| 891 |
}
|
| 892 |
}
|
|
|
|
| 893 |
.app-footer {
|
| 894 |
padding: 0 var(--padding-lg) !important;
|
| 895 |
text-align: center !important;
|
|
|
|
| 919 |
.app-footer a { color: var(--accent-main-light) !important; }
|
| 920 |
.app-footer a:hover { color: var(--accent-hover-light) !important; }
|
| 921 |
}
|
|
|
|
| 922 |
/* Accessibility: Focus styles */
|
| 923 |
:focus-visible {
|
| 924 |
outline: 5px solid var(--accent-main-dark) !important; /* Even thicker for accessibility */
|
|
|
|
| 933 |
}
|
| 934 |
}
|
| 935 |
.gradio-button span:focus { outline: none !important; }
|
|
|
|
| 936 |
/* MOST AGGRESSIVE "FALSE" & FILTER ICON REMOVAL - THIS SHOULD FINALLY KILL IT */
|
| 937 |
/* Targets ALL known problematic elements that might contain "false", the filter menu icon, or accordion toggle */
|
| 938 |
.gr-examples .gr-label,
|
|
|
|
| 968 |
position: absolute !important; /* Take it out of normal flow */
|
| 969 |
pointer-events: none !important; /* Ensure it's not interactive */
|
| 970 |
}
|
|
|
|
|
|
|
| 971 |
/* Responsive Adjustments (meticulously refined) */
|
| 972 |
@media (max-width: 1024px) {
|
| 973 |
.gradio-container > .flex.flex-col { max-width: 960px; padding: 0 1.5rem !important; }
|
|
|
|
| 987 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.9rem 1.1rem !important; }
|
| 988 |
.app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 989 |
}
|
|
|
|
| 990 |
@media (max-width: 768px) {
|
| 991 |
.gradio-container > .flex.flex-col { padding: 0 1rem !important; }
|
| 992 |
.app-header-wrapper { padding: var(--padding-sm) var(--padding-md) !important; margin-bottom: 1.8rem; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
|
|
|
|
| 1010 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.9rem 1.1rem !important; font-size: 1.0rem !important; } /* Restore to 0.9rem/1.1rem */
|
| 1011 |
.app-footer-wrapper { margin-top: 0.5rem; padding-top: 2rem; padding-bottom: 2rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 1012 |
}
|
|
|
|
| 1013 |
@media (max-width: 480px) {
|
| 1014 |
.gradio-container > .flex.flex-col { padding: 0 0.8rem !important; }
|
| 1015 |
.app-header-wrapper { padding: 1.2rem 1rem !important; margin-bottom: 1.5rem; border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
|