# HG changeset patch # User Kim Alvefur # Date 1613890757 -3600 # Node ID d336b28b40026e7dcd5ea398e427ea0d7605002f # Parent 42078734033990f8bd7e173d341e18897af76ec0 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. diff -r 420787340339 -r d336b28b4002 plugins/mod_http_errors.lua --- a/plugins/mod_http_errors.lua Sun Feb 21 06:49:11 2021 +0100 +++ b/plugins/mod_http_errors.lua Sun Feb 21 07:59:17 2021 +0100 @@ -29,18 +29,18 @@ 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?}

}