From 6f68c37d68e6adbfbd989dc310dae79614b137ef Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 13 Jan 2025 10:50:13 -0500 Subject: [PATCH] initial dark theme --- style.css | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/style.css b/style.css index d57e948..501d453 100644 --- a/style.css +++ b/style.css @@ -1591,3 +1591,63 @@ tt.D.highlighted a { .conditional-compilation-attributes { font-size: 90%; } + +@media (prefers-color-scheme: dark) { + body { + color: #ddd; + background-color: black; + } + + a:link, a:visited { + color: #00aaff !important; + } + + #page-nav { + background-color: #333 !important; + } + + tt.D, + .inline-code { + background-color: #444; + color: #eee; + } + + pre.d_code { + background-color: #444; + color: #eee; + } + + .com { + color: #0ff; + } + + .tip { + background-color: #306630; + } + + .pitfall { + background-color: #663030; + } + + .warning { + background-color: #666630; + } + + .note { + background-color: #3333aa; + } + + .sidebar { + background-color: #555; + } + + .member-list dt .simplified-prototype { + color: #aaa; + border-color: black; + } + + .member-list dt .simplified-prototype:hover { + background-color: black; + border-color: #555; + } +}