From 9681253fa8a45f0a0a69ee6306627816380fb872 Mon Sep 17 00:00:00 2001 From: Ian Alden Date: Thu, 28 Mar 2024 10:59:59 -0600 Subject: [PATCH] Restore dark mode --- docs/ldoc_new.css | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/docs/ldoc_new.css b/docs/ldoc_new.css index 13fef16..eb24375 100644 --- a/docs/ldoc_new.css +++ b/docs/ldoc_new.css @@ -288,3 +288,70 @@ pre .global { color: #c040c0; } pre .user-keyword { color: #800080; } pre .prompt { color: #558817; } pre .url { color: #272fc2; text-decoration: underline; } + +@media screen and (prefers-color-scheme: dark) { + /* width */ + ::-webkit-scrollbar { + width: auto; + } + + /* Track */ + ::-webkit-scrollbar-track { + box-shadow: inset 0 0 10px grey; + } + + /* Handle */ + ::-webkit-scrollbar-thumb { + background: darkgray; + } + + body { + color: rgb(171, 184, 195); + background: rgb(7, 2, 26); + } + + #navigation, #navigation h1, #navigation h2, #navigation h3 { + background-color: rgb(7, 2, 26); + color: rgb(224, 250, 247); + } + + #content table { + background-color: rgb(7, 2, 26); + } + + #content h1 { + color: rgb(224, 250, 247); + } + + #content h2, #content h2 a { + color: rgb(224, 250, 247); + background-color: rgb(62, 88, 149); + } + + #content pre { + background-color: rgb(37, 39, 44); + } + + #pre { + color: rgb(171, 184, 195); + } + + dl.function { + background-color: rgb(7, 2, 26); + } + + table.module_list td.name, table.function_list td.name { + background-color: rgb(18, 11, 44); + } + table.module_list td.summary, table.function_list td.summary { + background-color: rgb(18, 11, 44); + } + + #about { + background-color: rgb(7, 2, 26); + } + + a:target + * { + background-color: rgb(220, 220, 138); + } +}