Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,94 @@ blue_ui_css = """
|
|
30 |
.gradio-container label input[type="radio"]:checked::before {
|
31 |
background-color: #667eea !important;
|
32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
"""
|
34 |
|
35 |
SPACE_REPO_ID = "IneqMath/IneqMath_Judge_Private"
|
|
|
30 |
.gradio-container label input[type="radio"]:checked::before {
|
31 |
background-color: #667eea !important;
|
32 |
}
|
33 |
+
|
34 |
+
/* Tab styling - change orange tabs to blue */
|
35 |
+
.gradio-container .tab-nav button[aria-selected="true"],
|
36 |
+
.gradio-container .tab-nav button.selected,
|
37 |
+
.gradio-container button[role="tab"][aria-selected="true"],
|
38 |
+
.gradio-container button[role="tab"].selected {
|
39 |
+
background-color: #667eea !important;
|
40 |
+
color: white !important;
|
41 |
+
border-bottom-color: #667eea !important;
|
42 |
+
}
|
43 |
+
|
44 |
+
.gradio-container .tab-nav button:hover,
|
45 |
+
.gradio-container button[role="tab"]:hover {
|
46 |
+
background-color: #5a6fd8 !important;
|
47 |
+
color: white !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Target tab buttons with orange styling */
|
51 |
+
.gradio-container .tabs button,
|
52 |
+
.gradio-container .tab-nav button,
|
53 |
+
.gradio-container button[role="tab"] {
|
54 |
+
transition: all 0.3s ease !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.gradio-container .tabs button[aria-selected="true"],
|
58 |
+
.gradio-container .tabs button.selected {
|
59 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
60 |
+
color: white !important;
|
61 |
+
border-color: #667eea !important;
|
62 |
+
}
|
63 |
+
|
64 |
+
/* Override orange primary colors globally */
|
65 |
+
.gradio-container * {
|
66 |
+
--primary-color: #667eea !important;
|
67 |
+
--primary-600: #667eea !important;
|
68 |
+
--primary-500: #667eea !important;
|
69 |
+
--primary-400: #667eea !important;
|
70 |
+
--orange-500: #667eea !important;
|
71 |
+
--orange-600: #667eea !important;
|
72 |
+
--color-accent: #667eea !important;
|
73 |
+
--color-accent-soft: #667eea !important;
|
74 |
+
}
|
75 |
+
|
76 |
+
/* Button styling - comprehensive coverage */
|
77 |
+
.gradio-container button,
|
78 |
+
.gradio-container .gr-button,
|
79 |
+
.gradio-container input[type="button"],
|
80 |
+
.gradio-container input[type="submit"],
|
81 |
+
.gradio-container .btn,
|
82 |
+
.gradio-container [role="button"] {
|
83 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
84 |
+
background-color: #667eea !important;
|
85 |
+
border-color: #667eea !important;
|
86 |
+
color: white !important;
|
87 |
+
border: 1px solid #667eea !important;
|
88 |
+
}
|
89 |
+
|
90 |
+
.gradio-container button:hover,
|
91 |
+
.gradio-container .gr-button:hover,
|
92 |
+
.gradio-container input[type="button"]:hover,
|
93 |
+
.gradio-container input[type="submit"]:hover,
|
94 |
+
.gradio-container .btn:hover,
|
95 |
+
.gradio-container [role="button"]:hover {
|
96 |
+
background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%) !important;
|
97 |
+
background-color: #5a6fd8 !important;
|
98 |
+
border-color: #5a6fd8 !important;
|
99 |
+
transform: translateY(-1px) !important;
|
100 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
|
101 |
+
}
|
102 |
+
|
103 |
+
/* Force override for any remaining orange elements */
|
104 |
+
.gradio-container button[style*="background"],
|
105 |
+
.gradio-container .gr-button[style*="background"],
|
106 |
+
.gradio-container [style*="orange"],
|
107 |
+
.gradio-container [class*="orange"] {
|
108 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
109 |
+
background-color: #667eea !important;
|
110 |
+
color: white !important;
|
111 |
+
}
|
112 |
+
|
113 |
+
/* Specific targeting for tab icons and active states */
|
114 |
+
.gradio-container [data-testid="tab"] button[aria-selected="true"],
|
115 |
+
.gradio-container .tab button[aria-selected="true"],
|
116 |
+
.gradio-container [role="tablist"] button[aria-selected="true"] {
|
117 |
+
background-color: #667eea !important;
|
118 |
+
color: white !important;
|
119 |
+
border-bottom: 2px solid #667eea !important;
|
120 |
+
}
|
121 |
"""
|
122 |
|
123 |
SPACE_REPO_ID = "IneqMath/IneqMath_Judge_Private"
|