From 12578a57692a72239603d1025782b72e9a0f0a60 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 25 Sep 2020 23:19:21 +0200 Subject: [PATCH] fix(widgets): add margin bottom for last widget --- assets/scss/partials/sidebar.scss | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/assets/scss/partials/sidebar.scss b/assets/scss/partials/sidebar.scss index ea955f2..ce546fa 100644 --- a/assets/scss/partials/sidebar.scss +++ b/assets/scss/partials/sidebar.scss @@ -42,7 +42,7 @@ @media (min-width: $on-tablet) { margin-left: 1%; - padding-top: 50px; + padding-top: var(--main-top-padding); } } @@ -117,16 +117,15 @@ .sidebar { .widget { - &:not(:last-of-type) { - margin-bottom: var(--section-separation); - &:after { - content: ""; - width: 100px; - height: 2px; - background-color: var(--body-text-color); - display: block; - margin-top: var(--section-separation); - } + margin-bottom: var(--section-separation); + + &:not(:last-of-type):after { + content: ""; + width: 100px; + height: 2px; + background-color: var(--body-text-color); + display: block; + margin-top: var(--section-separation); } } }