mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 11:49:13 -04:00
Most of these are cut-and-paste'd from the GOVUK metadata component: https://components.publishing.service.gov.uk/component-guide/metadata ...but stripped back to only include what we need and a optional suffix paragraph added. Links to styles and ERB template https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss https://github.com/alphagov/govuk_publishing_components/blob/master/app/views/govuk_publishing_components/components/_metadata.html.erb Also adds it to the accessibility statement as an example and updates the test that checks any updates bump the date.
44 lines
847 B
SCSS
44 lines
847 B
SCSS
.content-metadata {
|
|
@include govuk-font(16);
|
|
@include govuk-clearfix;
|
|
@include govuk-responsive-margin(5, "bottom");
|
|
color: $govuk-text-colour;
|
|
margin-top: 15px;
|
|
|
|
.content-metadata__term,
|
|
.content-metadata__definition {
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.content-metadata__term {
|
|
margin-top: .5em;
|
|
|
|
@include govuk-media-query($from: tablet) {
|
|
box-sizing: border-box;
|
|
float: left;
|
|
clear: left;
|
|
padding-right: govuk-spacing(1);
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.content-metadata__definition {
|
|
margin: 0;
|
|
|
|
@include govuk-media-query($from: tablet) {
|
|
&:not(:last-of-type) {
|
|
margin-bottom: govuk-spacing(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-metadata__suffix {
|
|
margin-top: 0.628em;
|
|
margin-bottom: 0;
|
|
|
|
@include govuk-media-query($from: tablet) {
|
|
margin-top: 6px;
|
|
}
|
|
}
|
|
}
|