From 59a8f3f8c0d992d40fbd7bf3b620e9d5218b4b23ee49676abfd4dbc4d8e57834 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sun, 27 Jul 2025 00:00:00 +0000 Subject: Remove extra space created by Flexbox usage --- assets/static/css/style.css | 14 ++++++++++---- layouts/baseof.html | 6 ++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/assets/static/css/style.css b/assets/static/css/style.css index 7bb513b..b902a5c 100644 --- a/assets/static/css/style.css +++ b/assets/static/css/style.css @@ -87,6 +87,16 @@ blockquote, ol, p, pre, ul, .highlight { margin-top: 1.0em; } +.base { + flex-grow: 1; +} + +/* remove extra space caused by Flexbox's lack of margin collapsing */ +article:last-child header p, +.main > :last-child { + margin-bottom: 0; +} + .body { background-color: black; box-sizing: border-box; @@ -162,7 +172,3 @@ blockquote, ol, p, pre, ul, .highlight { overflow-y: hidden; padding: 0; } - -.main { - flex-grow: 1; -} diff --git a/layouts/baseof.html b/layouts/baseof.html index a36bd49..fbe1fa1 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -2,8 +2,10 @@ {{ partial "head.html" . }} - {{ partial "header.html" . }} - {{ block "main" . }}{{ end }} +
+ {{ partial "header.html" . }} + {{ block "main" . }}{{ end }} +
{{ partial "footer.html" . }} \ No newline at end of file -- cgit v1.2.3