|
|
@@ -93,7 +93,7 @@ pre {
|
|
|
}
|
|
|
|
|
|
// Dark mode overrides
|
|
|
-body[data-bs-theme=dark] {
|
|
|
+html[data-bs-theme=dark] {
|
|
|
// Override background color alpha value
|
|
|
::selection {
|
|
|
background-color: rgba(var(--tblr-primary-rgb),.48);
|
|
|
@@ -174,16 +174,11 @@ pre code {
|
|
|
}
|
|
|
|
|
|
// Theme-based visibility utilities
|
|
|
-// Tabler's .hide-theme-* utilities expect data-bs-theme on :root, but NetBox applies
|
|
|
-// it to body. These overrides use higher specificity selectors to ensure theme-based
|
|
|
-// visibility works correctly. The :root:not(.dummy) pattern provides the additional
|
|
|
-// specificity needed to override Tabler's :root:not() rules.
|
|
|
-:root:not(.dummy) body[data-bs-theme='light'] .hide-theme-light,
|
|
|
-:root:not(.dummy) body[data-bs-theme='dark'] .hide-theme-dark {
|
|
|
+:root:not(.dummy)[data-bs-theme='light'] .hide-theme-light,
|
|
|
+:root:not(.dummy)[data-bs-theme='dark'] .hide-theme-dark {
|
|
|
display: none !important;
|
|
|
}
|
|
|
-
|
|
|
-:root:not(.dummy) body[data-bs-theme='dark'] .hide-theme-light,
|
|
|
-:root:not(.dummy) body[data-bs-theme='light'] .hide-theme-dark {
|
|
|
+:root:not(.dummy)[data-bs-theme='dark'] .hide-theme-light,
|
|
|
+:root:not(.dummy)[data-bs-theme='light'] .hide-theme-dark {
|
|
|
display: inline-flex !important;
|
|
|
}
|