Prevent changelog specific heading margin from applying to other pages

This commit is contained in:
Helen Chong 2024-05-22 15:57:11 +08:00
parent 073fe99270
commit 0a1ef0e909
2 changed files with 7 additions and 5 deletions

View File

@ -41,11 +41,6 @@ h3:has(+ *[class]:not(.heading-anchor)), .h3:has(+ *[class]) {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
* + h2,
* + h3 {
margin-top: 1.5em;
}
hr { hr {
border: 0.05rem solid var(--clr-title-border); border: 0.05rem solid var(--clr-title-border);
} }

View File

@ -23,3 +23,10 @@ eleventyNavigation:
{%- endfor %} {%- endfor %}
{% include "global/pagination-oldnew.njk" %} {% include "global/pagination-oldnew.njk" %}
<style>
* + h2,
* + h3 {
margin-top: 1.5em;
}
</style>