From 0a1ef0e9090324814cf7fe2122e78c74d3bb0819 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Wed, 22 May 2024 15:57:11 +0800 Subject: [PATCH] Prevent changelog specific heading margin from applying to other pages --- src/assets/css/general.css | 5 ----- src/changelogs/changelogs.njk | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/assets/css/general.css b/src/assets/css/general.css index bc450120..15554725 100644 --- a/src/assets/css/general.css +++ b/src/assets/css/general.css @@ -41,11 +41,6 @@ h3:has(+ *[class]:not(.heading-anchor)), .h3:has(+ *[class]) { margin-bottom: 0.5em; } -* + h2, -* + h3 { - margin-top: 1.5em; -} - hr { border: 0.05rem solid var(--clr-title-border); } diff --git a/src/changelogs/changelogs.njk b/src/changelogs/changelogs.njk index 66453458..fe3ea5ac 100644 --- a/src/changelogs/changelogs.njk +++ b/src/changelogs/changelogs.njk @@ -23,3 +23,10 @@ eleventyNavigation: {%- endfor %} {% include "global/pagination-oldnew.njk" %} + +