Spaces:
Running on Zero
Running on Zero
UI: fix Gradio 6 selectors — correct .block, .label-wrap, direct element targeting
Browse files
app.py
CHANGED
|
@@ -685,14 +685,14 @@ CSS = """
|
|
| 685 |
/* ── GLOBAL BACKGROUND — vivid blue→green→purple gradient ── */
|
| 686 |
.gradio-container {
|
| 687 |
background: linear-gradient(135deg,
|
| 688 |
-
#
|
| 689 |
-
#
|
| 690 |
-
#
|
| 691 |
-
#
|
| 692 |
-
#
|
| 693 |
-
#
|
| 694 |
-
#
|
| 695 |
-
#
|
| 696 |
background-attachment: fixed !important;
|
| 697 |
min-height: 100vh !important;
|
| 698 |
color: #e8ecf4 !important;
|
|
@@ -705,9 +705,9 @@ CSS = """
|
|
| 705 |
position: fixed !important;
|
| 706 |
inset: 0 !important;
|
| 707 |
background-image:
|
| 708 |
-
radial-gradient(ellipse at 20% 20%, rgba(0,
|
| 709 |
-
radial-gradient(ellipse at 80% 30%, rgba(
|
| 710 |
-
radial-gradient(ellipse at 50% 80%, rgba(
|
| 711 |
pointer-events: none !important;
|
| 712 |
z-index: 0 !important;
|
| 713 |
}
|
|
@@ -717,10 +717,11 @@ CSS = """
|
|
| 717 |
z-index: 1 !important;
|
| 718 |
}
|
| 719 |
|
| 720 |
-
/* ── HEADER / TITLE ── */
|
|
|
|
|
|
|
| 721 |
.gradio-container h1,
|
| 722 |
-
.gradio-container
|
| 723 |
-
.gradio-container .prose {
|
| 724 |
background: linear-gradient(90deg, #00e5c8, #6c5ce7, #a855f7) !important;
|
| 725 |
-webkit-background-clip: text !important;
|
| 726 |
-webkit-text-fill-color: transparent !important;
|
|
@@ -730,15 +731,12 @@ CSS = """
|
|
| 730 |
}
|
| 731 |
|
| 732 |
/* Subtitle text */
|
| 733 |
-
.gradio-container .prose p
|
| 734 |
-
.gradio-container > div > div > .prose:nth-child(2) {
|
| 735 |
color: #b0c4de !important;
|
| 736 |
}
|
| 737 |
|
| 738 |
-
/* ──
|
| 739 |
-
.gradio-container .
|
| 740 |
-
.gradio-container .gr-group,
|
| 741 |
-
.gradio-container .gr-block {
|
| 742 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 743 |
backdrop-filter: blur(16px) saturate(1.4) !important;
|
| 744 |
-webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
|
|
@@ -749,26 +747,26 @@ CSS = """
|
|
| 749 |
inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
|
| 750 |
}
|
| 751 |
|
| 752 |
-
/* Image/video upload
|
|
|
|
|
|
|
| 753 |
.gradio-container .upload-container,
|
| 754 |
-
.gradio-container .file-upload,
|
| 755 |
.gradio-container [data-testid="image"] {
|
| 756 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 757 |
border: 2px dashed rgba(100, 200, 255, 0.2) !important;
|
| 758 |
border-radius: 12px !important;
|
| 759 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 760 |
}
|
|
|
|
|
|
|
| 761 |
.gradio-container .upload-container:hover,
|
| 762 |
-
.gradio-container .file-upload:hover,
|
| 763 |
.gradio-container [data-testid="image"]:hover {
|
| 764 |
border-color: rgba(0, 229, 200, 0.5) !important;
|
| 765 |
box-shadow: 0 0 20px rgba(0, 229, 200, 0.1) !important;
|
| 766 |
}
|
| 767 |
|
| 768 |
/* ── LABELS — crisp white with subtle glow ── */
|
| 769 |
-
.gradio-container label
|
| 770 |
-
.gradio-container .gr-label,
|
| 771 |
-
.gradio-container .gr-block-label {
|
| 772 |
color: #d6e4f0 !important;
|
| 773 |
font-weight: 600 !important;
|
| 774 |
text-shadow: 0 0 8px rgba(100, 180, 255, 0.15) !important;
|
|
@@ -776,10 +774,7 @@ CSS = """
|
|
| 776 |
|
| 777 |
/* ── TEXT INPUTS & TEXTBOX — glass borders ── */
|
| 778 |
.gradio-container input[type="text"],
|
| 779 |
-
.gradio-container textarea
|
| 780 |
-
.gradio-container .gr-input,
|
| 781 |
-
.gradio-container .gr-textbox,
|
| 782 |
-
.gradio-container .gr-textarea {
|
| 783 |
background: rgba(10, 15, 40, 0.6) !important;
|
| 784 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 785 |
border-radius: 10px !important;
|
|
@@ -788,9 +783,7 @@ CSS = """
|
|
| 788 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 789 |
}
|
| 790 |
.gradio-container input[type="text"]:focus,
|
| 791 |
-
.gradio-container textarea:focus
|
| 792 |
-
.gradio-container .gr-input:focus,
|
| 793 |
-
.gradio-container .gr-textbox:focus {
|
| 794 |
border-color: rgba(108, 92, 231, 0.6) !important;
|
| 795 |
box-shadow:
|
| 796 |
inset 0 2px 6px rgba(0, 0, 0, 0.2),
|
|
@@ -798,11 +791,10 @@ CSS = """
|
|
| 798 |
outline: none !important;
|
| 799 |
}
|
| 800 |
|
| 801 |
-
/* ── SLIDERS — glowing track ── */
|
| 802 |
-
.gradio-container input[type="range"]
|
| 803 |
-
.gradio-container .range-slider,
|
| 804 |
-
.gradio-container .gr-slider {
|
| 805 |
accent-color: #00d4aa !important;
|
|
|
|
| 806 |
}
|
| 807 |
|
| 808 |
.gradio-container input[type="range"]::-webkit-slider-runnable-track {
|
|
@@ -812,6 +804,7 @@ CSS = """
|
|
| 812 |
}
|
| 813 |
.gradio-container input[type="range"]::-webkit-slider-thumb {
|
| 814 |
-webkit-appearance: none !important;
|
|
|
|
| 815 |
width: 18px !important;
|
| 816 |
height: 18px !important;
|
| 817 |
border-radius: 50% !important;
|
|
@@ -826,10 +819,26 @@ CSS = """
|
|
| 826 |
transform: scale(1.15) !important;
|
| 827 |
box-shadow: 0 0 18px rgba(0, 229, 200, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
|
| 828 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 829 |
|
| 830 |
/* Number inputs */
|
| 831 |
-
.gradio-container input[type="number"]
|
| 832 |
-
.gradio-container .gr-number {
|
| 833 |
background: rgba(10, 15, 40, 0.6) !important;
|
| 834 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 835 |
border-radius: 8px !important;
|
|
@@ -837,10 +846,9 @@ CSS = """
|
|
| 837 |
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
|
| 838 |
}
|
| 839 |
|
| 840 |
-
/* ── DROPDOWN / SELECT ── */
|
| 841 |
-
.gradio-container
|
| 842 |
-
.gradio-container
|
| 843 |
-
.gradio-container .multiselect {
|
| 844 |
background: rgba(10, 15, 40, 0.7) !important;
|
| 845 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 846 |
border-radius: 10px !important;
|
|
@@ -848,48 +856,55 @@ CSS = """
|
|
| 848 |
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
|
| 849 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 850 |
}
|
| 851 |
-
.gradio-container
|
| 852 |
-
.gradio-container
|
| 853 |
border-color: rgba(108, 92, 231, 0.6) !important;
|
| 854 |
box-shadow: 0 0 12px rgba(108, 92, 231, 0.2) !important;
|
| 855 |
}
|
| 856 |
|
| 857 |
-
/* ── CHECKBOXES ── */
|
| 858 |
-
.gradio-container input[type="checkbox"]
|
|
|
|
| 859 |
accent-color: #00d4aa !important;
|
| 860 |
width: 18px !important;
|
| 861 |
height: 18px !important;
|
| 862 |
cursor: pointer !important;
|
| 863 |
}
|
| 864 |
-
.gradio-container input[type="checkbox"]:checked
|
|
|
|
| 865 |
accent-color: #00e5c8 !important;
|
| 866 |
}
|
| 867 |
|
| 868 |
-
/* ── ACCORDION ── */
|
| 869 |
-
.gradio-container .
|
| 870 |
-
.gradio-container details {
|
| 871 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 872 |
border: 1px solid rgba(100, 180, 255, 0.1) !important;
|
| 873 |
border-radius: 12px !important;
|
| 874 |
-
overflow: hidden !important;
|
| 875 |
-
}
|
| 876 |
-
.gradio-container .accordion summary,
|
| 877 |
-
.gradio-container details summary {
|
| 878 |
color: #c8d8e8 !important;
|
| 879 |
font-weight: 600 !important;
|
| 880 |
padding: 12px 16px !important;
|
| 881 |
cursor: pointer !important;
|
| 882 |
-
transition: color 0.2s ease !important;
|
|
|
|
|
|
|
|
|
|
| 883 |
}
|
| 884 |
-
.gradio-container .
|
| 885 |
-
.gradio-container details summary:hover {
|
| 886 |
color: #00e5c8 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 887 |
}
|
| 888 |
|
| 889 |
/* ── GENERATE BUTTON — vibrant gradient with glow ── */
|
| 890 |
.gradio-container button.primary,
|
| 891 |
.gradio-container button.lg.primary,
|
| 892 |
-
.gradio-container .gr-button-primary,
|
| 893 |
.gradio-container button[data-variant="primary"] {
|
| 894 |
background: linear-gradient(135deg, #00b894, #0984e3, #6c5ce7) !important;
|
| 895 |
background-size: 200% 200% !important;
|
|
@@ -911,7 +926,6 @@ CSS = """
|
|
| 911 |
}
|
| 912 |
.gradio-container button.primary:hover,
|
| 913 |
.gradio-container button.lg.primary:hover,
|
| 914 |
-
.gradio-container .gr-button-primary:hover,
|
| 915 |
.gradio-container button[data-variant="primary"]:hover {
|
| 916 |
transform: translateY(-2px) !important;
|
| 917 |
box-shadow:
|
|
@@ -935,7 +949,6 @@ CSS = """
|
|
| 935 |
/* ── SECONDARY BUTTONS ── */
|
| 936 |
.gradio-container button.secondary,
|
| 937 |
.gradio-container button.lg.secondary,
|
| 938 |
-
.gradio-container .gr-button-secondary,
|
| 939 |
.gradio-container button[data-variant="secondary"] {
|
| 940 |
background: rgba(255, 255, 255, 0.06) !important;
|
| 941 |
backdrop-filter: blur(8px) !important;
|
|
@@ -947,7 +960,6 @@ CSS = """
|
|
| 947 |
}
|
| 948 |
.gradio-container button.secondary:hover,
|
| 949 |
.gradio-container button.lg.secondary:hover,
|
| 950 |
-
.gradio-container .gr-button-secondary:hover,
|
| 951 |
.gradio-container button[data-variant="secondary"]:hover {
|
| 952 |
background: rgba(108, 92, 231, 0.15) !important;
|
| 953 |
border-color: rgba(108, 92, 231, 0.4) !important;
|
|
@@ -955,9 +967,10 @@ CSS = """
|
|
| 955 |
box-shadow: 0 0 20px rgba(108, 92, 231, 0.15) !important;
|
| 956 |
}
|
| 957 |
|
| 958 |
-
/* ── FILE OUTPUT ── */
|
| 959 |
-
.gradio-container
|
| 960 |
-
.gradio-container [data-testid="
|
|
|
|
| 961 |
background: rgba(10, 15, 40, 0.5) !important;
|
| 962 |
border: 1px solid rgba(100, 180, 255, 0.1) !important;
|
| 963 |
border-radius: 10px !important;
|
|
@@ -965,8 +978,7 @@ CSS = """
|
|
| 965 |
|
| 966 |
/* ── INFO TEXT ── */
|
| 967 |
.gradio-container .prose small,
|
| 968 |
-
.gradio-container small
|
| 969 |
-
.gradio-container .gr-info {
|
| 970 |
color: #7a8fa8 !important;
|
| 971 |
}
|
| 972 |
|
|
@@ -996,8 +1008,8 @@ CSS = """
|
|
| 996 |
}
|
| 997 |
|
| 998 |
/* ── COLUMN SEPARATOR — subtle glow line ── */
|
| 999 |
-
.gradio-container .gr-row >
|
| 1000 |
-
.gradio-container .gr-row >
|
| 1001 |
border-left: 1px solid rgba(108, 92, 231, 0.08) !important;
|
| 1002 |
}
|
| 1003 |
"""
|
|
|
|
| 685 |
/* ── GLOBAL BACKGROUND — vivid blue→green→purple gradient ── */
|
| 686 |
.gradio-container {
|
| 687 |
background: linear-gradient(135deg,
|
| 688 |
+
#060a1c 0%,
|
| 689 |
+
#0e1d5c 12%,
|
| 690 |
+
#14408f 25%,
|
| 691 |
+
#0a7a4e 40%,
|
| 692 |
+
#12b367 55%,
|
| 693 |
+
#1f4fa8 65%,
|
| 694 |
+
#5b2bd0 80%,
|
| 695 |
+
#33107a 100%) !important;
|
| 696 |
background-attachment: fixed !important;
|
| 697 |
min-height: 100vh !important;
|
| 698 |
color: #e8ecf4 !important;
|
|
|
|
| 705 |
position: fixed !important;
|
| 706 |
inset: 0 !important;
|
| 707 |
background-image:
|
| 708 |
+
radial-gradient(ellipse at 20% 20%, rgba(0, 220, 190, 0.12) 0%, transparent 60%),
|
| 709 |
+
radial-gradient(ellipse at 80% 30%, rgba(130, 80, 250, 0.16) 0%, transparent 55%),
|
| 710 |
+
radial-gradient(ellipse at 50% 80%, rgba(40, 140, 230, 0.1) 0%, transparent 50%) !important;
|
| 711 |
pointer-events: none !important;
|
| 712 |
z-index: 0 !important;
|
| 713 |
}
|
|
|
|
| 717 |
z-index: 1 !important;
|
| 718 |
}
|
| 719 |
|
| 720 |
+
/* ── HEADER / TITLE — gradient text on markdown headings ── */
|
| 721 |
+
.gradio-container .prose h1,
|
| 722 |
+
.gradio-container .prose h2,
|
| 723 |
.gradio-container h1,
|
| 724 |
+
.gradio-container h2 {
|
|
|
|
| 725 |
background: linear-gradient(90deg, #00e5c8, #6c5ce7, #a855f7) !important;
|
| 726 |
-webkit-background-clip: text !important;
|
| 727 |
-webkit-text-fill-color: transparent !important;
|
|
|
|
| 731 |
}
|
| 732 |
|
| 733 |
/* Subtitle text */
|
| 734 |
+
.gradio-container .prose p {
|
|
|
|
| 735 |
color: #b0c4de !important;
|
| 736 |
}
|
| 737 |
|
| 738 |
+
/* ── CARDS / BLOCKS — frosted glass (Gradio 6: .block) ── */
|
| 739 |
+
.gradio-container .block {
|
|
|
|
|
|
|
| 740 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 741 |
backdrop-filter: blur(16px) saturate(1.4) !important;
|
| 742 |
-webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
|
|
|
|
| 747 |
inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
|
| 748 |
}
|
| 749 |
|
| 750 |
+
/* Image/video upload drop zones — target the drop zone inside .block */
|
| 751 |
+
.gradio-container .block .upload-container,
|
| 752 |
+
.gradio-container .block [data-testid="image"],
|
| 753 |
.gradio-container .upload-container,
|
|
|
|
| 754 |
.gradio-container [data-testid="image"] {
|
| 755 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 756 |
border: 2px dashed rgba(100, 200, 255, 0.2) !important;
|
| 757 |
border-radius: 12px !important;
|
| 758 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 759 |
}
|
| 760 |
+
.gradio-container .block .upload-container:hover,
|
| 761 |
+
.gradio-container .block [data-testid="image"]:hover,
|
| 762 |
.gradio-container .upload-container:hover,
|
|
|
|
| 763 |
.gradio-container [data-testid="image"]:hover {
|
| 764 |
border-color: rgba(0, 229, 200, 0.5) !important;
|
| 765 |
box-shadow: 0 0 20px rgba(0, 229, 200, 0.1) !important;
|
| 766 |
}
|
| 767 |
|
| 768 |
/* ── LABELS — crisp white with subtle glow ── */
|
| 769 |
+
.gradio-container label {
|
|
|
|
|
|
|
| 770 |
color: #d6e4f0 !important;
|
| 771 |
font-weight: 600 !important;
|
| 772 |
text-shadow: 0 0 8px rgba(100, 180, 255, 0.15) !important;
|
|
|
|
| 774 |
|
| 775 |
/* ── TEXT INPUTS & TEXTBOX — glass borders ── */
|
| 776 |
.gradio-container input[type="text"],
|
| 777 |
+
.gradio-container textarea {
|
|
|
|
|
|
|
|
|
|
| 778 |
background: rgba(10, 15, 40, 0.6) !important;
|
| 779 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 780 |
border-radius: 10px !important;
|
|
|
|
| 783 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 784 |
}
|
| 785 |
.gradio-container input[type="text"]:focus,
|
| 786 |
+
.gradio-container textarea:focus {
|
|
|
|
|
|
|
| 787 |
border-color: rgba(108, 92, 231, 0.6) !important;
|
| 788 |
box-shadow:
|
| 789 |
inset 0 2px 6px rgba(0, 0, 0, 0.2),
|
|
|
|
| 791 |
outline: none !important;
|
| 792 |
}
|
| 793 |
|
| 794 |
+
/* ── SLIDERS — glowing track (Gradio 6: native input[type="range"]) ── */
|
| 795 |
+
.gradio-container input[type="range"] {
|
|
|
|
|
|
|
| 796 |
accent-color: #00d4aa !important;
|
| 797 |
+
cursor: pointer !important;
|
| 798 |
}
|
| 799 |
|
| 800 |
.gradio-container input[type="range"]::-webkit-slider-runnable-track {
|
|
|
|
| 804 |
}
|
| 805 |
.gradio-container input[type="range"]::-webkit-slider-thumb {
|
| 806 |
-webkit-appearance: none !important;
|
| 807 |
+
appearance: none !important;
|
| 808 |
width: 18px !important;
|
| 809 |
height: 18px !important;
|
| 810 |
border-radius: 50% !important;
|
|
|
|
| 819 |
transform: scale(1.15) !important;
|
| 820 |
box-shadow: 0 0 18px rgba(0, 229, 200, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
|
| 821 |
}
|
| 822 |
+
.gradio-container input[type="range"]::-moz-range-track {
|
| 823 |
+
background: linear-gradient(90deg, #00d4aa, #6c5ce7) !important;
|
| 824 |
+
height: 6px !important;
|
| 825 |
+
border-radius: 3px !important;
|
| 826 |
+
}
|
| 827 |
+
.gradio-container input[type="range"]::-moz-range-thumb {
|
| 828 |
+
width: 18px !important;
|
| 829 |
+
height: 18px !important;
|
| 830 |
+
border-radius: 50% !important;
|
| 831 |
+
background: linear-gradient(135deg, #00e5c8, #6c5ce7) !important;
|
| 832 |
+
border: 2px solid rgba(255, 255, 255, 0.3) !important;
|
| 833 |
+
box-shadow: 0 0 10px rgba(0, 229, 200, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
|
| 834 |
+
cursor: pointer !important;
|
| 835 |
+
}
|
| 836 |
+
.gradio-container input[type="range"]::-moz-range-thumb:hover {
|
| 837 |
+
box-shadow: 0 0 18px rgba(0, 229, 200, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
|
| 838 |
+
}
|
| 839 |
|
| 840 |
/* Number inputs */
|
| 841 |
+
.gradio-container input[type="number"] {
|
|
|
|
| 842 |
background: rgba(10, 15, 40, 0.6) !important;
|
| 843 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 844 |
border-radius: 8px !important;
|
|
|
|
| 846 |
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
|
| 847 |
}
|
| 848 |
|
| 849 |
+
/* ── DROPDOWN / SELECT (Gradio 6: combobox input) ── */
|
| 850 |
+
.gradio-container input[role="combobox"],
|
| 851 |
+
.gradio-container select {
|
|
|
|
| 852 |
background: rgba(10, 15, 40, 0.7) !important;
|
| 853 |
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 854 |
border-radius: 10px !important;
|
|
|
|
| 856 |
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
|
| 857 |
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 858 |
}
|
| 859 |
+
.gradio-container input[role="combobox"]:focus,
|
| 860 |
+
.gradio-container select:focus {
|
| 861 |
border-color: rgba(108, 92, 231, 0.6) !important;
|
| 862 |
box-shadow: 0 0 12px rgba(108, 92, 231, 0.2) !important;
|
| 863 |
}
|
| 864 |
|
| 865 |
+
/* ── CHECKBOXES — teal accent (overrides Gradio's default orange) ── */
|
| 866 |
+
.gradio-container input[type="checkbox"],
|
| 867 |
+
.gradio-container .block label input[type="checkbox"] {
|
| 868 |
accent-color: #00d4aa !important;
|
| 869 |
width: 18px !important;
|
| 870 |
height: 18px !important;
|
| 871 |
cursor: pointer !important;
|
| 872 |
}
|
| 873 |
+
.gradio-container input[type="checkbox"]:checked,
|
| 874 |
+
.gradio-container .block label input[type="checkbox"]:checked {
|
| 875 |
accent-color: #00e5c8 !important;
|
| 876 |
}
|
| 877 |
|
| 878 |
+
/* ── ACCORDION (Gradio 6: .label-wrap header, [data-testid="accordion-content"]) ── */
|
| 879 |
+
.gradio-container .label-wrap {
|
|
|
|
| 880 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 881 |
border: 1px solid rgba(100, 180, 255, 0.1) !important;
|
| 882 |
border-radius: 12px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 883 |
color: #c8d8e8 !important;
|
| 884 |
font-weight: 600 !important;
|
| 885 |
padding: 12px 16px !important;
|
| 886 |
cursor: pointer !important;
|
| 887 |
+
transition: color 0.2s ease, border-color 0.2s ease !important;
|
| 888 |
+
}
|
| 889 |
+
.gradio-container .label-wrap:hover {
|
| 890 |
+
color: #00e5c8 !important;
|
| 891 |
}
|
| 892 |
+
.gradio-container .label-wrap.open {
|
|
|
|
| 893 |
color: #00e5c8 !important;
|
| 894 |
+
border-color: rgba(0, 229, 200, 0.35) !important;
|
| 895 |
+
border-radius: 12px 12px 0 0 !important;
|
| 896 |
+
}
|
| 897 |
+
.gradio-container [data-testid="accordion-content"] {
|
| 898 |
+
background: rgba(255, 255, 255, 0.02) !important;
|
| 899 |
+
border: 1px solid rgba(100, 180, 255, 0.1) !important;
|
| 900 |
+
border-top: none !important;
|
| 901 |
+
border-radius: 0 0 12px 12px !important;
|
| 902 |
+
padding: 8px 12px !important;
|
| 903 |
}
|
| 904 |
|
| 905 |
/* ── GENERATE BUTTON — vibrant gradient with glow ── */
|
| 906 |
.gradio-container button.primary,
|
| 907 |
.gradio-container button.lg.primary,
|
|
|
|
| 908 |
.gradio-container button[data-variant="primary"] {
|
| 909 |
background: linear-gradient(135deg, #00b894, #0984e3, #6c5ce7) !important;
|
| 910 |
background-size: 200% 200% !important;
|
|
|
|
| 926 |
}
|
| 927 |
.gradio-container button.primary:hover,
|
| 928 |
.gradio-container button.lg.primary:hover,
|
|
|
|
| 929 |
.gradio-container button[data-variant="primary"]:hover {
|
| 930 |
transform: translateY(-2px) !important;
|
| 931 |
box-shadow:
|
|
|
|
| 949 |
/* ── SECONDARY BUTTONS ── */
|
| 950 |
.gradio-container button.secondary,
|
| 951 |
.gradio-container button.lg.secondary,
|
|
|
|
| 952 |
.gradio-container button[data-variant="secondary"] {
|
| 953 |
background: rgba(255, 255, 255, 0.06) !important;
|
| 954 |
backdrop-filter: blur(8px) !important;
|
|
|
|
| 960 |
}
|
| 961 |
.gradio-container button.secondary:hover,
|
| 962 |
.gradio-container button.lg.secondary:hover,
|
|
|
|
| 963 |
.gradio-container button[data-variant="secondary"]:hover {
|
| 964 |
background: rgba(108, 92, 231, 0.15) !important;
|
| 965 |
border-color: rgba(108, 92, 231, 0.4) !important;
|
|
|
|
| 967 |
box-shadow: 0 0 20px rgba(108, 92, 231, 0.15) !important;
|
| 968 |
}
|
| 969 |
|
| 970 |
+
/* ── FILE / VIDEO OUTPUT ── */
|
| 971 |
+
.gradio-container [data-testid="file"],
|
| 972 |
+
.gradio-container [data-testid="video"],
|
| 973 |
+
.gradio-container .file-preview {
|
| 974 |
background: rgba(10, 15, 40, 0.5) !important;
|
| 975 |
border: 1px solid rgba(100, 180, 255, 0.1) !important;
|
| 976 |
border-radius: 10px !important;
|
|
|
|
| 978 |
|
| 979 |
/* ── INFO TEXT ── */
|
| 980 |
.gradio-container .prose small,
|
| 981 |
+
.gradio-container small {
|
|
|
|
| 982 |
color: #7a8fa8 !important;
|
| 983 |
}
|
| 984 |
|
|
|
|
| 1008 |
}
|
| 1009 |
|
| 1010 |
/* ── COLUMN SEPARATOR — subtle glow line ── */
|
| 1011 |
+
.gradio-container .gr-row > div,
|
| 1012 |
+
.gradio-container .gr-row > .block {
|
| 1013 |
border-left: 1px solid rgba(108, 92, 231, 0.08) !important;
|
| 1014 |
}
|
| 1015 |
"""
|