Skip to content

Commit ac8ab4c

Browse files
committed
Add a full width utility class
1 parent 3d7bf71 commit ac8ab4c

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)