-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Improve ayu rustdoc theme #74371
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve ayu rustdoc theme #74371
Conversation
* It makes some lines darker * It gives the crate selector and search bar a border * The search bar's border turns blue when focused * Gives the logo a bright shadow. This makes dark logos stand out more
Some changes occurred in HTML/CSS/JS. Some changes occurred in HTML/CSS themes. |
(rust_highfive has picked a reviewer for you, use r? to override) |
Can you post some screenshots before and after changes? |
@lzutao I added screenshots to the first comment. |
There's already a PR for the logo issue, so that should be removed from here: #74361 I'll take a look at the other changes later today. They look good based off of the screenshots! |
@Cldfire done! |
Looks good to me, thanks! r=lzutao and me once CI pass. |
Looks great, thanks you @Aloso! 😄 |
@bors r=GuilliameGomez rollup |
📌 Commit d08bb40 has been approved by |
🌲 The tree is currently closed for pull requests below priority 5, this pull request will be tested once the tree is reopened |
Improve ayu rustdoc theme This PR changes the following: * It makes some lines darker * It gives the crate selector and search bar a border * The search bar's border turns blue when focused * ~~Gives the logo a bright shadow.~~ For standard library crates, it would be better to invert the logo, but that would be bad for crates with a colored logo, e.g. [async-std](https://docs.rs/async-std/1.6.2/async_std/). Before:  After (note that this PR no longer includes the white shadow of the logo): 
…arth Rollup of 8 pull requests Successful merges: - rust-lang#73101 (Resolve items for cross-crate imports relative to the original module) - rust-lang#73269 (Enable some timeouts in SGX platform) - rust-lang#74033 (Add build support for Cargo's build-std feature.) - rust-lang#74351 (Do not render unstable items for rustc doc) - rust-lang#74357 (Some `Symbol` related improvements) - rust-lang#74371 (Improve ayu rustdoc theme) - rust-lang#74386 (Add RISC-V GNU/Linux to src/tools/build-manifest as a host platform) - rust-lang#74398 (Clean up E0723 explanation) Failed merges: r? @ghost
This PR changes the following:
Gives the logo a bright shadow.For standard library crates, it would be better to invert the logo, but that would be bad for crates with a colored logo, e.g. async-std.
Before:
After (note that this PR no longer includes the white shadow of the logo):