Skip to content

Commit d05db8d

Browse files
committed
Add the CSS styles for the dark theme
1 parent a08fd97 commit d05db8d

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

system/Debug/Toolbar/Views/toolbar.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
z-index: 10000;
8181
}
8282

83-
#debug-bar #toolbar-position > a {
83+
#debug-bar #toolbar-position > a,
84+
#debug-bar #toolbar-theme > a {
8485
padding: 0 6px;
8586
}
8687

@@ -394,6 +395,10 @@ simple styles to replace inline styles
394395
display: none;
395396
}
396397

398+
.debug-bar-ntheme {
399+
display: none;
400+
}
401+
397402
.debug-bar-alignRight {
398403
text-align: right;
399404
}
@@ -405,3 +410,22 @@ simple styles to replace inline styles
405410
.debug-bar-noverflow {
406411
overflow: hidden;
407412
}
413+
414+
/**
415+
dark theme
416+
*/
417+
.dark .tab,
418+
.dark .toolbar { /* Invert colors */
419+
-webkit-filter: invert(88%);
420+
filter: invert(88%);
421+
}
422+
423+
.dark .badge,
424+
.dark #toolbar-position a,
425+
.dark #toolbar-theme a,
426+
.dark .toolbar h1,
427+
.dark .current,
428+
.dark tr[data-active="1"] { /* Cancel color invertion for some elements */
429+
-webkit-filter: invert(88%);
430+
filter: invert(88%);
431+
}

0 commit comments

Comments
 (0)