Mercurial > prosody-hg
comparison 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 |
| parents | 74b9e05af71e |
| children | 1b95d50cfa18 |
comparison
equal
deleted
inserted
replaced
| 13392:e8f8a4394187 | 13393:f72ca74de456 |
|---|---|
| 33 <html> | 33 <html> |
| 34 <head> | 34 <head> |
| 35 <meta charset="utf-8"> | 35 <meta charset="utf-8"> |
| 36 <title>{title}</title> | 36 <title>{title}</title> |
| 37 <style> | 37 <style> |
| 38 body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif} | 38 :root{color-scheme:light dark} |
| 39 body{margin-top:14%;text-align:center;font-family:sans-serif} | |
| 39 h1{font-size:xx-large} | 40 h1{font-size:xx-large} |
| 40 p{font-size:x-large} | 41 p{font-size:x-large} |
| 41 p.warning>span{font-size:large;background-color:yellow} | 42 p.warning>span{font-size:large;background-color:yellow} |
| 42 p.extra{font-size:large;font-family:courier} | 43 p.extra{font-size:large;font-family:courier} |
| 43 @media(prefers-color-scheme:dark){ | 44 @media(prefers-color-scheme:dark){ |
| 44 body{background-color:#161616;color:#eee} | |
| 45 p.warning>span{background-color:inherit;color:yellow} | 45 p.warning>span{background-color:inherit;color:yellow} |
| 46 } | 46 } |
| 47 </style> | 47 </style> |
| 48 </head> | 48 </head> |
| 49 <body> | 49 <body> |
