-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 blur
to work even when rustdoc
is not the main <body>
#77651
Allow blur
to work even when rustdoc
is not the main <body>
#77651
Conversation
Some changes occurred in HTML/CSS/JS. |
You also need to update the styles, right now they hard-code |
blur
to work even when rustdoc
is not the main <body>
0e44344
to
9d04029
Compare
Forgot to commit it, sorry... Force-pushed it. |
Hmm, I'm a little nervous changing from a class to an ID will break docs.rs' fragile parsing code. I don't have something to point to, but we hard-code a lot of styles and I'd prefer to not to change the rustdoc HTML more than we have to 😅 |
It makes it stronger because otherwise I'll have to loop over elements with the |
Well the issue is it will have to be compatible with the HTML before and after the change, which sounds difficult if you're changing from a class to an ID. I'm also no longer sure this should be fixed on rustdoc's end ... I think this is actually a regression, take a look at https://github.com/rust-lang/docs.rs/blob/38ba774e14eb4f658d834218d003583e423c5f37/templates/style/base.scss#L42-L55 |
You can have both |
Part of rust-lang/docs.rs#1076
r? @jyn514