Skip to content

Hide the top menu on mobile - #3198

Open
hugovk wants to merge 1 commit into
python:mainfrom
hugovk:mobile-menu
Open

hugovk wants to merge 1 commit into
python:mainfrom
hugovk:mobile-menu

Conversation

@hugovk

@hugovk hugovk commented Oct 24, 2026

Copy link
Copy Markdown
Member

Description

When visiting https://www.python.org on mobile, the top menu takes up around half the screen:

This is quite annoying, and I don't remember ever clicked any of those links.

We could have it collapsed by default, but I think we could just remove it instead for mobile.

@hugovk
hugovk requested a review from JacobCoffee as a code owner October 24, 2026 16:02
Copilot AI balanced review requested due to automatic review settings October 24, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The template, scrolling handlers, and responsive styles are consistent, with no unresolved blocking issues.

No open issues 🎉

What changed in this PR

This PR reduces mobile header space by hiding the Python Network menu on small screens while preserving the skip-to-content link.

Changes:

  • Hide the top menu below 640px and remove adjacent borders.
  • Remove obsolete Python Network jump links, handlers, and styles.
  • Update footer links and smooth scrolling to target #top.
File Description
templates/​base.html Remove network jump links and retarget footer links.
static/​js/​script.js Remove obsolete handlers and update back-to-top scrolling.
static/​css/​style.css Remove unused jump-link styling.
static/​css/​mq.css Hide the mobile top menu and remove obsolete responsive styling.

Review effort: Balanced

This branch has not been deployed

No deployments
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