Skip to content

Commit

Permalink
card with section heading spacing (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardscull authored Oct 2, 2024
1 parent 660520a commit a3f9121
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 a3f9121

Please sign in to comment.