Skip to content

Commit 4218e03

Browse files
bloveclaude
andauthored
fix(website): mobile polish for the homepage (#886)
From a 375px review pass: the marker highlight now paints per line fragment via box-decoration-break (the absolute box rendered one broken block on wrapped phrases), the decorative hero chip row yields to the interactive proof pills on phones, centered multi-line ledes left-align, 10px mono captions bump to 11px, and small text links get invisible tap-area padding past the WCAG 24px floor. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 012e2af commit 4218e03

1 file changed

Lines changed: 35 additions & 13 deletions

File tree

apps/website/src/styles/landing.css

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,23 @@
3939
max-width: 54ch;
4040
}
4141

42-
/* Treatment A — marker highlight. isolation:isolate is load-bearing: without
43-
* it the z-index:-1 sweep paints behind the section background and vanishes. */
42+
/* Treatment A — marker highlight. Painted as a background on the inline span
43+
* with box-decoration-break: clone, so the sweep follows the text across line
44+
* wraps (an absolutely-positioned box renders one broken block when the
45+
* phrase wraps — which it does at every width below ~1200px). */
4446
.marker-highlight {
45-
position: relative;
46-
isolation: isolate;
4747
color: var(--color-text-primary);
4848
font-weight: 600;
49-
}
50-
.marker-highlight::before {
51-
content: '';
52-
position: absolute;
53-
inset: -1px -5px -3px;
54-
z-index: -1;
5549
background: linear-gradient(
5650
100deg,
5751
rgba(0, 64, 144, 0.14),
5852
rgba(0, 64, 144, 0.08) 85%
5953
);
6054
border-radius: 4px;
61-
transform: skewX(-6deg) rotate(-0.4deg);
55+
padding: 1px 5px 3px;
56+
margin: -1px -5px -3px;
57+
-webkit-box-decoration-break: clone;
58+
box-decoration-break: clone;
6259
}
6360

6461
.hero-chip-row {
@@ -79,6 +76,14 @@
7976
padding: 5px 11px;
8077
white-space: nowrap;
8178
}
79+
/* On phones the chip row and the proof-pill row stack as two near-identical
80+
* pill lists in one viewport; the pills are links and carry the same nouns,
81+
* so the decorative chips yield. */
82+
@media (max-width: 640px) {
83+
.hero-chip-row {
84+
display: none;
85+
}
86+
}
8287

8388
.hero-cta-row {
8489
display: flex;
@@ -95,6 +100,11 @@
95100
}
96101
.hero-proof-link {
97102
text-decoration: none;
103+
/* Invisible tap-area extension: the pill renders ~27px tall; the padding
104+
* lifts the touch target past the 24px WCAG floor toward the 44px ideal. */
105+
display: inline-block;
106+
padding: 6px 0;
107+
margin: -6px 0;
98108
}
99109
.hero-caption {
100110
margin: 0;
@@ -128,6 +138,10 @@
128138
color: var(--color-accent);
129139
text-decoration: none;
130140
font-weight: 600;
141+
/* 16px-tall text link; pad the tap target without shifting layout. */
142+
display: inline-block;
143+
padding: 8px 4px;
144+
margin: -8px -4px;
131145
}
132146
@keyframes blink { to { visibility: hidden; } }
133147
@media (max-width: 900px) {
@@ -573,7 +587,7 @@
573587
}
574588
.ecosystem-tile-note {
575589
font-family: var(--font-mono);
576-
font-size: 10px;
590+
font-size: 11px;
577591
line-height: 1.4;
578592
text-transform: uppercase;
579593
letter-spacing: 0.08em;
@@ -604,6 +618,14 @@
604618
color: var(--color-text-secondary);
605619
margin: 0;
606620
}
621+
/* Centered ragged text is fine at 2 lines on desktop but becomes a 6-line
622+
* ragged column on phones; left-align for readability. */
623+
@media (max-width: 640px) {
624+
.ecosystem-subhead,
625+
.demo-showcase__subhead {
626+
text-align: left;
627+
}
628+
}
607629
.ecosystem-groups {
608630
display: grid;
609631
gap: 18px;
@@ -1474,7 +1496,7 @@
14741496
.proof-strip-source {
14751497
display: inline-block;
14761498
font-family: var(--font-mono);
1477-
font-size: 10px;
1499+
font-size: 11px;
14781500
letter-spacing: 0.08em;
14791501
text-transform: uppercase;
14801502
color: var(--color-text-muted);

0 commit comments

Comments
 (0)