From 8e8d35013189ff3aef9647a09becea10037eb646 Mon Sep 17 00:00:00 2001 From: Liam Johnston Date: Thu, 4 Jul 2024 12:43:20 +1200 Subject: [PATCH] Fix outdented headings for migrated content. --- cdhweb/static_src/global/layout/streamfields.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cdhweb/static_src/global/layout/streamfields.scss b/cdhweb/static_src/global/layout/streamfields.scss index 6f0e19ef..69927684 100644 --- a/cdhweb/static_src/global/layout/streamfields.scss +++ b/cdhweb/static_src/global/layout/streamfields.scss @@ -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)); }