Spaces:
Sleeping
Sleeping
Add ladybug loading animation
Browse files- src/webui/hacker_theme.py +68 -8
src/webui/hacker_theme.py
CHANGED
|
@@ -284,16 +284,76 @@ label {
|
|
| 284 |
background: rgba(255, 0, 136, 0.1) !important;
|
| 285 |
}
|
| 286 |
|
| 287 |
-
/* Loading
|
| 288 |
-
.loading {
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
}
|
| 293 |
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
|
|
|
|
|
|
| 297 |
}
|
| 298 |
|
| 299 |
/* Dropdown menus */
|
|
|
|
| 284 |
background: rgba(255, 0, 136, 0.1) !important;
|
| 285 |
}
|
| 286 |
|
| 287 |
+
/* Ladybug Loading Animation */
|
| 288 |
+
.loading, .loader, [class*="loading"], .wrap.svelte-1cl284s {
|
| 289 |
+
position: relative !important;
|
| 290 |
+
width: 80px !important;
|
| 291 |
+
height: 80px !important;
|
| 292 |
+
border: none !important;
|
| 293 |
+
background: transparent !important;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.loading::before, .loader::before, [class*="loading"]::before {
|
| 297 |
+
content: "🐞" !important;
|
| 298 |
+
position: absolute !important;
|
| 299 |
+
top: 50% !important;
|
| 300 |
+
left: 50% !important;
|
| 301 |
+
transform: translate(-50%, -50%) !important;
|
| 302 |
+
font-size: 60px !important;
|
| 303 |
+
animation: ladybug-crawl 2s ease-in-out infinite !important;
|
| 304 |
+
filter: drop-shadow(0 0 10px #ff0088) !important;
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
.loading::after, .loader::after, [class*="loading"]::after {
|
| 308 |
+
content: "Loading..." !important;
|
| 309 |
+
position: absolute !important;
|
| 310 |
+
bottom: -30px !important;
|
| 311 |
+
left: 50% !important;
|
| 312 |
+
transform: translateX(-50%) !important;
|
| 313 |
+
color: #00ff88 !important;
|
| 314 |
+
font-family: 'Fira Code', monospace !important;
|
| 315 |
+
font-size: 12px !important;
|
| 316 |
+
letter-spacing: 2px !important;
|
| 317 |
+
text-shadow: 0 0 5px #00ff88 !important;
|
| 318 |
+
animation: pulse-text 1.5s ease-in-out infinite !important;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
@keyframes ladybug-crawl {
|
| 322 |
+
0%, 100% {
|
| 323 |
+
transform: translate(-50%, -50%) rotate(0deg) scale(1);
|
| 324 |
+
}
|
| 325 |
+
25% {
|
| 326 |
+
transform: translate(-50%, -50%) rotate(-10deg) scale(1.1);
|
| 327 |
+
}
|
| 328 |
+
50% {
|
| 329 |
+
transform: translate(-50%, -50%) rotate(0deg) scale(1);
|
| 330 |
+
}
|
| 331 |
+
75% {
|
| 332 |
+
transform: translate(-50%, -50%) rotate(10deg) scale(1.1);
|
| 333 |
+
}
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
@keyframes pulse-text {
|
| 337 |
+
0%, 100% {
|
| 338 |
+
opacity: 0.6;
|
| 339 |
+
text-shadow: 0 0 5px #00ff88;
|
| 340 |
+
}
|
| 341 |
+
50% {
|
| 342 |
+
opacity: 1;
|
| 343 |
+
text-shadow: 0 0 15px #00ff88, 0 0 25px #00ff88;
|
| 344 |
+
}
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
/* Gradio specific loading indicators */
|
| 348 |
+
.pending, .generating {
|
| 349 |
+
position: relative !important;
|
| 350 |
}
|
| 351 |
|
| 352 |
+
.pending::before, .generating::before {
|
| 353 |
+
content: "🐞" !important;
|
| 354 |
+
font-size: 40px !important;
|
| 355 |
+
animation: ladybug-crawl 2s ease-in-out infinite !important;
|
| 356 |
+
filter: drop-shadow(0 0 10px #ff0088) !important;
|
| 357 |
}
|
| 358 |
|
| 359 |
/* Dropdown menus */
|