Skip to content

Commit 52adaba

Browse files
committed
nav.js: dark mode target specific elements not CodeMirror
1 parent 96c9b30 commit 52adaba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

assets/nav.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@
9393
style.id = 'dark-mode-style';
9494
style.textContent = `
9595
body.dark-mode { background:#1a1a2e !important; color:#cdd6f4 !important; }
96-
body.dark-mode *:not(.CodeMirror):not(.CodeMirror *) { border-color:#313244 !important; background-color:transparent !important; }
97-
body.dark-mode *:not(.cm-s-cppmode-dark):not(.cm-s-cppmode-dark *) { color:#cdd6f4 !important; }
96+
body.dark-mode p, body.dark-mode span:not([class*='cm-']), body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode li, body.dark-mode label, body.dark-mode td, body.dark-mode th { color:#cdd6f4 !important; }
9897
body.dark-mode a { color:#89b4fa !important; }
9998
body.dark-mode #site-nav { background:#181825 !important; border-color:#313244 !important; }
10099
body.dark-mode .sidebar, body.dark-mode #site-sidebar { background:#181825 !important; }

0 commit comments

Comments
 (0)