Use viewport unit to scale base font size
Use rems for font sizes and margin/padding
This commit is contained in:
@@ -1,29 +1,37 @@
|
||||
.content h1 {
|
||||
font-family: var(--heading-font-family);
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.content h2 {
|
||||
font-family: var(--heading-font-family);
|
||||
font-size: 1.6rem;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.content h3 {
|
||||
font-family: var(--heading-font-family);
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.content h1,
|
||||
.content h2,
|
||||
.content h3,
|
||||
.content h4,
|
||||
.content h5,
|
||||
.content h6 {
|
||||
font-family: var(--heading-font-family);
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
font-size: var(--size-heading-1);
|
||||
}
|
||||
|
||||
.content h2 {
|
||||
font-size: var(--size-heading-2);
|
||||
}
|
||||
|
||||
.content h3 {
|
||||
font-size: var(--size-heading-3);
|
||||
}
|
||||
|
||||
.content h4 {
|
||||
font-size: var(--size-heading-4);
|
||||
}
|
||||
|
||||
.content h5 {
|
||||
font-size: var(--size-heading-5);
|
||||
}
|
||||
|
||||
.content h6 {
|
||||
font-size: var(--size-heading-6);
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user