Use masks to be able to change colour

css
Nikita Karamov 2023-07-18 12:46:43 +02:00
parent ec7053f0a1
commit 9e77d44440
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 3 additions and 4 deletions

View File

@ -44,11 +44,10 @@
height: var(--shareon-size); height: var(--shareon-size);
width: var(--shareon-size); width: var(--shareon-size);
background-image: var(--shareon-svg); background-color: currentColor;
background-repeat: no-repeat; mask: no-repeat center / 100%;
background-size: var(--shareon-size) var(--shareon-size); mask-image: var(--shareon-svg);
content: ""; content: "";
vertical-align: middle;
} }
.shareon > .copy-url { .shareon > .copy-url {