Skip to content

Commit 5d1f765

Browse files
committed
Fixed post content min-height.
1 parent 6f8c965 commit 5d1f765

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div id="sidebar" class="d-flex flex-column">
1515
{% include sidebar.html %}
1616
</div>
17-
<div id="main-wrap">
17+
<div id="main-wrap" class="bg-white">
1818
{% include topbar.html %}
1919
<div id="main">
2020

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# MIT Licensed
66
---
77

8-
<div class="row bg-white">
8+
<div class="row">
99
{% include date-format.html %}
1010

1111
<div id="post-wrap" class="col-12 col-lg-11 col-xl-8">
@@ -82,7 +82,7 @@ <h1 data-toc-skip>{{ page.title }}</h1>
8282

8383
</div> <!-- .row -->
8484

85-
<div class="row bg-white">
85+
<div class="row">
8686
<div id="post-extend-wrap" class="col-12 col-lg-11 col-xl-8">
8787

8888
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">

assets/css/main.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,13 @@ body {
358358
}
359359

360360
#main>div.row:first-child>div:first-child {
361-
min-height: calc(100vh - 3rem - 6rem); /* 3rem for topbar, 6rem for footer */
361+
/* 3rem for topbar, 6rem for footer */
362+
min-height: calc(100vh - 3rem - 6rem);
363+
}
364+
365+
#post-wrap {
366+
/* 350px for post extended block */
367+
min-height: calc(100vh - 3rem - 6rem - 470px) !important;
362368
}
363369

364370
#topbar.row,
@@ -806,12 +812,16 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */
806812

807813
@media all and (max-width: 576px) {
808814

815+
#main-wrap {
816+
padding-bottom: 10rem; /* footer height */
817+
}
818+
809819
#main>div.row:first-child>div:first-child {
810820
min-height: calc(100vh - 3rem - 10rem); /* topbar is 3rem and footer is 10rem */
811821
}
812822

813-
#main-wrap {
814-
padding-bottom: 10rem; /* footer height */
823+
#post-wrap {
824+
min-height: calc(100vh - 3rem - 10rem - 470px) !important;
815825
}
816826

817827
#avatar>a {

0 commit comments

Comments
 (0)