Skip to content

Commit c96751f

Browse files
authored
Merge pull request #129 from NHSDigital/full-width-component
Add a full width utility class for media
2 parents 3d7bf71 + ac8ab4c commit c96751f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/styles/application.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,15 @@
1313
.nhsuk-image__img {
1414
padding: nhsuk-spacing(2);
1515
}
16+
17+
// Class to allow full-width, breaking out of the grid
18+
// add to a lone element (ie img) or a container (ie figure)
19+
.app-media--full-width {
20+
width: 92vw;
21+
max-width: 960px;
22+
23+
figcaption {
24+
max-width: 44em;
25+
}
26+
}
1627
}

0 commit comments

Comments
 (0)