From 24974dc1c6f7ec772b56e6c081d4adabbcf4b93f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 21 Feb 2021 07:59:17 +0100 Subject: 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. --- plugins/mod_http_errors.lua | 6 +++--- 1 file 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} }

{title}

{message}

-{warning&

⚠ {warning?} ⚠

} +{warning&

⚠ {warning?} ⚠

} {extra&

{extra?}

} -- cgit v1.2.3