Skip to content

Commit

Permalink
perf(posts): improve core block bottom padding
Browse files Browse the repository at this point in the history
Fixes the relative position between the bottoms of the core-wrapper and the ToC (caused by b405a58)
  • Loading branch information
cotes2020 committed Oct 5, 2022
1 parent 39da11e commit d2fb98b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="row">

<!-- core -->
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pr-xl-4 pb-5">
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pr-xl-4">
<div class="post pl-1 pr-1 pl-md-2 pr-md-2">

{% capture _content %}
Expand Down Expand Up @@ -55,7 +55,7 @@ <h1 class="dynamic-title">
<!-- tail -->
{% if layout.tail_includes %}
<div class="row">
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-3 pr-3 pr-xl-4">
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-3 pr-3 pr-xl-4 mt-5">
{% for _include in layout.tail_includes %}
{% assign _include_path = _include | append: '.html' %}
{% include {{ _include_path }} %}
Expand Down
4 changes: 4 additions & 0 deletions _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,10 @@ $sidebar-display: "sidebar-display";
@extend %no-bottom-border;
}
}

@at-root .row:only-child > #{&} {
padding-bottom: 3rem;
}
}

#mask {
Expand Down

0 comments on commit d2fb98b

Please sign in to comment.