Skip to content

Commit 35bc02a

Browse files
committed
style: reduce font sizes for better readability
- Body text: 1.05rem to 0.95rem - H1: 2.5rem to 2rem - H2: 2rem to 1.6rem - H3: 1.5rem to 1.3rem - H4: 1.25rem to 1.15rem - Subtitle: 1.1rem to 1rem - Mobile H1: 2rem to 1.75rem - Mobile H2: 1.75rem to 1.4rem - Mobile H3: 1.35rem to 1.2rem - Line heights adjusted proportionally
1 parent 74961df commit 35bc02a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/stylesheets/extra.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ body {
6565
.md-typeset {
6666
font-family: "Courier Prime", monospace !important;
6767
font-weight: 400 !important;
68-
font-size: 1.05rem !important;
69-
line-height: 1.75 !important;
68+
font-size: 0.95rem !important;
69+
line-height: 1.7 !important;
7070
letter-spacing: 0.01em;
7171
}
7272

@@ -76,7 +76,7 @@ code {
7676

7777
/* Heading hierarchy */
7878
.md-typeset h1 {
79-
font-size: 2.5rem !important;
79+
font-size: 2rem !important;
8080
line-height: 1.3 !important;
8181
margin-top: 0 !important;
8282
margin-bottom: 1.5rem !important;
@@ -85,23 +85,23 @@ code {
8585
}
8686

8787
.md-typeset h2 {
88-
font-size: 2rem !important;
88+
font-size: 1.6rem !important;
8989
line-height: 1.35 !important;
9090
margin-top: 3rem !important;
9191
margin-bottom: 1.25rem !important;
9292
font-weight: 700 !important;
9393
}
9494

9595
.md-typeset h3 {
96-
font-size: 1.5rem !important;
96+
font-size: 1.3rem !important;
9797
line-height: 1.4 !important;
9898
margin-top: 2.5rem !important;
9999
margin-bottom: 1rem !important;
100100
font-weight: 700 !important;
101101
}
102102

103103
.md-typeset h4 {
104-
font-size: 1.25rem !important;
104+
font-size: 1.15rem !important;
105105
line-height: 1.45 !important;
106106
margin-top: 2rem !important;
107107
margin-bottom: 0.75rem !important;
@@ -111,13 +111,13 @@ code {
111111
/* Paragraph spacing */
112112
.md-typeset p {
113113
margin-bottom: 1.25rem !important;
114-
line-height: 1.75 !important;
114+
line-height: 1.7 !important;
115115
}
116116

117117
/* Subtitle spacing (first paragraph after h1) */
118118
.md-typeset h1 + p {
119119
margin-top: 0.5rem !important;
120-
font-size: 1.1rem !important;
120+
font-size: 1rem !important;
121121
color: var(--md-default-fg-color--light);
122122
margin-bottom: 2rem !important;
123123
}
@@ -511,15 +511,15 @@ button:focus-visible {
511511

512512
/* Adjust typography for mobile */
513513
.md-typeset h1 {
514-
font-size: 2rem !important;
514+
font-size: 1.75rem !important;
515515
}
516516

517517
.md-typeset h2 {
518-
font-size: 1.75rem !important;
518+
font-size: 1.4rem !important;
519519
}
520520

521521
.md-typeset h3 {
522-
font-size: 1.35rem !important;
522+
font-size: 1.2rem !important;
523523
}
524524

525525
/* Reduce spacing */

0 commit comments

Comments
 (0)