www: align copy icon - #4981
Conversation
|
If the issue is extract vertical spacing messing up the centering, would using |
@ChrisDenton I think the thing with our icon is that IIRC its visual center is not the actual center so that's why manual adjustments have to be made 😓 I'd argue that in "proper" Web frontend an asset library is needed but probably not in this case: so far we are keeping a very minimal Vanilla JS setup. |
|
For the horizontal center that's true (because there's a bit to one side) but for the vertical center it shouldn't be |
@ChrisDenton I get it, it's a typo XDD (block, not bock) |
|
Oops, sorry! |
| } | ||
|
|
||
| div.copy-icon svg { | ||
| fill: var(--body-color); |
There was a problem hiding this comment.
| fill: var(--body-color); | |
| display: block; |
There was a problem hiding this comment.
Yep! Does it make a difference in your browser?
|
|
||
| div.copy-icon { | ||
| transform: translateX(3px); | ||
| transform: translateX(2px) translateY(2px); |
There was a problem hiding this comment.
| transform: translateX(2px) translateY(2px); | |
| transform: translateX(2px); |
Summary
This has been bothering me everytime I visit the rustup.rs website
Why
It's misaligned
Validation
Check screenshot