chansung commited on
Commit
cd01387
·
verified ·
1 Parent(s): d51bcea

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. gradio_app.py +54 -2
gradio_app.py CHANGED
@@ -360,8 +360,12 @@ def create_gradio_interface():
360
  flex: 1 !important;
361
  }
362
 
363
- /* Dark mode specific overrides */
364
- @media (prefers-color-scheme: dark) {
 
 
 
 
365
  .modal-content {
366
  background: #1a1a1a !important;
367
  border: 2px solid #404040 !important;
@@ -392,6 +396,54 @@ def create_gradio_interface():
392
  }
393
  }
394
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
 
396
 
397
  .generate-btn:hover {
 
360
  flex: 1 !important;
361
  }
362
 
363
+ /* Dark mode specific overrides - both system and Gradio dark mode */
364
+ @media (prefers-color-scheme: dark),
365
+ .dark .modal-content,
366
+ .gradio-container.dark .modal-content,
367
+ html.dark .modal-content,
368
+ body.dark .modal-content {
369
  .modal-content {
370
  background: #1a1a1a !important;
371
  border: 2px solid #404040 !important;
 
396
  }
397
  }
398
 
399
+ /* Gradio dark mode specific targeting */
400
+ .dark .modal-content,
401
+ .gradio-container.dark .modal-content,
402
+ html.dark .modal-content,
403
+ body.dark .modal-content {
404
+ background: #1a1a1a !important;
405
+ border: 2px solid #404040 !important;
406
+ color: #e5e5e5 !important;
407
+ }
408
+
409
+ .dark .modal-header,
410
+ .gradio-container.dark .modal-header,
411
+ html.dark .modal-header,
412
+ body.dark .modal-header {
413
+ border-bottom: 1px solid #404040 !important;
414
+ }
415
+
416
+ .dark .modal-header h3,
417
+ .gradio-container.dark .modal-header h3,
418
+ html.dark .modal-header h3,
419
+ body.dark .modal-header h3 {
420
+ color: #e5e5e5 !important;
421
+ }
422
+
423
+ .dark .modal-close-btn,
424
+ .gradio-container.dark .modal-close-btn,
425
+ html.dark .modal-close-btn,
426
+ body.dark .modal-close-btn {
427
+ background: #404040 !important;
428
+ border: 1px solid #666 !important;
429
+ color: #e5e5e5 !important;
430
+ }
431
+
432
+ .dark .modal-close-btn:hover,
433
+ .gradio-container.dark .modal-close-btn:hover,
434
+ html.dark .modal-close-btn:hover,
435
+ body.dark .modal-close-btn:hover {
436
+ background: #555 !important;
437
+ }
438
+
439
+ .dark .prompt-container,
440
+ .gradio-container.dark .prompt-container,
441
+ html.dark .prompt-container,
442
+ body.dark .prompt-container {
443
+ background: #2a2a2a !important;
444
+ border: 1px solid #404040 !important;
445
+ }
446
+
447
 
448
 
449
  .generate-btn:hover {