mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_http_errors: Simplify CSS via built-in dark mode
This commit is contained in:
parent
1b3971dd62
commit
48f26f9b98
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue