-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: fix colors for top buttons and search box #93540
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
Conversation
Some changes occurred in HTML/CSS/JS. |
r? @CraftSpider (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Could you add a GUI test to check that the search input has the same border color as the other buttons please? |
444fc4a
to
6193d7b
Compare
6193d7b
to
a76d0a2
Compare
Updated to add the test. Also made the change a little bigger: The icon contents now have the same color as their border, on all themes. And the background of the search box in dark theme is now the background of the page overall, which matches the design of ayu and light. This avoids having a big white box that stands out from the rest of the page. I also adjusted the crate-search dropdown slightly to match. It has the same background now, and gained a slight border to distinguish it. |
There some rules missing in the themes apparently said the CI. |
Make sure the top buttons and search have the same border color and the same color for the icon inside.
This was overwriting the style for :target on impl headings. Instead of showing the whole summary as yellow (on light theme), it would show part of the summary as white and part as yellow.
a76d0a2
to
f62dc14
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
Still find it hard to see but better indeed. |
☔ The latest upstream changes (presumably #94095) made this pull request unmergeable. Please resolve the merge conflicts. |
ping from triage: |
Closing this as inactive |
Previously these had a lighter border than the search box.
Before:
After:
Also, remove background-color on .in-band
This was overwriting the style for :target on impl headings. Instead of showing the whole summary of a :target'ed heading as yellow (on light theme), it would show the summary as white.
Before:
After:
Demo: https://rustdoc.crud.net/jsha/ayu-border-color/std/string/trait.ToString.html