From d5e241c1968607adc7632c3d21b6151241b13621 Mon Sep 17 00:00:00 2001 From: Steven Dufresne Date: Fri, 13 Sep 2024 10:54:22 +0900 Subject: [PATCH] Increase spacing for h3. (#153) --- .../themes/wporg-parent-2021/sass/base/_elements.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss b/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss index 40c93546..f5900f65 100644 --- a/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss +++ b/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss @@ -178,11 +178,13 @@ input[type="checkbox"] + label { // Headings. // Add margin to default h2 & h3 (no font size changes). -.wp-site-blocks h2:not([class*="-font-size"], [style*="font-size"]) { +.wp-site-blocks h2:not([class*="-font-size"], [style*="font-size"]), +.wp-site-blocks h3:not([class*="-font-size"], [style*="font-size"]) { margin-top: var(--wp--preset--spacing--40); } -.wp-site-blocks h3:not([class*="-font-size"], [style*="font-size"]) { +// Make spacing smaller for h3 if preceded by h2. +.wp-site-blocks h2 + .wp-site-blocks h3:not([class*="-font-size"], [style*="font-size"]) { margin-top: var(--wp--preset--spacing--30); }