Spaces:
Sleeping
Sleeping
Added dark mode support
Browse files
app.py
CHANGED
@@ -147,6 +147,89 @@ summary:hover {
|
|
147 |
width: 100%;
|
148 |
}
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
"""
|
151 |
|
152 |
def create_leaderboard():
|
|
|
147 |
width: 100%;
|
148 |
}
|
149 |
}
|
150 |
+
.dark {
|
151 |
+
/* General styles */
|
152 |
+
background-color: #1a1a1a;
|
153 |
+
color: #e0e0e0;
|
154 |
+
|
155 |
+
/* Card styles */
|
156 |
+
.card {
|
157 |
+
background-color: #2a2a2a;
|
158 |
+
border-color: #444;
|
159 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
|
160 |
+
}
|
161 |
+
.card:hover {
|
162 |
+
box-shadow: 0 6px 8px rgba(0,0,0,0.4);
|
163 |
+
}
|
164 |
+
.card-title {
|
165 |
+
color: #fff;
|
166 |
+
border-bottom-color: #444;
|
167 |
+
}
|
168 |
+
|
169 |
+
/* Question styles */
|
170 |
+
.question {
|
171 |
+
background-color: #333;
|
172 |
+
}
|
173 |
+
.question h3 {
|
174 |
+
color: #e0e0e0;
|
175 |
+
}
|
176 |
+
.question-yes {
|
177 |
+
background-color: #1a3a1a;
|
178 |
+
}
|
179 |
+
.question-no {
|
180 |
+
background-color: #3a1a1a;
|
181 |
+
}
|
182 |
+
.question-na {
|
183 |
+
background-color: #3a3a1a;
|
184 |
+
}
|
185 |
+
|
186 |
+
/* Summary and details styles */
|
187 |
+
summary {
|
188 |
+
color: #3498db;
|
189 |
+
}
|
190 |
+
details {
|
191 |
+
background-color: #2a2a2a;
|
192 |
+
}
|
193 |
+
|
194 |
+
/* Score styles */
|
195 |
+
.category-score, .total-score {
|
196 |
+
background-color: #2c3e50;
|
197 |
+
border-color: #34495e;
|
198 |
+
}
|
199 |
+
.total-score {
|
200 |
+
background-color: #34495e;
|
201 |
+
border-color: #2c3e50;
|
202 |
+
}
|
203 |
+
|
204 |
+
/* Leaderboard styles */
|
205 |
+
.leaderboard-table th {
|
206 |
+
background-color: #2c3e50;
|
207 |
+
color: #fff;
|
208 |
+
}
|
209 |
+
.leaderboard-table td {
|
210 |
+
border-bottom-color: #444;
|
211 |
+
}
|
212 |
+
|
213 |
+
/* Gradio component styles */
|
214 |
+
.gradio-container {
|
215 |
+
background-color: #1a1a1a;
|
216 |
+
}
|
217 |
+
.input-group, .output-group {
|
218 |
+
background-color: #2a2a2a;
|
219 |
+
}
|
220 |
+
input, select, textarea {
|
221 |
+
background-color: #333;
|
222 |
+
color: #e0e0e0;
|
223 |
+
border-color: #444;
|
224 |
+
}
|
225 |
+
button {
|
226 |
+
background-color: #3498db;
|
227 |
+
color: #fff;
|
228 |
+
}
|
229 |
+
button:hover {
|
230 |
+
background-color: #2980b9;
|
231 |
+
}
|
232 |
+
}
|
233 |
"""
|
234 |
|
235 |
def create_leaderboard():
|