From a942a9cb0c6405c5c64370a2d1e38ab6c7f3a33f Mon Sep 17 00:00:00 2001 From: khm Date: Fri, 2 Feb 2024 16:11:00 -0800 Subject: [PATCH] style.css: support prefers-color-scheme: dark --- doc/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/style.css b/doc/style.css index 24be520..cc6fb46 100644 --- a/doc/style.css +++ b/doc/style.css @@ -25,3 +25,8 @@ pre { overflow-x: scroll; } .snac-btn-unlimit { float: right; margin-left: 0.5em } .snac-footer { margin-top: 2em; font-size: 75% } .snac-poll-result { margin-left: auto; margin-right: auto; } +@media (prefers-color-scheme: dark) { + body { background-color: #000; color: #fff; } + a { color: #7799dd } + a:visited { color: #aa99dd } +}