diff options
author | Nicholas Johnson <> | 2025-07-27 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <> | 2025-07-27 00:00:00 +0000 |
commit | 59a8f3f8c0d992d40fbd7bf3b620e9d5218b4b23ee49676abfd4dbc4d8e57834 (patch) | |
tree | 8f6e08e7351d3ce3ef0f1b46a7c41155b7eb5b09a1ff2c3c4deabbde3b21b6a9 | |
parent | 36199a037c6324e86ca1f0f6d0c43e38fa9ffbd1467de13e29aea7d59cdee9cc (diff) | |
download | hugo-theme-journal-59a8f3f8c0d992d40fbd7bf3b620e9d5218b4b23ee49676abfd4dbc4d8e57834.tar.gz hugo-theme-journal-59a8f3f8c0d992d40fbd7bf3b620e9d5218b4b23ee49676abfd4dbc4d8e57834.zip |
Remove extra space created by Flexbox usage
-rw-r--r-- | assets/static/css/style.css | 14 | ||||
-rw-r--r-- | 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 @@ <html lang="{{ $.Site.Language }}"> {{ partial "head.html" . }} <body class="body"> - {{ partial "header.html" . }} - {{ block "main" . }}{{ end }} + <div class="base"> + {{ partial "header.html" . }} + {{ block "main" . }}{{ end }} + </div> {{ partial "footer.html" . }} </body> </html>
\ No newline at end of file |