fix: make .headings an alternative only when classes are enabled

This commit is contained in:
AmiralBl3ndic 2021-12-29 19:38:23 +01:00
parent ed120df03b
commit 56c310fe99
17 changed files with 62 additions and 32 deletions

View file

@ -181,8 +181,7 @@ ul {
}
// Heading group
hgroup,
.headings {
hgroup {
margin-bottom: var(--typography-spacing-vertical);
> * {
@ -197,6 +196,23 @@ hgroup,
}
}
@if $enable-classes {
.headings {
margin-bottom: var(--typography-spacing-vertical);
> * {
margin-bottom: 0;
}
> *:last-child {
--color: var(--muted-color);
--font-weight: unset;
font-size: 1rem;
font-family: unset;
}
}
}
// Paragraphs
p {
margin-bottom: var(--typography-spacing-vertical);