Skip to content

Commit d8e6468

Browse files
committed
Add a full width utility class
1 parent 0ef6260 commit d8e6468

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

app/styles/application.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,15 @@ $govuk-font-family: Frutiger W01, arial, sans-serif;
7272
video {
7373
max-width: 100%;
7474
}
75+
76+
// Class to allow full-width, breaking out of the grid
77+
// add to a lone element (ie img) or a container (ie figure)
78+
.app-media--full-width {
79+
width: 92vw;
80+
max-width: 960px;
81+
82+
figcaption {
83+
max-width: 44em;
84+
}
85+
}
7586
}

0 commit comments

Comments
 (0)