Skip to content

Commit

Permalink
card with section heading spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardScull committed Oct 2, 2024
1 parent daa268c commit 5470617
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 5470617

Please sign in to comment.