Skip to content

Commit ebadd01

Browse files
authored
chore: Adjust headline sizes (#131)
h4 and below were becoming really small, even smaller than the normal paragraphs. This commit adds a linear scale from h2 to h6.
1 parent 9404712 commit ebadd01

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/css/doc.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,28 @@
7676
font-weight: var(--alt-heading-font-weight);
7777
}
7878

79+
/* Custom font sizes, because h4 and down were getting really small */
80+
81+
.doc h2 {
82+
font-size: 1.7rem;
83+
}
84+
85+
.doc h3 {
86+
font-size: 1.5rem;
87+
}
88+
89+
.doc h4 {
90+
font-size: 1.3rem;
91+
}
92+
93+
.doc h5 {
94+
font-size: 1.1rem;
95+
}
96+
97+
.doc h6 {
98+
font-size: 0.9rem;
99+
}
100+
79101
.doc h1 code,
80102
.doc h2 code,
81103
.doc h3 code,

0 commit comments

Comments
 (0)