mod_http_errors: Simplify CSS via built-in dark mode
authorKim Alvefur <zash@zash.se>
Wed, 06 Dec 2023 23:52:45 +0100
changeset 13397 f72ca74de456
parent 13396 e8f8a4394187
child 13398 6debd8dd12ab
mod_http_errors: Simplify CSS via built-in dark mode
plugins/mod_http_errors.lua
--- a/plugins/mod_http_errors.lua	Fri Dec 08 15:46:32 2023 +0000
+++ b/plugins/mod_http_errors.lua	Wed Dec 06 23:52:45 2023 +0100
@@ -35,13 +35,13 @@
 <meta charset="utf-8">
 <title>{title}</title>
 <style>
-body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif}
+:root{color-scheme:light dark}
+body{margin-top:14%;text-align:center;font-family:sans-serif}
 h1{font-size:xx-large}
 p{font-size:x-large}
 p.warning>span{font-size:large;background-color:yellow}
 p.extra{font-size:large;font-family:courier}
 @media(prefers-color-scheme:dark){
-body{background-color:#161616;color:#eee}
 p.warning>span{background-color:inherit;color:yellow}
 }
 </style>