Skip to content

Commit eb40f51

Browse files
authored
fix(layout): restore the margin bottom of the main area (#1047)
1 parent 3bd881d commit eb40f51

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

_includes/post-paginator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- The paginator for post list on HomgPage. -->
22

3-
<ul class="pagination align-items-center my-4 ps-lg-2">
3+
<ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
44
<!-- left arrow -->
55
{% if paginator.previous_page %}
66
{% assign prev_url = paginator.previous_page_path | relative_url %}

_layouts/page.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{% include lang.html %}
66
{% include origin-type.html %}
77

8-
<div class="row">
8+
{% if layout.tail_includes %}
9+
{% assign has_tail = true %}
10+
{% endif %}
11+
12+
<div class="row{% unless has_tail %} mb-5{% endunless %}">
913
<!-- core -->
1014
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
1115
{% capture padding %}
@@ -52,7 +56,7 @@ <h1 class="dynamic-title">
5256
</div>
5357

5458
<!-- tail -->
55-
{% if layout.tail_includes %}
59+
{% if has_tail %}
5660
<div class="row">
5761
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
5862
{% for _include in layout.tail_includes %}

_sass/addon/commons.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,10 +1113,6 @@ $btn-mb: 0.5rem;
11131113
@extend %no-bottom-border;
11141114
}
11151115
}
1116-
1117-
@at-root .row:only-child > #{&} {
1118-
padding-bottom: 3rem;
1119-
}
11201116
}
11211117

11221118
#mask {

_sass/layout/home.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#post-list {
66
margin-top: 2rem;
77

8-
&:only-child {
9-
margin-bottom: 3.75rem;
10-
}
11-
128
a.card-wrapper {
139
display: block;
1410

0 commit comments

Comments
 (0)