Skip to content

Fix help blurring whole page #1080

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

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Conversation

benediktwerner
Copy link
Contributor

@benediktwerner benediktwerner commented Oct 8, 2020

Currently, when pressing the ? key or the little ? button next to the search bar that was recently added to rustdoc, the whole page is blurred. This makes the help unreadable.

This is caused by doc.rs's "sandboxing"/"containerization" of rustdoc which messes up rustdoc's style. This was previously discussed in #52 and fixed in a8a3ece but a recent refactoring of the stylesheet in #943 messed up the fix.

From a cursory glance, it looks like all other changes in that PR were correct but the rule for body.blur was changed to body { .blur { ... } } in SASS which gets translated to body .blur (with a space in between, which has a different meaning).

This PR fixes this problem by changing the rule to body { &.blur { ... } } which SASS now again correctly translates to body.blur { ... }, therefore restoring the correct behavior of the previous fix, causing only the background to be blurred again.

@jyn514 jyn514 added the A-frontend Area: Web frontend label Oct 8, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 8, 2020

Nice, yes this looks like the right fix.

r? @GuillaumeGomez - I like this fix better than rust-lang/rust#77651, I had a feeling this was something on the docs.rs side.

@GuillaumeGomez
Copy link
Member

I'm fine with it too. :)

@jyn514 jyn514 merged commit 8117cf8 into rust-lang:master Oct 8, 2020
@benediktwerner benediktwerner deleted the patch-1 branch October 8, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Web frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants