Skip to content

Tiered responsive footer + narrow-width navbar fixes#681

Open
LindsayAuch wants to merge 1 commit into
mainfrom
LindsayAuch/responsive-footer-tiered
Open

Tiered responsive footer + narrow-width navbar fixes#681
LindsayAuch wants to merge 1 commit into
mainfrom
LindsayAuch/responsive-footer-tiered

Conversation

@LindsayAuch
Copy link
Copy Markdown
Contributor

@LindsayAuch LindsayAuch commented May 11, 2026

Summary

Footer (`src/theme/Footer/styles.module.css`)

  • No more sticky-to-viewport-bottom on top-level category pages — footer flows as the last block element so content scrolls above it, not behind it.
  • Container is full-width left-aligned (was 83% centered + `translateX(-120px)` hack) so it lines up with the article column / page-nav links at every width, instead of drifting toward center at mid widths.
  • Tiered responsive:
    • Wide: row layout (links | Give feedback + socials)
    • Medium: `flex-wrap: wrap` on the container + `white-space: nowrap` on the links lets the Give feedback + socials cluster drop to a second line when the row gets cramped — links stay single-line rather than each one wrapping
    • Narrow (<768px): full vertical stack
  • 1px `border-left` on docs pages (`margin-left: 306px`) so the sidebar's right-edge divider line continues unbroken through the footer area.

Narrow-width navbar (`src/css/custom.css`)

At `<=996px`:

  • `--ifm-secondary-nav-height: 0px` — kills the phantom 48px reserved space above the breadcrumb (secondary nav is replaced by the hamburger menu at this width).
  • `--ifm-navbar-padding-horizontal` and `--ifm-spacing-horizontal` both pinned to 20px so the hamburger icon and breadcrumb home icon share a single left edge.

Test plan

  • Run `yarn start`, resize between 1400 → 320px on a docs page — verify the footer transitions cleanly through the three tiers
  • Confirm above 1024px the inline row sits flush-left with "← Previous / Next →" pagination above
  • Verify the sidebar's right divider line is continuous from the navbar down through the footer
  • At narrow widths confirm the hamburger and breadcrumb home icon are on the same left edge
  • Scroll a long docs page — footer should not float over content

🤖 Generated with Claude Code

Footer (src/theme/Footer/styles.module.css):
* Drop the docs-page sticky-to-viewport-bottom rule so the footer
  flows as the last block element — content no longer scrolls
  behind it.
* Container is now full-width with --ifm-spacing-horizontal padding
  (instead of 83% width + margin: 0 auto + translateX(-120px)), so
  it left-aligns with the article column at every viewport instead
  of drifting toward center at mid widths.
* flex-wrap: wrap on the container + white-space: nowrap on the
  links lets the Give feedback + social cluster drop to a second
  line when there's no horizontal room — links stay on one line
  rather than each one breaking.
* Below 768px, full vertical stack.
* 1px border-left on docs pages (margin-left: 306px) so the
  sidebar's right-edge divider continues unbroken through the
  footer.

Narrow-width fixes (src/css/custom.css):
* At <=996px: zero out --ifm-secondary-nav-height so the breadcrumb
  doesn't sit below a phantom 48px gap reserved for a non-rendered
  secondary nav.
* At <=996px: pin --ifm-navbar-padding-horizontal and
  --ifm-spacing-horizontal both to 20px so the hamburger icon and
  the breadcrumb home icon share a single left edge.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mike-solomon
Copy link
Copy Markdown
Contributor

mike-solomon commented May 12, 2026

Why did we decide to drop the footer from being visible on landing pages without scrolling?

Current site:
Screen Shot 2026-05-12 at 8 56 52 AM

Proposed version:
Screen Shot 2026-05-12 at 8 57 08 AM

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.

2 participants