Skip to content

Commit 1407c60

Browse files
committed
style: ultra-compact layout with maximum density
Typography ultra-compact: - Body: 0.875rem to 0.85rem - H1: 1.5rem to 1.3rem (13% smaller) - H2: 1.3rem to 1.2rem - H3: 1.15rem to 1.1rem - H4: 1rem to 0.95rem - Subtitle: 0.9rem to 0.85rem - Line-height: 1.65 to 1.6 Spacing ultra-tight: - H1 margin: 1rem to 0.75rem - H2 margin-top: 2rem to 1.5rem - H3 margin-top: 1.75rem to 1.5rem - H4 margin-top: 1.5rem to 1.25rem - Paragraph margin: 1rem to 0.85rem - Subtitle margin: 1.5rem to 1.25rem - Post card padding: 2rem to 1.5rem - Post card margin: 2rem to 1.5rem - HR margin: 3rem to 2rem, border 3px to 2px - Section margin: 2rem to 1.5rem - Main padding: 1.5rem to 1rem - Main margin-top: 1rem to 0.5rem Mobile ultra-compact: - H1: 1.4rem to 1.25rem - H2: 1.2rem to 1.15rem - H3: 1.1rem to 1.05rem - Post padding: 1.25rem to 1rem - Post margin: 1.5rem to 1.25rem - HR margin: 2rem to 1.5rem - Metadata gap: 1rem to 0.75rem, size 0.85rem to 0.8rem Result: Maximum information density, ultra-compact blog layout
1 parent 1e9e74e commit 1407c60

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

docs/stylesheets/extra.css

Lines changed: 35 additions & 35 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.875rem !important;
69-
line-height: 1.65 !important;
68+
font-size: 0.85rem !important;
69+
line-height: 1.6 !important;
7070
letter-spacing: 0.01em;
7171
}
7272

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

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

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

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

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

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

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

125125
/* Remove default top margin from first header */
@@ -151,12 +151,12 @@ code {
151151

152152
/* Main content spacing */
153153
.md-main__inner {
154-
margin-top: 1rem !important;
155-
padding-top: 1.5rem !important;
154+
margin-top: 0.5rem !important;
155+
padding-top: 1rem !important;
156156
}
157157

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

162162
/* Hide the logo in the header */
@@ -171,8 +171,8 @@ code {
171171
/* Enhanced horizontal rules */
172172
.md-typeset hr {
173173
border: none;
174-
border-top: 3px solid var(--blog-border);
175-
margin: 3rem 0 !important;
174+
border-top: 2px solid var(--blog-border);
175+
margin: 2rem 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: 2rem;
195+
margin-bottom: 1.5rem;
196196
}
197197

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

506506
/* Adjust metadata layout */
507507
.md-meta__list {
508-
gap: 1rem;
509-
font-size: 0.85rem;
508+
gap: 0.75rem;
509+
font-size: 0.8rem;
510510
}
511511

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

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

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

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

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

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

0 commit comments

Comments
 (0)