Skip to content

docs(site): keep home navbar dark-glass on scroll#36

Merged
Aitthi merged 1 commit into
mainfrom
docs/nav-scroll-fix
Jun 10, 2026
Merged

docs(site): keep home navbar dark-glass on scroll#36
Aitthi merged 1 commit into
mainfrom
docs/nav-scroll-fix

Conversation

@Aitthi

@Aitthi Aitthi commented Jun 10, 2026

Copy link
Copy Markdown
Member

Fixes a regression in the home grainient navbar: on scroll VitePress applies .VPNavBar.fill and paints the bar with the opaque light --vp-nav-bg-color, turning the floating pill white — and the pill's light nav text became white-on-white (only the green logo and icons stayed visible).

Pin a dark translucent glass background for the home navbar in both states (top and .fill, slightly more opaque once scrolled for legibility), using !important to beat .fill's higher specificity. Scoped to html.grainient-on (home only).

Verified locally: at top and after scroll the pill stays dark glass with readable light text.

🤖 Generated with Claude Code

VitePress paints `.VPNavBar.fill` with the opaque light --vp-nav-bg-color
once scrolled; the home pill's light text then became white-on-white. Pin a
dark translucent glass in both states (slightly more opaque when filled),
beating .fill's specificity with !important.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Aitthi Aitthi merged commit cc9245e into main Jun 10, 2026
4 checks passed
@Aitthi Aitthi deleted the docs/nav-scroll-fix branch June 10, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant