Fix top nav links hidden on mobile#1
Merged
Conversation
The mobile breakpoint hid every nav link except the CTA via
.nav-links a:not(.nav-cta){display:none} with no menu fallback,
leaving the top links invisible on phones. Keep the links visible
by letting the nav wrap them onto their own centered row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On mobile (≤768px) the navigation hid every top link except the "Follow →" CTA via:
There was no hamburger/menu fallback, so links like Projects, Blog, Publications, GitHub and contact simply disappeared on phones. These are the live styles served from
assets.21no.deand loaded by the website'sindex.html.Fix
Replaced the "hide the links" approach with a pure-CSS responsive layout (no JS) that keeps the links visible by wrapping them onto their own centered row:
display: nonerule fromcss/base.css.css/nav.css(their proper home):Notes
Verified by inspection (standard flex-wrap pattern); no browser was available in the environment to render a screenshot.
https://claude.ai/code/session_01AN6FEfBhNJD21Xq2kr5Jr9
Generated by Claude Code