Skip to content

Commit 3c9edf7

Browse files
Merge pull request #36 from posecode-dev/codex/fix-hero-headline-fit
Fix hero headline wrapping at medium widths
2 parents 27c60b4 + e07403b commit 3c9edf7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

playground/src/landing.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ code {
272272
/* Live studio card */
273273
.hero-stage {
274274
position: relative;
275+
min-width: 0;
275276
}
276277
.studio {
277278
position: relative;
@@ -761,12 +762,12 @@ a.dev-card:hover {
761762
}
762763
.eyebrow { color: var(--text-2); letter-spacing: 2.4px; }
763764
.headline {
764-
max-width: 10ch;
765-
font-size: clamp(52px, 6.4vw, 88px);
765+
max-width: 11ch;
766+
font-size: clamp(52px, 5.8vw, 82px);
766767
line-height: .92;
767768
letter-spacing: -.055em;
768769
}
769-
.headline .hl { color: var(--text); }
770+
.headline .hl { color: var(--text); white-space: normal; }
770771
.headline .hl::after { display: none; }
771772
.subhead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
772773
.hero-meta { border-top: 1px solid var(--border); padding-top: 18px; }

0 commit comments

Comments
 (0)