Skip to content

Commit b11c430

Browse files
committed
fix(css): keep the footer's cross-site link on one line
On a phone the last line of the footer wraps at its final opportunity, which is the space before the ↗, so the arrow landed alone on the next line looking like a stray bullet. white-space: nowrap on the anchor holds the link together; the prose in front of it still wraps, and at 320px the longest of the two labels ("Visit imqueue.org ↗", 155px) still clears a 256px container, so nothing overflows.
1 parent 3e8c015 commit b11c430

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/_shared/css/base.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ a.card:hover { border-color: var(--accent); text-decoration: none; }
173173
.footer-links a:hover { color: var(--accent); }
174174
.footer-brand-desc { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 260px; margin-top: 4px; }
175175
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--muted); }
176+
/* The anchor is the one thing down here that must not break. On a phone the line
177+
wraps at the last opportunity, which is the space before the arrow, and the ↗
178+
lands alone on its own line looking like a bullet. Holding the whole link
179+
together is enough — the prose in front of it still wraps normally, so nothing
180+
overflows. Same treatment, same reason, as `.ribbon a`. */
181+
.footer-bottom a { white-space: nowrap; }
176182

177183
/* ---- tutorial layout (chapter sidebar + content) ---- */
178184
.tut-layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }

0 commit comments

Comments
 (0)