From 60524c44afa59b975ff8c8a818d4cd5c336a9f72 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Mon, 1 Apr 2024 18:26:29 +0100 Subject: [PATCH] fix(frontend): adjust heading spacing --- packages/frontend/styles/scopes/flow.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/frontend/styles/scopes/flow.css b/packages/frontend/styles/scopes/flow.css index 1f0e798f3..3f4829926 100644 --- a/packages/frontend/styles/scopes/flow.css +++ b/packages/frontend/styles/scopes/flow.css @@ -18,18 +18,19 @@ & h2:not([class]) { font: var(--font-heading); - margin-block-start: calc(var(--flow-space) * 2); } & h3:not([class]) { color: var(--color-primary-variant); font: var(--font-subhead); - margin-block-start: calc(var(--flow-space) * 2); } & h4:not([class]) { font: var(--font-label); - margin-block-start: calc(var(--flow-space) * 1.5); + } + + & *:has(+ h2, + h3, + h4):not([class]) { + margin-block-start: calc(var(--flow-space) * 2); } & :is(h2, h3, h4):not([class]) + *:not([class]) {