2022-02-10 21:11:40 +01:00
|
|
|
:root {
|
|
|
|
--button-size: 36px;
|
|
|
|
--icon-size: 20px;
|
|
|
|
|
|
|
|
--padding-ver: calc(0.3 * var(--icon-size));
|
|
|
|
--padding-hor: calc(var(--icon-size) / 2);
|
|
|
|
--padding-icon: calc((var(--button-size) - var(--icon-size)) / 2);
|
|
|
|
|
|
|
|
--height: calc(var(--button-size) - 2 * var(--padding-ver));
|
|
|
|
--width: calc(var(--button-size) - 2 * var(--padding-hor));
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon {
|
|
|
|
font-size: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > * {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
height: var(--height);
|
|
|
|
min-width: var(--width);
|
|
|
|
|
|
|
|
margin: calc(var(--padding-ver) / 2);
|
|
|
|
padding: var(--padding-ver) var(--padding-hor);
|
|
|
|
|
2023-01-23 05:49:23 +01:00
|
|
|
background-color: #333;
|
2022-02-10 21:11:40 +01:00
|
|
|
border-radius: calc(var(--icon-size) / 6);
|
|
|
|
border: none;
|
|
|
|
box-sizing: content-box;
|
|
|
|
color: white;
|
|
|
|
line-height: 1.5;
|
|
|
|
transition: opacity 300ms ease;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > *:hover {
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > *:not(:empty) {
|
|
|
|
font-size: calc(0.8 * var(--icon-size));
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > *:not(:empty)::before {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
width: calc(var(--icon-size) + var(--padding-icon));
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
background-position: 0 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > *::before {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
height: var(--icon-size);
|
|
|
|
width: var(--icon-size);
|
|
|
|
|
|
|
|
top: var(--padding-icon);
|
|
|
|
left: var(--padding-icon);
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: var(--icon-size) var(--icon-size);
|
|
|
|
content: "";
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
2023-01-23 05:49:37 +01:00
|
|
|
.shareon > .copy-url:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/copy-url.svg");
|
2023-01-23 05:49:37 +01:00
|
|
|
}
|
|
|
|
|
2023-03-20 19:04:27 +01:00
|
|
|
.shareon > .copy-url.done:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/copy-url-done.svg");
|
2023-03-20 19:04:27 +01:00
|
|
|
}
|
|
|
|
|
2023-12-06 23:07:42 +01:00
|
|
|
.shareon > .email:before {
|
|
|
|
background-image: url("icons/email.svg");
|
|
|
|
}
|
|
|
|
|
2022-02-10 21:11:40 +01:00
|
|
|
.shareon > .facebook {
|
|
|
|
background-color: #1877f2;
|
|
|
|
}
|
|
|
|
.shareon > .facebook:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/facebook.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .linkedin {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #0a66c2;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .linkedin:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/linkedin-in.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .linkedin:not(:empty):before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/linkedin.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .mastodon {
|
2023-01-23 05:55:44 +01:00
|
|
|
background-color: #6364ff;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .mastodon:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/mastodon.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .messenger {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #00b2ff;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .messenger:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/messenger.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .odnoklassniki {
|
|
|
|
background-color: #ee8208;
|
|
|
|
}
|
|
|
|
.shareon > .odnoklassniki:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/odnoklassniki.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .pinterest {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #bd081c;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .pinterest:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/pinterest.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .pocket {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #ef3f56;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .pocket:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/pocket.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
2023-12-07 16:44:54 +01:00
|
|
|
.shareon > .print:before {
|
|
|
|
background-image: url("icons/print.svg");
|
|
|
|
}
|
|
|
|
|
2022-02-10 21:11:40 +01:00
|
|
|
.shareon > .reddit {
|
|
|
|
background-color: #ff4500;
|
|
|
|
}
|
|
|
|
.shareon > .reddit:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/reddit.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
2023-07-29 20:37:29 +02:00
|
|
|
.shareon > .teams {
|
|
|
|
background-color: #6264a7;
|
|
|
|
}
|
|
|
|
.shareon > .teams:before {
|
|
|
|
background-image: url("icons/teams.svg");
|
|
|
|
}
|
|
|
|
|
2022-02-10 21:11:40 +01:00
|
|
|
.shareon > .telegram {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #26a5e4;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .telegram:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/telegram.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
2023-07-29 20:37:29 +02:00
|
|
|
.shareon > .tumblr {
|
|
|
|
background-color: #36465d;
|
2023-07-12 15:42:54 +02:00
|
|
|
}
|
2023-07-29 20:37:29 +02:00
|
|
|
.shareon > .tumblr:before {
|
|
|
|
background-image: url("icons/tumblr.svg");
|
2023-07-12 15:42:54 +02:00
|
|
|
}
|
|
|
|
|
2022-02-10 21:11:40 +01:00
|
|
|
.shareon > .twitter {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-color: #1d9bf0;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .twitter:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/twitter.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .viber {
|
|
|
|
background-color: #7360f2;
|
|
|
|
}
|
|
|
|
.shareon > .viber:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/viber.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.shareon > .vkontakte {
|
2022-02-11 15:59:17 +01:00
|
|
|
background-color: #0077ff;
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
.shareon > .vkontakte:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/vkontakte.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|
|
|
|
|
2023-07-14 23:40:00 +02:00
|
|
|
.shareon > .web-share:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/web-share.svg");
|
2023-07-14 23:40:00 +02:00
|
|
|
}
|
|
|
|
|
2022-02-10 21:11:40 +01:00
|
|
|
.shareon > .whatsapp {
|
|
|
|
background-color: #25d366;
|
|
|
|
}
|
|
|
|
.shareon > .whatsapp:before {
|
2023-07-15 11:35:46 +02:00
|
|
|
background-image: url("icons/whatsapp.svg");
|
2022-02-10 21:11:40 +01:00
|
|
|
}
|