aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-06 23:52:45 +0100
committerKim Alvefur <zash@zash.se>2023-12-06 23:52:45 +0100
commit48f26f9b98616eb619d891df47b730c04cde72fb (patch)
tree72287efa5f6e241754424a07f47d060e9f9edaf7 /plugins
parent1b3971dd6299a1ecd98cd8eae8019f411f649800 (diff)
downloadprosody-48f26f9b98616eb619d891df47b730c04cde72fb.tar.gz
prosody-48f26f9b98616eb619d891df47b730c04cde72fb.zip
mod_http_errors: Simplify CSS via built-in dark mode
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http_errors.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua
index d0e61d79..c92e44ce 100644
--- a/plugins/mod_http_errors.lua
+++ b/plugins/mod_http_errors.lua
@@ -35,13 +35,13 @@ local html = [[
<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>