Refined heading margins

This commit is contained in:
Tetrakern 2024-10-14 00:53:24 +02:00
parent 3a61840b30
commit 33c72f2f8a
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -111,11 +111,11 @@ a.modal-tooltip {
:where(h1, h2, h3, h4, h5, h6) {
&:where(:not(:first-child, .cell-title, .card__title, .post__title)) {
margin-top: 2rem;
margin-top: max(2.25rem, var(--paragraph-spacing) - 0.5rem);
}
&:where(:not(:last-child, .cell-title, .card__title, .post__title)) {
margin-bottom: var(--heading-margin-bottom, unquote('max(1.25rem, var(--paragraph-spacing) - 0.25rem)'));
margin-bottom: var(--heading-margin-bottom, unquote('min(max(1.25rem, var(--paragraph-spacing) - 0.75rem), 2rem)'));
}
}