Skip to content

Commit 1cd8e4e

Browse files
committed
nav.js: dark mode for reference pages
1 parent af083b8 commit 1cd8e4e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

assets/nav.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,31 @@
112112
body.dark-mode .CodeMirror-linenumber { color:#6c7086 !important; }
113113
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background:#181825 !important; color:#cdd6f4 !important; }
114114
body.dark-mode ::placeholder { color:#6c7086 !important; }
115+
/* Reference pages */
116+
body.dark-mode .content, body.dark-mode .ref-sidebar, body.dark-mode .sidebar-outer { background:#1e1e2e !important; }
117+
body.dark-mode .syntax-block { background:#181825 !important; color:#f8f8f2 !important; }
118+
body.dark-mode .impl-block { background:#0d0d0d !important; }
119+
body.dark-mode .returns-badge { background:#313244 !important; color:#cdd6f4 !important; }
120+
body.dark-mode .related-links a { background:#313244 !important; color:#cdd6f4 !important; }
121+
body.dark-mode .related-links a:hover { background:#45475a !important; }
122+
body.dark-mode .params-table th { color:#6c7086 !important; border-color:#313244 !important; }
123+
body.dark-mode .params-table td { border-color:#313244 !important; color:#cdd6f4 !important; }
124+
body.dark-mode .params-table td:first-child { color:#89b4fa !important; }
125+
body.dark-mode .params-table td:nth-child(2) { color:#a6e3a1 !important; }
126+
body.dark-mode .methods-table td { border-color:#313244 !important; color:#cdd6f4 !important; }
127+
body.dark-mode .methods-table td:first-child { color:#89b4fa !important; }
128+
body.dark-mode .ref-sidebar a { color:#a6adc8 !important; }
129+
body.dark-mode .ref-sidebar a:hover { background:#313244 !important; color:#cdd6f4 !important; }
130+
body.dark-mode .ref-sidebar a.active { background:#313244 !important; color:#cdd6f4 !important; }
131+
body.dark-mode .ref-cat-title { color:#cdd6f4 !important; }
132+
body.dark-mode .ref-subcat-title { color:#6c7086 !important; }
133+
body.dark-mode .cat-tag { color:#6c7086 !important; }
134+
body.dark-mode .content h2 { color:#6c7086 !important; }
135+
body.dark-mode .content p { color:#cdd6f4 !important; }
136+
body.dark-mode .topic-title { color:#cdd6f4 !important; border-color:#313244 !important; }
137+
body.dark-mode .fn-list a { color:#89b4fa !important; }
138+
body.dark-mode .fn-list a:hover { color:#cdd6f4 !important; }
139+
body.dark-mode footer { border-color:#313244 !important; color:#6c7086 !important; }
115140
body.dark-mode .hero-link { color:#89b4fa !important; border-color:#89b4fa !important; }
116141
body.dark-mode .hero-link:hover { border-color:#cdd6f4 !important; color:#cdd6f4 !important; }
117142
body.dark-mode .hero-btn-download { background:#e8b400 !important; color:#111 !important; }

0 commit comments

Comments
 (0)