diff --git a/assets/sass/_theme/design-system/layout.sass b/assets/sass/_theme/design-system/layout.sass index d3173bcbc..66513dee5 100644 --- a/assets/sass/_theme/design-system/layout.sass +++ b/assets/sass/_theme/design-system/layout.sass @@ -28,7 +28,6 @@ body // * // transition-duration: 0s !important - main &:not(.page-with-blocks) padding-bottom: $spacing-section-y diff --git a/assets/sass/_theme/design-system/typography.sass b/assets/sass/_theme/design-system/typography.sass index 7cb5b1f9c..6bfd11cbc 100644 --- a/assets/sass/_theme/design-system/typography.sass +++ b/assets/sass/_theme/design-system/typography.sass @@ -159,11 +159,17 @@ p small, .small @include small +@mixin rich-text + h1, h2, h3, h4, h5, h6, p + margin-top: 2em + &:first-child, meta + & + margin-top: 0 + +.rich-text + @include rich-text + [itemprop="articleBody"] - h1, h2, h3, h4, h5, h6 - margin-block-start: 2em - &:first-child, meta + & - margin-block-start: 0 + @include rich-text @mixin blockquote margin: 0 diff --git a/layouts/persons/single.html b/layouts/persons/single.html index 68ab530e2..586b4d1a0 100644 --- a/layouts/persons/single.html +++ b/layouts/persons/single.html @@ -35,7 +35,7 @@ {{ end }} {{ if (partial "GetTextFromHTML" .Content) }} -