Skip to content

Commit 1e9e74e

Browse files
committed
style: aggressive font size and spacing reduction for compact layout
Typography reductions: - Body: 0.95rem to 0.875rem - H1: 2rem to 1.5rem (25% reduction!) - H2: 1.6rem to 1.3rem - H3: 1.3rem to 1.15rem - H4: 1.15rem to 1rem - Subtitle: 1rem to 0.9rem - Line-height: 1.7 to 1.65 Spacing reductions: - H1 margin-bottom: 1.5rem to 1rem - H2 margins: 3rem/1.25rem to 2rem/1rem - H3 margins: 2.5rem/1rem to 1.75rem/0.75rem - H4 margins: 2rem/0.75rem to 1.5rem/0.5rem - Paragraph margin: 1.25rem to 1rem - Subtitle margin: 2rem to 1.5rem - Post card padding: 2.5rem to 2rem - Post card margin: 3rem to 2rem - HR margin: 4rem to 3rem - Section margin: 3rem to 2rem - Main padding: 2rem/1.5rem to 1.5rem/1rem Mobile reductions: - H1: 1.75rem to 1.4rem - H2: 1.4rem to 1.2rem - H3: 1.2rem to 1.1rem - Post card padding: 1.5rem to 1.25rem - Post card margin: 2rem to 1.5rem - HR margin: 3rem to 2rem - Content padding: 1rem to 0.75rem Result: Much more compact, information-dense layout
1 parent 35bc02a commit 1e9e74e

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

docs/stylesheets/extra.css

Lines changed: 30 additions & 30 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: 0.95rem !important;
69-
line-height: 1.7 !important;
68+
font-size: 0.875rem !important;
69+
line-height: 1.65 !important;
7070
letter-spacing: 0.01em;
7171
}
7272

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

7777
/* Heading hierarchy */
7878
.md-typeset h1 {
79-
font-size: 2rem !important;
79+
font-size: 1.5rem !important;
8080
line-height: 1.3 !important;
8181
margin-top: 0 !important;
82-
margin-bottom: 1.5rem !important;
82+
margin-bottom: 1rem !important;
8383
font-weight: 700 !important;
8484
letter-spacing: -0.01em;
8585
}
8686

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

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

103103
.md-typeset h4 {
104-
font-size: 1.15rem !important;
104+
font-size: 1rem !important;
105105
line-height: 1.45 !important;
106-
margin-top: 2rem !important;
107-
margin-bottom: 0.75rem !important;
106+
margin-top: 1.5rem !important;
107+
margin-bottom: 0.5rem !important;
108108
font-weight: 700 !important;
109109
}
110110

111111
/* Paragraph spacing */
112112
.md-typeset p {
113-
margin-bottom: 1.25rem !important;
114-
line-height: 1.7 !important;
113+
margin-bottom: 1rem !important;
114+
line-height: 1.65 !important;
115115
}
116116

117117
/* Subtitle spacing (first paragraph after h1) */
118118
.md-typeset h1 + p {
119119
margin-top: 0.5rem !important;
120-
font-size: 1rem !important;
120+
font-size: 0.9rem !important;
121121
color: var(--md-default-fg-color--light);
122-
margin-bottom: 2rem !important;
122+
margin-bottom: 1.5rem !important;
123123
}
124124

125125
/* Remove default top margin from first header */
@@ -152,11 +152,11 @@ code {
152152
/* Main content spacing */
153153
.md-main__inner {
154154
margin-top: 1rem !important;
155-
padding-top: 2rem !important;
155+
padding-top: 1.5rem !important;
156156
}
157157

158158
.md-content {
159-
padding-top: 1.5rem !important;
159+
padding-top: 1rem !important;
160160
}
161161

162162
/* Hide the logo in the header */
@@ -172,7 +172,7 @@ code {
172172
.md-typeset hr {
173173
border: none;
174174
border-top: 3px solid var(--blog-border);
175-
margin: 4rem 0 !important;
175+
margin: 3rem 0 !important;
176176
position: relative;
177177
opacity: 1;
178178
}
@@ -192,7 +192,7 @@ code {
192192

193193
/* Section spacing */
194194
.md-typeset section {
195-
margin-bottom: 3rem;
195+
margin-bottom: 2rem;
196196
}
197197

198198
/* ========================================
@@ -253,8 +253,8 @@ code {
253253
background: var(--blog-bg-card);
254254
border: 2px solid var(--blog-border);
255255
border-radius: 8px;
256-
padding: 2.5rem;
257-
margin-bottom: 3rem;
256+
padding: 2rem;
257+
margin-bottom: 2rem;
258258
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
259259
box-shadow: var(--blog-shadow-sm);
260260
}
@@ -499,8 +499,8 @@ button:focus-visible {
499499
@media (max-width: 768px) {
500500
/* Reduce padding on mobile */
501501
.md-post {
502-
padding: 1.5rem;
503-
margin-bottom: 2rem;
502+
padding: 1.25rem;
503+
margin-bottom: 1.5rem;
504504
}
505505

506506
/* Adjust metadata layout */
@@ -511,27 +511,27 @@ button:focus-visible {
511511

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

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

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

525525
/* Reduce spacing */
526526
.md-typeset hr {
527-
margin: 3rem 0 !important;
527+
margin: 2rem 0 !important;
528528
}
529529

530530
.md-main__inner {
531531
padding-top: 1rem !important;
532532
}
533533

534534
.md-content {
535-
padding-top: 1rem !important;
535+
padding-top: 0.75rem !important;
536536
}
537537
}

0 commit comments

Comments
 (0)