Skip to content

Commit 73ab736

Browse files
Ian AldenIan Alden
authored andcommitted
Re-add dark mode
1 parent 2a0c82c commit 73ab736

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

docs/ldoc_new.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,70 @@ pre .global { color: #c040c0; }
288288
pre .user-keyword { color: #800080; }
289289
pre .prompt { color: #558817; }
290290
pre .url { color: #272fc2; text-decoration: underline; }
291+
292+
@media screen and (prefers-color-scheme: dark) {
293+
/* width */
294+
::-webkit-scrollbar {
295+
width: auto;
296+
}
297+
298+
/* Track */
299+
::-webkit-scrollbar-track {
300+
box-shadow: inset 0 0 10px grey;
301+
}
302+
303+
/* Handle */
304+
::-webkit-scrollbar-thumb {
305+
background: darkgray;
306+
}
307+
308+
body {
309+
color: rgb(171, 184, 195);
310+
background: rgb(7, 2, 26);
311+
}
312+
313+
#navigation, #navigation h1, #navigation h2, #navigation h3 {
314+
background-color: rgb(7, 2, 26);
315+
color: rgb(224, 250, 247);
316+
}
317+
318+
#content table {
319+
background-color: rgb(7, 2, 26);
320+
}
321+
322+
#content h1 {
323+
color: rgb(224, 250, 247);
324+
}
325+
326+
#content h2, #content h2 a {
327+
color: rgb(224, 250, 247);
328+
background-color: rgb(62, 88, 149);
329+
}
330+
331+
#content pre {
332+
background-color: rgb(37, 39, 44);
333+
}
334+
335+
#pre {
336+
color: rgb(171, 184, 195);
337+
}
338+
339+
dl.function {
340+
background-color: rgb(7, 2, 26);
341+
}
342+
343+
table.module_list td.name, table.function_list td.name {
344+
background-color: rgb(18, 11, 44);
345+
}
346+
table.module_list td.summary, table.function_list td.summary {
347+
background-color: rgb(18, 11, 44);
348+
}
349+
350+
#about {
351+
background-color: rgb(7, 2, 26);
352+
}
353+
354+
a:target + * {
355+
background-color: rgb(220, 220, 138);
356+
}
357+
}

0 commit comments

Comments
 (0)