-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This doesn't exist in the design system yet. See: alphagov/govuk-design-system-backlog#210 We need this component in the support interface. Add its styles from: https://github.com/x-govuk/govuk-prototype-components/tree/main/x-govuk/components/summary-card
- Loading branch information
1 parent
8c4b5e7
commit b75e067
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
.x-govuk-summary-card { | ||
border: 1px solid $govuk-border-colour; | ||
|
||
// Card header | ||
.x-govuk-summary-card__header { | ||
align-items: center; | ||
background-color: govuk-colour("light-grey"); | ||
padding: govuk-spacing(3); | ||
|
||
@include govuk-media-query($from: desktop) { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: start; | ||
} | ||
} | ||
|
||
.x-govuk-summary-card__title { | ||
@include govuk-font($size: 19); | ||
margin: 0; | ||
} | ||
|
||
.x-govuk-summary-card__meta { | ||
@include govuk-font($size: 16); | ||
display: block; | ||
margin: 0; | ||
} | ||
|
||
.x-govuk-summary-card__actions { | ||
@include govuk-font($size: 19); | ||
} | ||
|
||
.x-govuk-summary-card__actions-list { | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.x-govuk-summary-card__actions-list-item { | ||
display: block; | ||
white-space: nowrap; | ||
|
||
@include govuk-media-query($from: desktop) { | ||
display: inline-block; | ||
margin-left: govuk-spacing(2); | ||
text-align: right; | ||
} | ||
} | ||
|
||
.x-govuk-summary-card__actions-list-item:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
// Card body | ||
.x-govuk-summary-card__body { | ||
@include govuk-font($size: 19); | ||
padding: govuk-spacing(3); | ||
} | ||
|
||
.govuk-summary-list { | ||
margin-bottom: 0; | ||
} | ||
|
||
.govuk-summary-list__row:last-child, | ||
.govuk-summary-list__row:last-child > * { | ||
border-bottom: 0; | ||
} | ||
} | ||
|
||
.x-govuk-summary-card--large-title .x-govuk-summary-card__title { | ||
@include govuk-font($size: 24, $weight: bold); | ||
} | ||
|
||
@media print { | ||
.x-govuk-summary-card__header { | ||
break-inside: avoid; | ||
} | ||
|
||
.x-govuk-summary-card__actions { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters