Skip to content

Commit f745cb5

Browse files
committed
nav.js: dark mode for tutorials
1 parent 1cd8e4e commit f745cb5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

assets/nav.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@
137137
body.dark-mode .fn-list a { color:#89b4fa !important; }
138138
body.dark-mode .fn-list a:hover { color:#cdd6f4 !important; }
139139
body.dark-mode footer { border-color:#313244 !important; color:#6c7086 !important; }
140+
/* Tutorials */
141+
body.dark-mode .tutorial-content, body.dark-mode .tutorial-body, body.dark-mode article { background:#1e1e2e !important; color:#cdd6f4 !important; }
142+
body.dark-mode .cm-static-wrap, body.dark-mode .code-block, body.dark-mode .highlight { background:#181825 !important; border-color:#313244 !important; }
143+
body.dark-mode blockquote { background:#181825 !important; border-color:#45475a !important; color:#a6adc8 !important; }
144+
body.dark-mode table { border-color:#313244 !important; }
145+
body.dark-mode table td, body.dark-mode table th { border-color:#313244 !important; color:#cdd6f4 !important; background:#1e1e2e !important; }
146+
body.dark-mode .sidebar-outer { background:#181825 !important; }
147+
body.dark-mode .note, body.dark-mode .warning, body.dark-mode .tip { background:#181825 !important; border-color:#45475a !important; color:#cdd6f4 !important; }
140148
body.dark-mode .hero-link { color:#89b4fa !important; border-color:#89b4fa !important; }
141149
body.dark-mode .hero-link:hover { border-color:#cdd6f4 !important; color:#cdd6f4 !important; }
142150
body.dark-mode .hero-btn-download { background:#e8b400 !important; color:#111 !important; }

0 commit comments

Comments
 (0)