Spaces:
Running
Running
Yuxuan-Zhang-Dexter
commited on
Commit
·
ad50a71
1
Parent(s):
229854f
handle dark and light mode
Browse files
app.py
CHANGED
@@ -633,32 +633,38 @@ def build_app():
|
|
633 |
.table-container th {
|
634 |
position: sticky !important;
|
635 |
top: 0 !important;
|
636 |
-
background-color: #f8f9fa !important;
|
637 |
z-index: 10 !important;
|
638 |
font-weight: bold;
|
639 |
padding: 16px 10px !important;
|
640 |
-
border-bottom: 2px solid #e9ecef;
|
641 |
white-space: pre-wrap !important;
|
642 |
word-wrap: break-word !important;
|
643 |
line-height: 1.2 !important;
|
644 |
height: auto !important;
|
645 |
min-height: 60px !important;
|
646 |
vertical-align: middle !important;
|
|
|
647 |
}
|
648 |
|
649 |
-
/*
|
650 |
-
.table-container
|
651 |
-
|
652 |
-
|
|
|
653 |
}
|
654 |
|
655 |
-
/*
|
656 |
-
.table-container
|
657 |
-
|
|
|
|
|
658 |
}
|
659 |
|
660 |
-
|
661 |
-
|
|
|
|
|
662 |
}
|
663 |
|
664 |
/* Row number column styling */
|
|
|
633 |
.table-container th {
|
634 |
position: sticky !important;
|
635 |
top: 0 !important;
|
636 |
+
background-color: var(--header-bg, #f8f9fa) !important;
|
637 |
z-index: 10 !important;
|
638 |
font-weight: bold;
|
639 |
padding: 16px 10px !important;
|
640 |
+
border-bottom: 2px solid var(--border-color, #e9ecef);
|
641 |
white-space: pre-wrap !important;
|
642 |
word-wrap: break-word !important;
|
643 |
line-height: 1.2 !important;
|
644 |
height: auto !important;
|
645 |
min-height: 60px !important;
|
646 |
vertical-align: middle !important;
|
647 |
+
color: var(--header-text, #2c3e50) !important;
|
648 |
}
|
649 |
|
650 |
+
/* Dark mode specific styles */
|
651 |
+
.dark .table-container th {
|
652 |
+
--header-bg: #2d3748;
|
653 |
+
--header-text: #e2e8f0;
|
654 |
+
--border-color: #4a5568;
|
655 |
}
|
656 |
|
657 |
+
/* Light mode specific styles */
|
658 |
+
.light .table-container th {
|
659 |
+
--header-bg: #f8f9fa;
|
660 |
+
--header-text: #2c3e50;
|
661 |
+
--border-color: #e9ecef;
|
662 |
}
|
663 |
|
664 |
+
/* Simple cell styling */
|
665 |
+
.table-container td {
|
666 |
+
padding: 8px 8px;
|
667 |
+
border-bottom: 1px solid var(--border-color, #e9ecef);
|
668 |
}
|
669 |
|
670 |
/* Row number column styling */
|