We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c056928 commit ca5c6f6Copy full SHA for ca5c6f6
util/gh-pages/style.css
@@ -204,7 +204,7 @@ details[open] {
204
}
205
206
/* Expanding the mdBook theme*/
207
-.light {
+.light, body:not([class]) {
208
--inline-code-bg: #f6f7f6;
209
210
.rust {
@@ -220,6 +220,16 @@ details[open] {
220
--inline-code-bg: #191f26;
221
222
223
+@media (prefers-color-scheme: dark) {
224
+ body:not([class]) {
225
+ /*
226
+ In case JS is disabled and the user's system is in dark mode, we take "coal" as default
227
+ dark theme.
228
+ */
229
+ --inline-code-bg: #1d1f21;
230
+ }
231
+}
232
+
233
#settings-dropdown {
234
position: absolute;
235
margin: 0.7em;
0 commit comments