Skip to content

Commit

Permalink
example css for styling colorCard
Browse files Browse the repository at this point in the history
  • Loading branch information
yantantether authored and aircwo committed Sep 5, 2024
1 parent 95623cb commit fc8d6d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/_components/_all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
@import "appFooter/footer";
@import "appPagination/pagination";
@import "related/related";
@import "colorBlock/colorBlock";
@import "colorBlock/colorBlock";
@import "colorCard/colorCard";
4 changes: 4 additions & 0 deletions lib/_components/colorCard/_colorCard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.colorCard > dl,dt,dd {
padding: 0;
margin: 0;
}
2 changes: 1 addition & 1 deletion lib/_components/colorCard/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set headingLevel %}
{{ params.headingLevel if params.headingLevel else 'h2' }}
{% endset %}
<div class="card">
<div class="card colorCard">
{% if params.heading %}
<{{headingLevel}} class="nhsuk-card__heading nhsuk-heading-m">
{{ params.heading }}
Expand Down

0 comments on commit fc8d6d5

Please sign in to comment.