Adjustning header, heading and img margins.

This commit is contained in:
Fredrik Jonsson 2023-11-18 16:55:47 +01:00
commit d33769b257

View file

@ -15,13 +15,18 @@ h5,
%h5,
h6,
%h6 {
@include margin-block(1 0.375, 'em');
@include margin-block(1 .3, 'em');
color: var(--color-headings);
font-family: var(--ff-headings);
font-weight: var(--fw-headings);
line-height: var(--heading-line-height);
text-wrap: balance;
// Smaller margin when a headeing is right after another heading.
& + & {
@include margin-block-start(.5, 'em');
}
// Set max text line width in main for readability.
.main & {
max-width: var(--max-line-width);