From 9de0eeddea5e1ee629f8584dcef41e481db63ff1 Mon Sep 17 00:00:00 2001 From: sthag Date: Mon, 29 Sep 2025 20:39:41 +0200 Subject: [PATCH] feat: Add formatting for hgroup --- elements/_sections.scss | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/elements/_sections.scss b/elements/_sections.scss index 9963f22..f1fbfaa 100644 --- a/elements/_sections.scss +++ b/elements/_sections.scss @@ -16,6 +16,7 @@ html { // nav // aside // h1-h6 +// hgroup // header // footer @@ -174,15 +175,12 @@ h1 { margin: $space_large 0 $space_small; } -h1+h1 { - margin-top: 0; -} - h2 { @extend %head_2; margin: $space_medium 0 $space_small; } +h1+h1, h2+h2 { margin-top: 0; } @@ -212,6 +210,19 @@ h6 { font-weight: bold; } +hgroup { + + &>h1, + &>h2 { + margin-bottom: 0; + + } + + &>p { + margin-bottom: $space_small; + } +} + // Header // ----------------------------------------------------------------------------- header {