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
left TOC z-index incorrect in wide viewport with toc.follow
#189
Comments
At first glance, this seems related to the |
well, I was able to fix this in the dev console by adding the following css rule to the z-index: var(--md-nav__sticky-zindex); The fact that it has an inline sphinx-immaterial/src/assets/stylesheets/main/layout/_nav.scss Lines 185 to 190 in 4eb8655
Sure enough, the style is set in the JS implementation for
This is tricky because I'm not the best at JS, and the toc is structured as lists of invisible checkboxes in the HTML. I have a feeling it is an easy fix though. |
I think this actually calls for a CSS fix concerning the viewport's min-width. Looking again at the dev console and filtering the rules to show anything about sphinx-immaterial/src/assets/stylesheets/main/layout/_nav.scss Lines 678 to 681 in 4eb8655
|
This was my bad. The last update from upstream introduced this |
@mhostetter when you get a chance, can you verify if the fix-189 branch resolves this? |
@2bndy5 yes, it works! Thanks for the speedy response and fix, as always! |
Before reverting that upstream change, we should probably check why it was added in the first place and confirm that removing it won't cause any problems. Also if we do remove it, we should add a sphinx-immaterial comment. |
The upstream commit (no PR related) just says "merge features related to scotch bonnet funding goal". I'm inclined to think it has something to do with how the There are other sphinx-immaterial/src/assets/stylesheets/main/layout/_nav.scss Lines 521 to 526 in 4eb8655
sphinx-immaterial/src/assets/stylesheets/main/layout/_nav.scss Lines 547 to 552 in 4eb8655
both of which also came with #171 I still think we're ok to remove it (and replace with a comment) since our implementation for |
Instead of removing the |
fixes #189 by using the inline CSS variable with fallback value inherited from upstream
This sounds good to me. |
python-apigen
left TOC display issuetoc.follow
@mhostetter It would help if you could re-test the fix-189 branch since the CSS solution has slightly changed. |
@2bndy5 It works for me, thanks! |
Small issue, but I noticed the left TOC from
python-apigen
generated pages have a display issue. It appears the contents of the TOC appear on top of the page title "API Reference" (in my case) when the TOC is long enough.Example
https://mhostetter.github.io/galois/latest/api/galois.ReedSolomon.k/
Scroll in the left TOC and observe the overlay on top of "API Reference".
The text was updated successfully, but these errors were encountered: