Skip to content

Commit 26c9a40

Browse files
committed
Tighten homepage vertical spacing
Cut the stacked hero padding, section margins, and heading top-margins so the landing page has less empty space without changing the layout.
1 parent 77201fc commit 26c9a40

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎style.css‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ a:hover {
304304
display: grid;
305305
grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
306306
gap: clamp(1.5rem, 4vw, 3.5rem);
307-
align-items: center;
307+
align-items: start;
308308
width: min(100% - 2rem, var(--site-width));
309309
margin-inline: auto;
310-
padding-block: clamp(2rem, 5vw, 4rem);
310+
padding-block: clamp(1.15rem, 2.5vw, 2rem);
311311
}
312312

313313
.hero h1 {
@@ -354,8 +354,17 @@ a:hover {
354354
text-transform: uppercase;
355355
}
356356

357+
.page-shell.home-content {
358+
padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
359+
}
360+
361+
.home-content > section > h2:first-child,
362+
.home-content > section > :first-child > h2:first-child {
363+
margin-top: 0;
364+
}
365+
357366
.home-content > section + section {
358-
margin-top: clamp(2.5rem, 6vw, 4.5rem);
367+
margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
359368
}
360369

361370
.feature-grid,
@@ -387,7 +396,7 @@ a:hover {
387396
display: grid;
388397
grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
389398
gap: clamp(1.5rem, 5vw, 4rem);
390-
padding-block: 2rem;
399+
padding-block: 1.25rem;
391400
border-block: 1px solid var(--border);
392401
}
393402

0 commit comments

Comments
 (0)