From 23754c1e7b7fcf895d0258d8c8681cc1ac2e3896 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:21:58 +1200 Subject: [PATCH] 2024 Theme: Fix course content and sidebar vertical alignment Closes https://github.com/WordPress/Learn/issues/2677 --- .../themes/pub/wporg-learn-2024/src/style/style.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss index 4156e1296..b9ebbc681 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss @@ -18,6 +18,17 @@ body { --wp-components-color-accent-darker-10: var(--wp--preset--color--deep-blueberry); } +// Parent theme sets top margin on these headings, but this breaks +// vertical alignment with the sidebar on the courses page +.wp-block-post-content { + > h2, + > h3 { + &:first-child { + margin-top: unset; + } + } +} + // Ensure nested elements in containers with rounded corners are cropped to match // eg. card featured images [style*="border-radius:2px"] {