rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.84k stars 1.62k forks source link

Unify copy to clipboard icon with docs.rs, rustdoc and crates.io #2421

Closed GuillaumeGomez closed 1 month ago

GuillaumeGomez commented 2 months ago

It looks like this:

image

All colors are the same. I computed the filter values with https://isotropic.co/tool/hex-color-to-css-filter/ (very nice website).

Another change you might have noticed: I increased the size of the buttons. There are two reasons for this change:

  1. The new clipboard icon rendered badly with such small dimensions.
  2. Since these buttons can be used on mobile devices, making them bigger will make things better for everyone.
camelid commented 2 months ago

The new button looks out of proportion with the others - maybe make the others a little smaller to match it better?

GuillaumeGomez commented 2 months ago

Updated! You can see the new display in the first comment.