Skip to content

Commit 19496c2

Browse files
vintaclaude
andcommitted
refactor(css): replace sponsor-become border underline with text-decoration
Swap the border-bottom + padding-bottom fake underline on .sponsor-become for a native text-decoration underline with text-underline-offset so the line hugs the text at the same distance as the hero @vinta/@JinyangWang27 links, rather than sitting a fixed 0.2rem gap away. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f3c8377 commit 19496c2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

website/static/style.css

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,24 +418,22 @@ kbd {
418418
}
419419

420420
.sponsor-become {
421-
display: inline-flex;
422-
align-items: center;
423-
gap: 0.4rem;
424421
align-self: start;
425422
color: var(--ink-soft);
426423
font-size: var(--text-sm);
427424
font-weight: 700;
428425
letter-spacing: 0.01em;
429-
border-bottom: 1px solid var(--line-strong);
430-
padding-bottom: 0.2rem;
426+
text-decoration: underline;
427+
text-decoration-color: var(--line-strong);
428+
text-underline-offset: 0.2em;
431429
transition:
432430
color 180ms ease,
433-
border-color 180ms ease;
431+
text-decoration-color 180ms ease;
434432
}
435433

436434
.sponsor-become:hover {
437435
color: var(--accent-deep);
438-
border-bottom-color: var(--accent);
436+
text-decoration-color: var(--accent);
439437
}
440438

441439
.sponsor-list {

0 commit comments

Comments
 (0)