From ae15873837aeb36634c440878cd9c6e2f4213f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Piasecki?= Date: Thu, 14 May 2026 22:33:48 +0200 Subject: [PATCH] exclude figure, img from heading margins --- 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 624a4ce..bdfebe0 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 :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) { +.westgate-wiki .wiki-article-prose :where(:not(figure, img)) ~ :where(h1, h2), +.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(:not(figure, img)) ~ :where(h1, h2), +.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(:not(figure, img)) ~ :where(h1, h2) { margin-block-start: 1.05em; } -.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) { +.westgate-wiki .wiki-article-prose :where(:not(figure, img)) ~ :where(h3, h4), +.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(:not(figure, img)) ~ :where(h3, h4), +.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(:not(figure, img)) ~ :where(h3, h4) { margin-block-start: 0.85em; }