Move content closer up to related header.

This commit is contained in:
Fredrik Jonsson 2023-11-11 17:18:22 +01:00
commit c4a6200af3

View file

@ -28,6 +28,26 @@ h6,
}
}
// Move content closer up to related header.
h2,
%h2,
h3,
%h3,
h4,
%h4,
h5,
%h5,
h6,
%h6 {
& + :is(p, ul, ol) {
@include margin-block-start(0.375);
}
& + & {
@include margin-block-start(0.5);
}
}
h1,
%h1 {
// h1 only on top of page so different margins.