Skip to content

Use the correct icon in the mdbook guide for the copy-paste icon #2782

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GuillaumeGomez
Copy link
Member

Fixes #2781.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Aug 11, 2025
@@ -266,7 +266,7 @@ pre > .buttons button {
pre > .buttons button.clip-button {
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. :)

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