From 1c77b8f9f2bbcaa74dc4a1242d74ad14d9e7d2e9 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 28 Nov 2019 03:58:31 +0800 Subject: [PATCH] Fixed post content min-height. --- _layouts/default.html | 2 +- _layouts/post.html | 4 ++-- assets/css/main.scss | 16 +++++++++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index e59504a..68b08a1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,7 +14,7 @@ layout: compress -
+
{% include topbar.html %}
diff --git a/_layouts/post.html b/_layouts/post.html index 4b13787..0f0392a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -5,7 +5,7 @@ layout: default # MIT Licensed --- -
+
{% include date-format.html %}
@@ -82,7 +82,7 @@ layout: default
-
+
diff --git a/assets/css/main.scss b/assets/css/main.scss index 56822d3..13bb3b1 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -358,7 +358,13 @@ body { } #main>div.row:first-child>div:first-child { - min-height: calc(100vh - 3rem - 6rem); /* 3rem for topbar, 6rem for footer */ + /* 3rem for topbar, 6rem for footer */ + min-height: calc(100vh - 3rem - 6rem); +} + +#post-wrap { + /* 350px for post extended block */ + min-height: calc(100vh - 3rem - 6rem - 470px) !important; } #topbar.row, @@ -806,12 +812,16 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ @media all and (max-width: 576px) { + #main-wrap { + padding-bottom: 10rem; /* footer height */ + } + #main>div.row:first-child>div:first-child { min-height: calc(100vh - 3rem - 10rem); /* topbar is 3rem and footer is 10rem */ } - #main-wrap { - padding-bottom: 10rem; /* footer height */ + #post-wrap { + min-height: calc(100vh - 3rem - 10rem - 470px) !important; } #avatar>a {