Skip to content

Commit

Permalink
summary list styling
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardScull committed Jul 18, 2024
1 parent f9d751a commit 95b5a79
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import "components/card/card";
@import "components/tag/tag";
@import "components/timeline/timeline";
@import "components/summary-list";

// utilities
@import "utilities/truncate";
34 changes: 34 additions & 0 deletions src/components/summary-list/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.nhsapp-summary-list {
// Override the NHS UK Frontend summary list component to display two columns on mobile
&--two-columns-mobile {
@include mq($until: tablet) {
display: table;
table-layout: fixed;
width: 100%;
}

.nhsuk-summary-list__key,
.nhsuk-summary-list__value,
.nhsuk-summary-list__actions {
border-bottom: 1px solid $nhsuk-border-color;
display: table-cell;
padding-bottom: nhsuk-spacing(2);
padding-right: nhsuk-spacing(4);
padding-top: nhsuk-spacing(2);
}

.nhsuk-summary-list__row {
display: table-row;
}

.nhsuk-summary-list__key {
@include mq($until: tablet) {
width: 50%;
}
}

.nhsuk-summary-list__value {
width: 50%;
}
}
}

0 comments on commit 95b5a79

Please sign in to comment.