shareon-pulsanti-condivisio.../src/shareon.css

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

203 lines
3.9 KiB
CSS
Raw Normal View History

: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;
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");
}
.shareon > .facebook {
background-color: #1877f2;
}
.shareon > .facebook:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/facebook.svg");
}
.shareon > .linkedin {
2022-02-11 15:59:17 +01:00
background-color: #0a66c2;
}
.shareon > .linkedin:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/linkedin-in.svg");
}
.shareon > .linkedin:not(:empty):before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/linkedin.svg");
}
.shareon > .mastodon {
2023-01-23 05:55:44 +01:00
background-color: #6364ff;
}
.shareon > .mastodon:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/mastodon.svg");
}
.shareon > .messenger {
2022-02-11 15:59:17 +01:00
background-color: #00b2ff;
}
.shareon > .messenger:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/messenger.svg");
}
.shareon > .odnoklassniki {
background-color: #ee8208;
}
.shareon > .odnoklassniki:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/odnoklassniki.svg");
}
.shareon > .pinterest {
2022-02-11 15:59:17 +01:00
background-color: #bd081c;
}
.shareon > .pinterest:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/pinterest.svg");
}
.shareon > .pocket {
2022-02-11 15:59:17 +01:00
background-color: #ef3f56;
}
.shareon > .pocket:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/pocket.svg");
}
2023-12-07 16:44:54 +01:00
.shareon > .print:before {
background-image: url("icons/print.svg");
}
.shareon > .reddit {
background-color: #ff4500;
}
.shareon > .reddit:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/reddit.svg");
}
.shareon > .teams {
background-color: #6264a7;
}
.shareon > .teams:before {
background-image: url("icons/teams.svg");
}
.shareon > .telegram {
2022-02-11 15:59:17 +01:00
background-color: #26a5e4;
}
.shareon > .telegram:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/telegram.svg");
}
.shareon > .tumblr {
background-color: #36465d;
}
.shareon > .tumblr:before {
background-image: url("icons/tumblr.svg");
}
.shareon > .twitter {
2023-07-15 11:35:46 +02:00
background-color: #1d9bf0;
}
.shareon > .twitter:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/twitter.svg");
}
.shareon > .viber {
background-color: #7360f2;
}
.shareon > .viber:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/viber.svg");
}
.shareon > .vkontakte {
2022-02-11 15:59:17 +01:00
background-color: #0077ff;
}
.shareon > .vkontakte:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/vkontakte.svg");
}
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
}
.shareon > .whatsapp {
background-color: #25d366;
}
.shareon > .whatsapp:before {
2023-07-15 11:35:46 +02:00
background-image: url("icons/whatsapp.svg");
}