From e73e39bf67e837298718bf0136904a0ca4909fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Piasecki?= Date: Thu, 14 May 2026 22:15:37 +0200 Subject: [PATCH] headings react to elements above with a extra margin --- scss/westgate/_wiki-prose.scss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scss/westgate/_wiki-prose.scss b/scss/westgate/_wiki-prose.scss index 80054b4..624a4ce 100644 --- a/scss/westgate/_wiki-prose.scss +++ b/scss/westgate/_wiki-prose.scss @@ -399,15 +399,15 @@ color: #efe6d7 !important; } -.westgate-wiki .wiki-article-prose p + :where(h1, h2), -.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content p + :where(h1, h2), -.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content p + :where(h1, h2) { +.westgate-wiki .wiki-article-prose :where(h1, h2):not(:first-child), +.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h1, h2):not(:first-child), +.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h1, h2):not(:first-child) { margin-block-start: 1.05em; } -.westgate-wiki .wiki-article-prose p + :where(h3, h4), -.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content p + :where(h3, h4), -.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content p + :where(h3, h4) { +.westgate-wiki .wiki-article-prose :where(h3, h4):not(:first-child), +.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h3, h4):not(:first-child), +.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h3, h4):not(:first-child) { margin-block-start: 0.85em; }