Allow customizing foreground and background colour

css
Nikita Karamov 2023-07-18 13:16:04 +02:00
parent fb9359820f
commit 83433f0faf
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
--shareon-size: 20px; --shareon-size: 20px;
--shareon-padding: 8px; --shareon-padding: 8px;
--shareon-radius: 4px; --shareon-radius: 4px;
--shareon-fg: #fff;
--shareon-bg: unset;
} }
.shareon { .shareon {
@ -26,8 +28,8 @@
border: none; border: none;
border-radius: var(--shareon-radius); border-radius: var(--shareon-radius);
color: white; color: var(--shareon-fg, var(--color));
background-color: var(--color); background-color: var(--shareon-bg, var(--color));
font-size: calc(var(--shareon-size) * 0.8); font-size: calc(var(--shareon-size) * 0.8);
text-decoration: none; text-decoration: none;