Skip to content

Commit 5dce3a3

Browse files
Merge pull request #7 from hhftechnology/dev
ui-fixes
2 parents d0de234 + 3d06d42 commit 5dce3a3

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

ui/src/styles/main.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,3 +750,68 @@ td button:empty:before {
750750
}
751751
}
752752
/* Fix for loading spinner */
753+
/* Alternative approach with more general selectors */
754+
755+
/* =====================
756+
DARK MODE LABEL VISIBILITY FIX
757+
===================== */
758+
.dark-mode {
759+
/* Override specific element colors for dark mode */
760+
--badge-bg-blue: #90cdf4;
761+
--badge-text-blue: #1e3a8a;
762+
--badge-bg-green: #0d9488;
763+
--badge-text-green: #ffffff;
764+
--badge-bg-yellow: #d97706;
765+
--badge-text-yellow: #ffffff;
766+
--badge-bg-red: #f87171;
767+
--badge-text-red: #ffffff;
768+
}
769+
770+
/* General badge styles for dark mode */
771+
.dark-mode [class*="rounded-full"],
772+
.dark-mode .status-badge {
773+
border: 1px solid rgba(255, 255, 255, 0.2);
774+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
775+
}
776+
777+
/* Blue badges (middleware types) */
778+
.dark-mode .bg-blue-100,
779+
.dark-mode [class*="bg-blue-"] {
780+
background-color: var(--badge-bg-blue) !important;
781+
color: var(--badge-text-blue) !important;
782+
text-shadow: none;
783+
}
784+
785+
/* Green badges (protected status) */
786+
.dark-mode .bg-green-100,
787+
.dark-mode [class*="bg-green-"] {
788+
background-color: var(--badge-bg-green) !important;
789+
color: var(--badge-text-green) !important;
790+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
791+
}
792+
793+
/* Yellow badges (not protected status) */
794+
.dark-mode .bg-yellow-100,
795+
.dark-mode .bg-yellow-50,
796+
.dark-mode [class*="bg-yellow-"] {
797+
background-color: var(--badge-bg-yellow) !important;
798+
color: var(--badge-text-yellow) !important;
799+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
800+
}
801+
802+
/* Red badges (errors, disabled) */
803+
.dark-mode .bg-red-100,
804+
.dark-mode .bg-red-50,
805+
.dark-mode [class*="bg-red-"] {
806+
background-color: var(--badge-bg-red) !important;
807+
color: var(--badge-text-red) !important;
808+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
809+
}
810+
811+
/* Force text visibility for all badge elements */
812+
.dark-mode span[class*="rounded-full"],
813+
.dark-mode .status-badge {
814+
opacity: 1 !important;
815+
visibility: visible !important;
816+
font-weight: 600 !important;
817+
}

0 commit comments

Comments
 (0)