diff options
author | Kim Alvefur <zash@zash.se> | 2021-02-21 07:59:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-02-21 07:59:17 +0100 |
commit | 24974dc1c6f7ec772b56e6c081d4adabbcf4b93f (patch) | |
tree | 6e9336de046ec5fc5e6678458783a1d86e3baac2 | |
parent | 900fe6a1cb251c24e3a8661bee49ba2da38a4abc (diff) | |
download | prosody-24974dc1c6f7ec772b56e6c081d4adabbcf4b93f.tar.gz prosody-24974dc1c6f7ec772b56e6c081d4adabbcf4b93f.zip |
mod_http_errors: Style tweak
Weird to have the background all the way to the edge of the viewport.
Would be nice if this could be done without the extra span.
-rw-r--r-- | plugins/mod_http_errors.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua index 3f77f37c..dca36d76 100644 --- a/plugins/mod_http_errors.lua +++ b/plugins/mod_http_errors.lua @@ -29,18 +29,18 @@ local html = [[ body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif} h1{font-size:xx-large} p{font-size:x-large} -p.warning{font-size:large;background-color:yellow} +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{background-color:inherit;color:yellow} +p.warning>span{background-color:inherit;color:yellow} } </style> </head> <body> <h1>{title}</h1> <p>{message}</p> -{warning&<p class="warning">⚠ {warning?} ⚠</p>} +{warning&<p class="warning"><span>⚠ {warning?} ⚠</span></p>} {extra&<p class="extra">{extra?}</p>} </body> </html> |