From 0f957c9bffda752fe8a875f5f7e94c1bd223f866 Mon Sep 17 00:00:00 2001 From: spi <22529093+spi43984@users.noreply.github.com> Date: Sat, 7 Oct 2023 01:32:19 +0200 Subject: [PATCH] remove white space before and after footer on single pages (#159) remove white space before and after footer on single pages with content shorter than would fit into browser window --- assets/css/theme.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/css/theme.scss b/assets/css/theme.scss index d380f82..3c03cbc 100644 --- a/assets/css/theme.scss +++ b/assets/css/theme.scss @@ -220,12 +220,17 @@ a.fn-item { background-color: var(--single-page-bg-color); color: var(--single-page-text-color); + // to remove the white space after the footer on pages shorter + // than actually would fit into the browser window + min-height: calc(100vh - 2em); // Tweak the .post wrapper style .post { margin-top: 0; border-bottom: none; padding-bottom: 0; + // to account for the margin of content elements + padding-bottom: 1em; } // Kill that stylish little circle that was on the border @@ -267,4 +272,4 @@ a.fn-item { .site-footer a:hover { color: var(--sticky-menu-text-color); -} \ No newline at end of file +}