Skip to content

Commit

Permalink
Add max width to prose content
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 23, 2023
1 parent c9a21ee commit 4f2fd10
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/document-header/_document-header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.app-document-header__metadata {
@include govuk-font($size: 16, $line-height: 1.5);
color: $govuk-secondary-text-colour;
max-width: 45em;
}

.app-document-header__description {
max-width: 30em;
}
23 changes: 23 additions & 0 deletions components/prose-scope/_prose-scope.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@
margin-bottom: 0;
}

h1 {
max-width: 15em;
}

h2 {
max-width: 20em;
}

h3 {
max-width: 30em;
}

h4,
h5,
h6,
p,
ul:not([class]),
ol,
img,
video {
max-width: 38em;
}

// Indicate abbreviations which have a title
abbr {
border-bottom: 1px dotted $govuk-secondary-text-colour;
Expand Down

0 comments on commit 4f2fd10

Please sign in to comment.