Skip to content
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

Improve display for "copy-path" button, making it more discreet #85407

Merged
merged 1 commit into from
May 18, 2021

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented May 17, 2021

As suggested by @Nemo157 here:

Screenshot from 2021-05-18 11-18-49
Screenshot from 2021-05-18 11-15-06
Screenshot from 2021-05-18 11-18-54
Screenshot from 2021-05-18 11-15-00
Screenshot from 2021-05-18 11-18-58
Screenshot from 2021-05-18 11-19-00

r? @jsha

@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-rustdoc-ui Area: Rustdoc UI (generated HTML) labels May 17, 2021
@rust-highfive
Copy link
Collaborator

Some changes occurred in HTML/CSS themes.

cc @GuillaumeGomez

A change occurred in the Ayu theme.

cc @Cldfire

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 17, 2021
@Nemo157
Copy link
Member

Nemo157 commented May 17, 2021

It could be nice to have a highlight on hover too, since there's no longer the border changing color.

@GuillaumeGomez
Copy link
Member Author

I was thinking about it and thought that the cursor change would be enough. What do you suggest? Making the color a bit lighter?

@Nemo157
Copy link
Member

Nemo157 commented May 17, 2021

Lighter on the dark themes, darker on the light theme (which would require making the base color on ayu a bit darker so it has somewhere to lighten towards).

@GuillaumeGomez
Copy link
Member Author

I updated the screenshots. The difference is very easy to spot when using it but with just the screenshots, not that much... (mostly on light and dark themes)

@jsha jsha changed the title Improve display for "copy-path" button, making it more discrete Improve display for "copy-path" button, making it more discreet May 17, 2021
@jsha
Copy link
Contributor

jsha commented May 17, 2021

This looks good, but why the complex CSS filter? Why not just set a different color?

@GuillaumeGomez
Copy link
Member Author

Because of the svg, we can't change its color easily, we have to use tricks. But since it's only grey, we can simply use filter. Need to update it.

@GuillaumeGomez
Copy link
Member Author

Simplified the rules for the same result (and also re-updated the screenshots).

@jsha
Copy link
Contributor

jsha commented May 18, 2021

@bors r+

@bors
Copy link
Contributor

bors commented May 18, 2021

📌 Commit 5d004c1 has been approved by jsha

@bors bors 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 May 18, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request May 18, 2021
Rollup of 7 pull requests

Successful merges:

 - rust-lang#84462 (rustdoc: use focus for search navigation)
 - rust-lang#85251 (Make `const_generics_defaults` not an incomplete feature)
 - rust-lang#85404 (Backport 1.52.1 release notes)
 - rust-lang#85407 (Improve display for "copy-path" button, making it more discreet)
 - rust-lang#85423 (Don't require cmake on Windows when LLVM isn't being built)
 - rust-lang#85428 (Add x.py pre-setup instructions)
 - rust-lang#85442 (fix typo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6e05a71 into rust-lang:master May 18, 2021
@rustbot rustbot added this to the 1.54.0 milestone May 18, 2021
@GuillaumeGomez GuillaumeGomez deleted the copy-path-display-improvement branch May 18, 2021 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant 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.

6 participants