From 4523e5a62245ad925d71e93d7e17601dfb49df0c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 13 Aug 2023 01:46:15 +0400 Subject: [PATCH] Oh, I forgot that inline styling and in a head tag are forbidden. Moving out to a file. --- web/assets/css/error.css | 7 +++++++ web/templates/errorXXX.pug | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 web/assets/css/error.css diff --git a/web/assets/css/error.css b/web/assets/css/error.css new file mode 100644 index 0000000..55028f2 --- /dev/null +++ b/web/assets/css/error.css @@ -0,0 +1,7 @@ +#error { + font-size: 3.5rem; + line-height: 5rem; + text-align: center; + margin: 6rem 0; } + +#error h1 { font-size: 8rem; } \ No newline at end of file diff --git a/web/templates/errorXXX.pug b/web/templates/errorXXX.pug index ad9dfa3..88b07a3 100755 --- a/web/templates/errorXXX.pug +++ b/web/templates/errorXXX.pug @@ -4,14 +4,7 @@ block meta_description meta(name='description' content=http.StatusText(code)) block append head - style(type="text/css"). - #error { - font-size: 3.5rem; - line-height: 5rem; - text-align: center; - margin: 6rem 0; } - - #error h1 { font-size: 8rem; } + link(href='/assets/css/error.css' rel='stylesheet') block nav a(href='/') Home