aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_http_errors.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua
index 19433aee..3f77f37c 100644
--- a/plugins/mod_http_errors.lua
+++ b/plugins/mod_http_errors.lua
@@ -29,15 +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.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}
}
</style>
</head>
<body>
<h1>{title}</h1>
<p>{message}</p>
+{warning&<p class="warning">&#9888; {warning?} &#9888;</p>}
{extra&<p class="extra">{extra?}</p>}
</body>
</html>