From 94b250672f8376d213a4be0cd162e44d256a7b2d Mon Sep 17 00:00:00 2001 From: Dennis Erdmann Date: Thu, 19 Jan 2023 18:04:39 +0100 Subject: [PATCH] fix helper classes for article --- skeleton/files/theme/scss/trumps/_helper.scss | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/skeleton/files/theme/scss/trumps/_helper.scss b/skeleton/files/theme/scss/trumps/_helper.scss index 99c183d..0640264 100644 --- a/skeleton/files/theme/scss/trumps/_helper.scss +++ b/skeleton/files/theme/scss/trumps/_helper.scss @@ -40,15 +40,25 @@ margin-bottom: calc(#{$i} * var(--base-spacing-unit)); } - .p-t-#{$i}, - .mod_article.p-t-#{$i} { + .p-t-#{$i} { padding-top: calc(#{$i} * var(--base-spacing-unit)); } - .p-b-#{$i}, - .mod_article.p-b-#{$i} { + .p-b-#{$i} { padding-bottom: calc(#{$i} * var(--base-spacing-unit)); } + + .mod_article.p-t-#{$i} { + --article-spacing-top: calc(#{$i} * var(--base-spacing-unit)); + + padding-top: 0; + } + + .mod_article.p-b-#{$i} { + --article-spacing-bottom: calc(#{$i} * var(--base-spacing-unit)); + + padding-bottom: 0; + } }