From c0be71f11317a3bf65f9ebfe92e04f230d1e0dbb Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Tue, 6 Aug 2024 16:03:46 +0200 Subject: [PATCH] chore: style and layout of header --- static/css/style.scss | 15 ++++++++++++++- templates/about.tpl | 8 ++++++++ templates/layout.tpl | 9 +-------- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/static/css/style.scss b/static/css/style.scss index 741fcc0..c868195 100644 --- a/static/css/style.scss +++ b/static/css/style.scss @@ -130,10 +130,22 @@ h1 { font-size: 3.2rem; font-style: normal; margin-top: 2.6rem; } h2 { font-size: 2.2rem; margin-top: 4.2rem; } h3 { font-size: 1.7rem; margin-top: 2.6rem; } -p,table,blockquote,pre,img,hr,.mini-note,ul li,ol li { +p,table,blockquote,img,hr,.mini-note,ul li,ol li { box-sizing: border-box; max-width: 55%; } + +pre { + font-size: 1rem; + margin: 2rem 0 2rem 0 !important; + padding: 0 !important; + overflow-x: auto; + min-width: 98%; + margin: 0; + padding: 0; + display: flex; +}; + p { width: 100%; max-width: 53rem; @@ -257,6 +269,7 @@ figcaption { left: calc(100% + 4rem); line-height: 1.3rem; max-width: 400px; + word-wrap: break-word; padding-top: 1rem; position: absolute; top: 0; diff --git a/templates/about.tpl b/templates/about.tpl index 01ba0ab..12620c3 100644 --- a/templates/about.tpl +++ b/templates/about.tpl @@ -1,4 +1,12 @@ + +
%%Description%%
diff --git a/templates/layout.tpl b/templates/layout.tpl index a57c309..c36b2a5 100644 --- a/templates/layout.tpl +++ b/templates/layout.tpl @@ -12,14 +12,7 @@
- - +
%%Body%%