Diff

plugins/mod_http_errors.lua @ 13393:f72ca74de456

mod_http_errors: Simplify CSS via built-in dark mode
author Kim Alvefur <zash@zash.se>
date Wed, 06 Dec 2023 23:52:45 +0100
parent 12977:74b9e05af71e
line wrap: on
line diff
--- 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>