matplotlib / matplotlib/mpl-sphinx-theme

Navbar styling on small screens

Open
#90 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
13
PR merge metrics
No merged PRs in 30d

Description

The icons and version switcher are cluttered:

![grafik](https://github.com/matplotlib/mpl-sphinx-theme/assets/2836374/7608b00e-8090-488c-aeb9-f04a1062a88b)

Suggested changes:

- Remove bottom margin from version switcher:
![grafik](https://github.com/matplotlib/mpl-sphinx-theme/assets/2836374/fbe5392f-7b27-4817-bb52-2eaaf2627957)

![grafik](https://github.com/matplotlib/mpl-sphinx-theme/assets/2836374/5bc3014d-e983-45bf-887a-d38d81a5b772)

I believe this is necessary only in our theme, because `pydata-sphinx-theme` places the switcher differently. In our theme, it's bound together with the dark-mode switch.

- Optionally, let the link icons wrap:
![grafik](https://github.com/matplotlib/mpl-sphinx-theme/assets/2836374/5758a247-5027-4551-9899-91758e919b81)

![grafik](https://github.com/matplotlib/mpl-sphinx-theme/assets/2836374/e13f5f58-0b9a-4d69-b1ce-7597394bbc8b)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by locating the theme's navbar and version-switcher styling, then reproduce the cluttered small-screen layout shown in the issue images. Done means the switcher has no unwanted bottom margin and the link icons wrap acceptably on narrow screens.

Written by the indexing model from the issue text.

Assessment

Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.