-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navigation bar header items are not displayed properly #2022
Comments
don't have time to look at the cause/fix today, but I can reproduce the problem. |
We are also observing this at napari/napari-sphinx-theme#178 |
I can confirm this happens in our docs at around 990px (say 1000px); see the screenshot below to see the docs at such a resolution. @gabalafou @smeragoel do you have any suggestions on handling this from a usability/UX and implementation POV? ref: |
I found the root cause. Prior to PR #1955, we were importing our SCSS variable overrides before Bootstrap: @import "variables/bootstrap";
@import "~bootstrap/scss/variables"; I think that 1955 inadvertently moved our "variables/bootstrap" after the Bootstrap import. PR incoming. |
Here's a deeper dive into how this broke. In our variables/_bootstrap.scss, we redefine some Bootstrap breakpoints like so: pydata-sphinx-theme/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss Lines 3 to 15 in 6cc8ddf
Notice that we set |
This PR restores the effects of the variables defined in [variables/_bootstrap.scss](https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss) This fixes #2022 and also fixes another issue that I had noticed when clicking links in the "More" dropdown. Screenshots: - Fixed: ![](https://github.com/user-attachments/assets/060fa3fe-2ce8-4311-b127-7821ddbbdadc) - Broken: ![](https://github.com/user-attachments/assets/f1de59b9-e6a6-485f-8e83-22a3548de94f)
As it can be seen in the image below, the header items are displayed wrongly when the width of the window is between 960 and 991px
To reproduce
go to https://scitools.org.uk/cartopy/docs/latest/ and adjust the window to 975px
The text was updated successfully, but these errors were encountered: