From 5470617d9ab60a896d770585b23f6a1f5abc3c37 Mon Sep 17 00:00:00 2001 From: EdwardScull Date: Wed, 2 Oct 2024 09:20:44 +0100 Subject: [PATCH] card with section heading spacing --- src/components/card/_card.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/components/card/_card.scss b/src/components/card/_card.scss index d582168..c415961 100644 --- a/src/components/card/_card.scss +++ b/src/components/card/_card.scss @@ -136,3 +136,19 @@ $card-border-hover-color: $color_nhsuk-grey-3; } } } + +// combination styles for cards and headings together +.nhsapp-cards + .nhsapp-section-heading, +.nhsapp-card + .nhsapp-section-heading, +.nhsapp-card + .nhsuk-heading-l { + @include nhsuk-responsive-padding(4, "top"); +} + +.nhsapp-card + .nhsuk-heading-m, +.nhsapp-card + .nhsuk-heading-s { + padding-top: nhsuk-spacing(1); + + @include mq($from: tablet) { + padding-top: nhsuk-spacing(2); + } +}