-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
allow "scroll spy" with the current section highlighted #1309
Comments
Should involve a relatively small change to mkdocs-material/src/assets/javascripts/components/Material/Nav/Blur.js Lines 90 to 113 in 5ad1c70
Should be entirely backwards compatible. |
ha, looked but couldn't find a similar issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I checked that...
Description
It would be great if an extra attribute was set on
md-nav__link
to allow custom CSS to change how the page TOC looks to highlight the current item, rather than blur items above the current page y-offset.This could be implemented by something like adding
data-md-state="current"
to the TOC item corresponding to the top section visible on the screen.Use Cases
I'd like to highlight the page-TOC item corresponding to the section currently on screen, similar to:
I'm not suggesting editing the standard CSS and thereby enforcing a change for most users, just allow users to implement this themselves by adding css like:
The text was updated successfully, but these errors were encountered: