Skip to content

Conversation

GuillaumeGomez
Copy link
Member

Fixes #2781.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Aug 11, 2025
padding: 2px 4px 0px 6px;
}
pre > .buttons button.clip-button::before {
.clip-button::before {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I "relaxed" this selector to be able to use it more freely in the book.

--copy-button-filter: initial;
}
.coal .table-wrapper .clip-button {
--copy-button-filter: brightness(0) saturate(100%) invert(72%) sepia(9%) saturate(401%) hue-rotate(167deg) brightness(90%) contrast(84%);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's an icon, we need to cheat a bit to change its color. To do so, we rely on the filter CSS rule. There are converters only to achieve this result. :)

@rustbot

This comment has been minimized.

@GuillaumeGomez
Copy link
Member Author

Fixed merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong icon for clipboard in reading chapter
2 participants