Skip to content

Commit

Permalink
Merge pull request #132 from springload/fix/outdented-headings-for-mi…
Browse files Browse the repository at this point in the history
…grated-content

Fix outdented headings for migrated content
  • Loading branch information
liamjohnston authored Jul 4, 2024
2 parents d2ec782 + 8e8d350 commit 7a7f355
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cdhweb/static_src/global/layout/streamfields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@
// Outdented components.
// Tile block title is excluded because it needs to be wrapped in another
// container to allow the "see all" link to display in line with it.
:where(.block--heading, .block--accordion > h2, .block--video > h2) {
// (Note: `.block--paragraph > h2` can't happen in the new CMS fields,
// but may happen with migrated content.
:where(
.block--heading,
.block--accordion > h2,
.block--video > h2,
.block--paragraph > h2
) {
@include md {
margin-left: calc(-1 * var(--content-outdent));
}
Expand Down

0 comments on commit 7a7f355

Please sign in to comment.