[rustdoc] Change table odd table rows background color to not make it the same as inline code - #160438
[rustdoc] Change table odd table rows background color to not make it the same as inline code#160438GuillaumeGomez wants to merge 2 commits into
Conversation
|
Some changes occurred in HTML/CSS/JS. |
|
i feel like the odd/even colors should be swapped so they dont get doubled up if theres a header. and maybe too much of a nitpick but i feel like tables with a small number of rows (~2 or 3) dont need the alternating color. |
Fair enough!
I'd prefer to keep it coherent whatever the number of rows. Simpler for maintenance and no surprise to users. |
5026db0 to
e7e5245
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=notriddle,lolbinarycat |
…otriddle,lolbinarycat [rustdoc] Change table odd table rows background color to not make it the same as inline code Fixes rust-lang#159234. Follow-up of rust-lang#105442. It now looks like this: <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-15" src="https://github.com/user-attachments/assets/97d2ae1c-e167-4cc0-8daf-d8937397faed" /> <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-21" src="https://github.com/user-attachments/assets/8916a49d-2496-4045-820a-12f10f18d81b" /> <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-25" src="https://github.com/user-attachments/assets/b44b3b3f-8ec7-4fea-b783-aedf1b452249" /> For the light theme, I had to make the inline code background darker so it would mix well with the alternative table rows background color. r? @notriddle
…otriddle,lolbinarycat [rustdoc] Change table odd table rows background color to not make it the same as inline code Fixes rust-lang#159234. Follow-up of rust-lang#105442. It now looks like this: <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-15" src="https://github.com/user-attachments/assets/97d2ae1c-e167-4cc0-8daf-d8937397faed" /> <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-21" src="https://github.com/user-attachments/assets/8916a49d-2496-4045-820a-12f10f18d81b" /> <img width="418" height="163" alt="Screenshot From 2026-08-03 15-21-25" src="https://github.com/user-attachments/assets/b44b3b3f-8ec7-4fea-b783-aedf1b452249" /> For the light theme, I had to make the inline code background darker so it would mix well with the alternative table rows background color. r? @notriddle
Rollup of 13 pull requests Successful merges: - #160976 (Ensure TLS accesses don't call the global allocator through panic (part 2)) - #160438 ([rustdoc] Change table odd table rows background color to not make it the same as inline code) - #160985 (self-profile more of borrowck) - #137858 (Add new `unused_footnote_definition` rustdoc lint) - #159566 (Add support for generics in `offload`and remove `no_mangle` attribute) - #160676 (rustc_public: split `def`s out of `ty`) - #160861 (rustc_parse: suggest removing semicolon before `if` block) - #160958 (Remove unused `#[non_exhaustive]` in library) - #160978 (move resolve_path to Session inherent method) - #160990 (Remove old cfg parser which is now dead code) - #160991 (Add offload component on nightly) - #160999 (doc changes to expect messages in process.rs) - #161003 (Also warn if an invalid `doc` attribute is used on a macro invocation)



Fixes #159234.
Follow-up of #105442.
It now looks like this:
For the light theme, I had to make the inline code background darker so it would mix well with the alternative table rows background color.
r? @notriddle