From d2fb98b3e57f2f6c3fc3816551cd0721731adf40 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 6 Oct 2022 02:01:17 +0800 Subject: [PATCH] perf(posts): improve core block bottom padding Fixes the relative position between the bottoms of the core-wrapper and the ToC (caused by b405a58) --- _layouts/page.html | 4 ++-- _sass/addon/commons.scss | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_layouts/page.html b/_layouts/page.html index d5597fb..d034779 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -9,7 +9,7 @@ layout: default
-
+
{% capture _content %} @@ -55,7 +55,7 @@ layout: default {% if layout.tail_includes %}
-
+
{% for _include in layout.tail_includes %} {% assign _include_path = _include | append: '.html' %} {% include {{ _include_path }} %} diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index e136d66..63ec6df 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -1049,6 +1049,10 @@ $sidebar-display: "sidebar-display"; @extend %no-bottom-border; } } + + @at-root .row:only-child > #{&} { + padding-bottom: 3rem; + } } #mask {