Skip to content

rustdoc light theme: Fix CSS for selected buttons - #79973

Merged
bors merged 1 commit into
rust-lang:masterfrom
camelid:rustdoc-search-tab-color
Dec 13, 2020
Merged

rustdoc light theme: Fix CSS for selected buttons#79973
bors merged 1 commit into
rust-lang:masterfrom
camelid:rustdoc-search-tab-color

Conversation

@camelid

Copy link
Copy Markdown
Member

Fixes#79961.

The background was dark before, which made the text impossible to read.
Now the button doesn't override the background, and the only thing it
does is add a light-blue top border.

Ultimately, the search results tabs now look very similar to how they
used to look.

r? @GuillaumeGomez

@camelidcamelid added A-rustdoc-search Area: Rustdoc's search feature A-rustdoc-themes Area: Themes for HTML pages generated by rustdoc A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 12, 2020
@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez

Some changes occurred in HTML/CSS themes.

cc @GuillaumeGomez

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 12, 2020
@camelid

camelid commented Dec 12, 2020

Copy link
Copy Markdown
MemberAuthor

As always, the before/after :)

Before regression (i.e. on stable/beta)

image

After regression (i.e. on nightly)

image

After fix (i.e. this PR)

image

@camelid

camelid commented Dec 12, 2020

Copy link
Copy Markdown
MemberAuthor

Hopefully there aren't any buttons in the rustdoc UI that relied on a dark background color...

@GuillaumeGomez

Copy link
Copy Markdown
Member

Could you put back the previous background color please? (the full light one)

@camelid

Copy link
Copy Markdown
MemberAuthor

That's funny, that's literally what I was just doing :)

The background was dark before, which made the text impossible to read.
Now the background is white, which is how selected `div`s are rendered.
As a result, the search results tabs now look identical to how they
used to look (before rust-lang#79896).
@camelid
camelidforce-pushed the rustdoc-search-tab-color branch from 2a399f8 to 2b455aaCompareDecember 12, 2020 20:00
@camelid

Copy link
Copy Markdown
MemberAuthor

Okay, I updated the screenshot with the background-color adjustment!

@GuillaumeGomez

Copy link
Copy Markdown
Member

Okay, now it looks like how it was before. 😆

@GuillaumeGomez

Copy link
Copy Markdown
Member

@bors: r+ rollup

@bors

bors commented Dec 12, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 2b455aa has been approved by GuillaumeGomez

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 12, 2020
@JohnTitorJohnTitor mentioned this pull request Dec 13, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 13, 2020
Rollup of 12 pull requests
Successful merges:
- rust-lang#79360 (std::iter: document iteration over `&T` and `&mut T`)
- rust-lang#79398 (Link loop/for keyword)
- rust-lang#79834 (Remove deprecated linked_list_extras methods.)
- rust-lang#79845 (Fix rustup support in default_build_triple for python3)
- rust-lang#79940 (fix more clippy::complexity findings)
- rust-lang#79942 (Add post-init hook for static memory for miri.)
- rust-lang#79954 (Fix building compiler docs with stage 0)
- rust-lang#79963 (Fix typo in `DebruijnIndex` documentation)
- rust-lang#79970 (Misc rustbuild improvements when the LLVM backend isn't used)
- rust-lang#79973 (rustdoc light theme: Fix CSS for selected buttons)
- rust-lang#79984 (Remove an unused dependency that made `rustdoc` crash)
- rust-lang#79985 (Fixes submit event of the search input)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 5115bbf into rust-lang:masterDec 13, 2020
@rustbotrustbot added this to the 1.50.0 milestone Dec 13, 2020
@camelid
camelid deleted the rustdoc-search-tab-color branch December 13, 2020 18:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustdoc-searchArea: Rustdoc's search featureA-rustdoc-themesArea: Themes for HTML pages generated by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc search results heading illegible colour scheme

5 participants

@camelid@rust-highfive@GuillaumeGomez@bors@rustbot