Spaces:
Running on Zero
Running on Zero
UI: fix dropdown, boost textarea colour, shrink card padding
Browse files
app.py
CHANGED
|
@@ -741,18 +741,17 @@ CSS = """
|
|
| 741 |
backdrop-filter: blur(20px) saturate(1.5) !important;
|
| 742 |
-webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
|
| 743 |
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
| 744 |
-
border-radius:
|
| 745 |
-
box-shadow:
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
margin-bottom: 8px !important;
|
| 749 |
}
|
| 750 |
/* Override Gradio's high-specificity scoped card rules */
|
| 751 |
.gradio-container .contain .block,
|
| 752 |
.gradio-container .gr-block,
|
| 753 |
.gradio-container .panel,
|
| 754 |
.gradio-container > div > div > div > div {
|
| 755 |
-
border-radius:
|
| 756 |
}
|
| 757 |
|
| 758 |
/* Image/video upload drop zones β target the drop zone inside .block */
|
|
@@ -790,12 +789,10 @@ CSS = """
|
|
| 790 |
}
|
| 791 |
|
| 792 |
/* ββ TEXT INPUTS & TEXTBOX β glass borders ββ */
|
| 793 |
-
.gradio-container input[type="text"],
|
| 794 |
.gradio-container textarea,
|
| 795 |
-
.gradio-container
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
border: 1px solid rgba(100, 180, 255, 0.25) !important;
|
| 799 |
border-radius: 10px !important;
|
| 800 |
color: #e8ecf4 !important;
|
| 801 |
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
|
|
@@ -803,10 +800,8 @@ CSS = """
|
|
| 803 |
padding: 10px 12px !important;
|
| 804 |
font-size: 14px !important;
|
| 805 |
}
|
| 806 |
-
.gradio-container input[type="text"]:focus,
|
| 807 |
.gradio-container textarea:focus,
|
| 808 |
-
.gradio-container
|
| 809 |
-
.gradio-container .wrap input[type="text"]:focus {
|
| 810 |
border-color: rgba(108, 92, 231, 0.7) !important;
|
| 811 |
box-shadow:
|
| 812 |
inset 0 2px 8px rgba(0, 0, 0, 0.3),
|
|
@@ -881,21 +876,7 @@ CSS = """
|
|
| 881 |
outline: none !important;
|
| 882 |
}
|
| 883 |
|
| 884 |
-
/* ββ DROPDOWN / SELECT (
|
| 885 |
-
.gradio-container input[role="combobox"],
|
| 886 |
-
.gradio-container select {
|
| 887 |
-
background: rgba(10, 15, 40, 0.7) !important;
|
| 888 |
-
border: 1px solid rgba(100, 180, 255, 0.15) !important;
|
| 889 |
-
border-radius: 10px !important;
|
| 890 |
-
color: #e8ecf4 !important;
|
| 891 |
-
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
|
| 892 |
-
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
|
| 893 |
-
}
|
| 894 |
-
.gradio-container input[role="combobox"]:focus,
|
| 895 |
-
.gradio-container select:focus {
|
| 896 |
-
border-color: rgba(108, 92, 231, 0.6) !important;
|
| 897 |
-
box-shadow: 0 0 12px rgba(108, 92, 231, 0.2) !important;
|
| 898 |
-
}
|
| 899 |
|
| 900 |
/* ββ CHECKBOXES β teal accent (overrides Gradio's default orange) ββ */
|
| 901 |
.gradio-container input[type="checkbox"],
|
|
|
|
| 741 |
backdrop-filter: blur(20px) saturate(1.5) !important;
|
| 742 |
-webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
|
| 743 |
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
| 744 |
+
border-radius: 14px !important;
|
| 745 |
+
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
|
| 746 |
+
margin-bottom: 4px !important;
|
| 747 |
+
padding: 6px 10px !important;
|
|
|
|
| 748 |
}
|
| 749 |
/* Override Gradio's high-specificity scoped card rules */
|
| 750 |
.gradio-container .contain .block,
|
| 751 |
.gradio-container .gr-block,
|
| 752 |
.gradio-container .panel,
|
| 753 |
.gradio-container > div > div > div > div {
|
| 754 |
+
border-radius: 14px !important;
|
| 755 |
}
|
| 756 |
|
| 757 |
/* Image/video upload drop zones β target the drop zone inside .block */
|
|
|
|
| 789 |
}
|
| 790 |
|
| 791 |
/* ββ TEXT INPUTS & TEXTBOX β glass borders ββ */
|
|
|
|
| 792 |
.gradio-container textarea,
|
| 793 |
+
.gradio-container input[type="text"] {
|
| 794 |
+
background: rgba(12, 18, 50, 0.75) !important;
|
| 795 |
+
border: 1px solid rgba(100, 180, 255, 0.3) !important;
|
|
|
|
| 796 |
border-radius: 10px !important;
|
| 797 |
color: #e8ecf4 !important;
|
| 798 |
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
|
|
|
|
| 800 |
padding: 10px 12px !important;
|
| 801 |
font-size: 14px !important;
|
| 802 |
}
|
|
|
|
| 803 |
.gradio-container textarea:focus,
|
| 804 |
+
.gradio-container input[type="text"]:focus {
|
|
|
|
| 805 |
border-color: rgba(108, 92, 231, 0.7) !important;
|
| 806 |
box-shadow:
|
| 807 |
inset 0 2px 8px rgba(0, 0, 0, 0.3),
|
|
|
|
| 876 |
outline: none !important;
|
| 877 |
}
|
| 878 |
|
| 879 |
+
/* ββ DROPDOWN / SELECT β minimal override (don't break Gradio's internal JS) ββ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 880 |
|
| 881 |
/* ββ CHECKBOXES β teal accent (overrides Gradio's default orange) ββ */
|
| 882 |
.gradio-container input[type="checkbox"],
|