Skip to content

Force the navbar to be left-aligned on rustdoc pages #1098

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 14, 2020

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Oct 14, 2020

Rather than relying on a different navbar class, I added a rustdoc-page class to the body so the navbar style can be overridden. Also moved all the rustdoc overrides into the _rustdoc.css file (.nav-container-rustdoc is replaced by the .rustdoc-page .nav-container > .container style, .cratesfyi-package-container-rustdoc was unused).

@jyn514 jyn514 merged commit 0bbe2ff into rust-lang:master Oct 14, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 14, 2020

Looks great, thanks!

@Nemo157 Nemo157 deleted the left-align-rustdoc-header branch October 15, 2020 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants