Browse Source

remove sass dependens

master
artem 4 years ago
parent
commit
60786b3807
  1. 218
      src/components/BloggerButton.vue
  2. 218
      src/components/DiggButton.vue
  3. 218
      src/components/EmailButton.vue
  4. 218
      src/components/EvernoteButton.vue
  5. 218
      src/components/FacebookButton.vue
  6. 218
      src/components/FacebookMessengerButton.vue
  7. 218
      src/components/HatenaButton.vue
  8. 218
      src/components/InstapaperButton.vue
  9. 218
      src/components/LinkedInButton.vue
  10. 218
      src/components/LiveJournalButton.vue
  11. 218
      src/components/OdnoklassnikiButton.vue
  12. 218
      src/components/PinterestButton.vue
  13. 218
      src/components/PocketButton.vue
  14. 218
      src/components/RedditButton.vue
  15. 218
      src/components/RenrenButton.vue
  16. 218
      src/components/TelegramButton.vue
  17. 218
      src/components/TumblrButton.vue
  18. 218
      src/components/TwitterButton.vue
  19. 218
      src/components/ViberButton.vue
  20. 218
      src/components/VkontakteButton.vue
  21. 218
      src/components/WeiboButton.vue
  22. 218
      src/components/WhatsAppButton.vue
  23. 218
      src/components/XingButton.vue

218
src/components/BloggerButton.vue

@ -64,12 +64,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(14, 100%, 57%, 1);
$focus-color: hsla(14, 94%, 82%, 0.4);
$hover-color: hsla(14, 100%, 57%, 0.9);
$painted-color: hsla(14, 77%, 47%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -81,10 +76,8 @@ $painted-color: hsla(14, 77%, 47%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #ff5724;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -97,103 +90,84 @@ $painted-color: hsla(14, 77%, 47%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(252, 186, 166, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(255, 87, 36, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #ff5724;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #ff5724;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #ff5724;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(255, 87, 36, 0.9);
.share-button__counter { border-color: rgba(255, 87, 36, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(255, 87, 36, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #ff5724;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(255, 87, 36, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -202,9 +176,9 @@ $painted-color: hsla(14, 77%, 47%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #d4471c;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -213,23 +187,20 @@ $painted-color: hsla(14, 77%, 47%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #ff5724;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -239,9 +210,9 @@ $painted-color: hsla(14, 77%, 47%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #d4471c;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -253,30 +224,19 @@ $painted-color: hsla(14, 77%, 47%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #ff5724;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -285,46 +245,38 @@ $painted-color: hsla(14, 77%, 47%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/DiggButton.vue

@ -50,12 +50,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(0, 0%, 0%, 1);
$focus-color: hsla(0, 0%, 25%, 0.4);
$hover-color: hsla(0, 0%, 0%, 0.9);
$painted-color: hsla(0, 0%, 0%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -67,10 +62,8 @@ $painted-color: hsla(0, 0%, 0%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: black;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -83,103 +76,84 @@ $painted-color: hsla(0, 0%, 0%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(64, 64, 64, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 0, 0, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: black;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: black;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: black;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 0, 0, 0.9);
.share-button__counter { border-color: rgba(0, 0, 0, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 0, 0, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: black;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 0, 0, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -188,9 +162,9 @@ $painted-color: hsla(0, 0%, 0%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: black;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -199,23 +173,20 @@ $painted-color: hsla(0, 0%, 0%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: black;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -225,9 +196,9 @@ $painted-color: hsla(0, 0%, 0%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: black;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -239,30 +210,19 @@ $painted-color: hsla(0, 0%, 0%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: black;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -271,46 +231,38 @@ $painted-color: hsla(0, 0%, 0%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/EmailButton.vue

@ -50,12 +50,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(194, 77%, 56%, 1);
$focus-color: hsla(194, 77%, 81%, 0.4);
$hover-color: hsla(194, 77%, 56%, 0.9);
$painted-color: hsla(193, 54%, 46%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -67,10 +62,8 @@ $painted-color: hsla(193, 54%, 46%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #38bde5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -83,103 +76,84 @@ $painted-color: hsla(193, 54%, 46%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(169, 226, 244, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(56, 189, 229, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #38bde5;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #38bde5;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #38bde5;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(56, 189, 229, 0.9);
.share-button__counter { border-color: rgba(56, 189, 229, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(56, 189, 229, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #38bde5;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(56, 189, 229, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -188,9 +162,9 @@ $painted-color: hsla(193, 54%, 46%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #3699b5;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -199,23 +173,20 @@ $painted-color: hsla(193, 54%, 46%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #38bde5;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -225,9 +196,9 @@ $painted-color: hsla(193, 54%, 46%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #3699b5;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -239,30 +210,19 @@ $painted-color: hsla(193, 54%, 46%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #38bde5;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -271,46 +231,38 @@ $painted-color: hsla(193, 54%, 46%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/EvernoteButton.vue

@ -60,12 +60,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(136, 100%, 33%, 1);
$focus-color: hsla(136, 94%, 58%, 0.4);
$hover-color: hsla(136, 100%, 33%, 0.9);
$painted-color: hsla(135, 77%, 23%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -77,10 +72,8 @@ $painted-color: hsla(135, 77%, 23%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #00a82d;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -93,103 +86,84 @@ $painted-color: hsla(135, 77%, 23%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(47, 249, 101, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 168, 45, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #00a82d;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #00a82d;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #00a82d;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 168, 45, 0.9);
.share-button__counter { border-color: rgba(0, 168, 45, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 168, 45, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #00a82d;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 168, 45, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -198,9 +172,9 @@ $painted-color: hsla(135, 77%, 23%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #0d6824;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -209,23 +183,20 @@ $painted-color: hsla(135, 77%, 23%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #00a82d;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -235,9 +206,9 @@ $painted-color: hsla(135, 77%, 23%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #0d6824;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -249,30 +220,19 @@ $painted-color: hsla(135, 77%, 23%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #00a82d;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -281,46 +241,38 @@ $painted-color: hsla(135, 77%, 23%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/FacebookButton.vue

@ -103,12 +103,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(221, 44%, 41%, 1);
$focus-color: hsla(221, 38%, 66%, 0.4);
$hover-color: hsla(221, 44%, 41%, 0.9);
$painted-color: hsla(220, 21%, 31%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -120,10 +115,8 @@ $painted-color: hsla(220, 21%, 31%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #3b5897;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -136,103 +129,84 @@ $painted-color: hsla(220, 21%, 31%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(135, 156, 201, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(59, 88, 151, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #3b5897;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #3b5897;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #3b5897;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(59, 88, 151, 0.9);
.share-button__counter { border-color: rgba(59, 88, 151, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(59, 88, 151, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #3b5897;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(59, 88, 151, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -241,9 +215,9 @@ $painted-color: hsla(220, 21%, 31%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #3e4a60;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -252,23 +226,20 @@ $painted-color: hsla(220, 21%, 31%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #3b5897;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -278,9 +249,9 @@ $painted-color: hsla(220, 21%, 31%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #3e4a60;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -292,30 +263,19 @@ $painted-color: hsla(220, 21%, 31%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #3b5897;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -324,46 +284,38 @@ $painted-color: hsla(220, 21%, 31%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/FacebookMessengerButton.vue

@ -42,12 +42,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsl(208, 82%, 48%);
$focus-color: hsla(208, 82%, 48%, 0.4);
$hover-color: hsla(208, 82%, 48%, 0.7);
$painted-color: hsla(208, 82%, 48%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -59,10 +54,8 @@ $painted-color: hsla(208, 82%, 48%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #1681df;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -75,103 +68,84 @@ $painted-color: hsla(208, 82%, 48%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(22, 129, 223, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(22, 129, 223, 0.7);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #1681df;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #1681df;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #1681df;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(22, 129, 223, 0.7);
.share-button__counter { border-color: rgba(22, 129, 223, 0.7);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(22, 129, 223, 0.7);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #1681df;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(22, 129, 223, 0.7);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -180,9 +154,9 @@ $painted-color: hsla(208, 82%, 48%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #1681df;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -191,23 +165,20 @@ $painted-color: hsla(208, 82%, 48%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #1681df;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -217,9 +188,9 @@ $painted-color: hsla(208, 82%, 48%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #1681df;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -231,30 +202,19 @@ $painted-color: hsla(208, 82%, 48%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #1681df;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -263,46 +223,38 @@ $painted-color: hsla(208, 82%, 48%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/HatenaButton.vue

@ -60,12 +60,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(196, 100%, 44%, 1);
$focus-color: hsla(196, 94%, 69%, 0.4);
$hover-color: hsla(196, 100%, 44%, 0.9);
$painted-color: hsla(195, 77%, 34%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -77,10 +72,8 @@ $painted-color: hsla(195, 77%, 34%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #00a5e0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -93,103 +86,84 @@ $painted-color: hsla(195, 77%, 34%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(102, 211, 250, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 165, 224, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #00a5e0;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #00a5e0;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #00a5e0;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 165, 224, 0.9);
.share-button__counter { border-color: rgba(0, 165, 224, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 165, 224, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #00a5e0;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 165, 224, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -198,9 +172,9 @@ $painted-color: hsla(195, 77%, 34%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #147899;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -209,23 +183,20 @@ $painted-color: hsla(195, 77%, 34%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #00a5e0;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -235,9 +206,9 @@ $painted-color: hsla(195, 77%, 34%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #147899;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -249,30 +220,19 @@ $painted-color: hsla(195, 77%, 34%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #00a5e0;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -281,46 +241,38 @@ $painted-color: hsla(195, 77%, 34%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/InstapaperButton.vue

@ -60,12 +60,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(0, 0%, 12%, 1);
$focus-color: hsla(0, 0%, 37%, 0.4);
$hover-color: hsla(0, 0%, 12%, 0.9);
$painted-color: hsla(0, 0%, 0%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -77,10 +72,8 @@ $painted-color: hsla(0, 0%, 0%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #1f1f1f;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -93,103 +86,84 @@ $painted-color: hsla(0, 0%, 0%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(94, 94, 94, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(31, 31, 31, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #1f1f1f;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #1f1f1f;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #1f1f1f;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(31, 31, 31, 0.9);
.share-button__counter { border-color: rgba(31, 31, 31, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(31, 31, 31, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #1f1f1f;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(31, 31, 31, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -198,9 +172,9 @@ $painted-color: hsla(0, 0%, 0%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: black;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -209,23 +183,20 @@ $painted-color: hsla(0, 0%, 0%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #1f1f1f;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -235,9 +206,9 @@ $painted-color: hsla(0, 0%, 0%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: black;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -249,30 +220,19 @@ $painted-color: hsla(0, 0%, 0%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #1f1f1f;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -281,46 +241,38 @@ $painted-color: hsla(0, 0%, 0%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/LinkedInButton.vue

@ -103,12 +103,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(201, 100%, 35%, 1);
$focus-color: hsla(201, 94%, 60%, 0.4);
$hover-color: hsla(201, 100%, 35%, 0.9);
$painted-color: hsla(200, 77%, 25%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -120,10 +115,8 @@ $painted-color: hsla(200, 77%, 25%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #0074b3;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -136,103 +129,84 @@ $painted-color: hsla(200, 77%, 25%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(57, 182, 249, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 116, 179, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #0074b3;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #0074b3;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #0074b3;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 116, 179, 0.9);
.share-button__counter { border-color: rgba(0, 116, 179, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 116, 179, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #0074b3;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 116, 179, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -241,9 +215,9 @@ $painted-color: hsla(200, 77%, 25%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #0f5071;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -252,23 +226,20 @@ $painted-color: hsla(200, 77%, 25%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #0074b3;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -278,9 +249,9 @@ $painted-color: hsla(200, 77%, 25%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #0f5071;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -292,30 +263,19 @@ $painted-color: hsla(200, 77%, 25%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #0074b3;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -324,46 +284,38 @@ $painted-color: hsla(200, 77%, 25%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/LiveJournalButton.vue

@ -60,12 +60,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(195, 100%, 46%, 1);
$focus-color: hsla(195, 94%, 71%, 0.4);
$hover-color: hsla(195, 100%, 46%, 0.9);
$painted-color: hsla(194, 77%, 36%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -77,10 +72,8 @@ $painted-color: hsla(194, 77%, 36%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #00b0eb;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -93,103 +86,84 @@ $painted-color: hsla(194, 77%, 36%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(112, 216, 251, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 176, 235, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #00b0eb;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #00b0eb;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #00b0eb;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 176, 235, 0.9);
.share-button__counter { border-color: rgba(0, 176, 235, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 176, 235, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #00b0eb;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 176, 235, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -198,9 +172,9 @@ $painted-color: hsla(194, 77%, 36%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #1581a2;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -209,23 +183,20 @@ $painted-color: hsla(194, 77%, 36%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #00b0eb;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -235,9 +206,9 @@ $painted-color: hsla(194, 77%, 36%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #1581a2;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -249,30 +220,19 @@ $painted-color: hsla(194, 77%, 36%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #00b0eb;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -281,46 +241,38 @@ $painted-color: hsla(194, 77%, 36%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/OdnoklassnikiButton.vue

@ -104,12 +104,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(24, 91%, 53%, 1);
$focus-color: hsla(24, 85%, 78%, 0.4);
$hover-color: hsla(24, 91%, 53%, 0.9);
$painted-color: hsla(23, 68%, 43%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -121,10 +116,8 @@ $painted-color: hsla(23, 68%, 43%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #f4711a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -137,103 +130,84 @@ $painted-color: hsla(23, 68%, 43%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(247, 189, 151, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(244, 113, 26, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #f4711a;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #f4711a;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #f4711a;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(244, 113, 26, 0.9);
.share-button__counter { border-color: rgba(244, 113, 26, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(244, 113, 26, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #f4711a;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(244, 113, 26, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -242,9 +216,9 @@ $painted-color: hsla(23, 68%, 43%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #b85c23;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -253,23 +227,20 @@ $painted-color: hsla(23, 68%, 43%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #f4711a;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -279,9 +250,9 @@ $painted-color: hsla(23, 68%, 43%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #b85c23;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -293,30 +264,19 @@ $painted-color: hsla(23, 68%, 43%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #f4711a;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -325,46 +285,38 @@ $painted-color: hsla(23, 68%, 43%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/PinterestButton.vue

@ -108,12 +108,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(353, 92%, 39%, 1);
$focus-color: hsla(353, 86%, 64%, 0.4);
$hover-color: hsla(353, 92%, 39%, 0.9);
$painted-color: hsla(352, 69%, 29%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -125,10 +120,8 @@ $painted-color: hsla(352, 69%, 29%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #bf081d;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -141,103 +134,84 @@ $painted-color: hsla(352, 69%, 29%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(242, 84, 103, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(191, 8, 29, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #bf081d;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #bf081d;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #bf081d;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(191, 8, 29, 0.9);
.share-button__counter { border-color: rgba(191, 8, 29, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(191, 8, 29, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #bf081d;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(191, 8, 29, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -246,9 +220,9 @@ $painted-color: hsla(352, 69%, 29%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #7d1725;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -257,23 +231,20 @@ $painted-color: hsla(352, 69%, 29%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #bf081d;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -283,9 +254,9 @@ $painted-color: hsla(352, 69%, 29%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #7d1725;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -297,30 +268,19 @@ $painted-color: hsla(352, 69%, 29%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #bf081d;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -329,46 +289,38 @@ $painted-color: hsla(352, 69%, 29%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/PocketButton.vue

@ -53,12 +53,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(352, 85%, 59%, 1);
$focus-color: hsla(352, 79%, 84%, 0.4);
$hover-color: hsla(352, 85%, 59%, 0.9);
$painted-color: hsla(351, 62%, 49%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -70,10 +65,8 @@ $painted-color: hsla(351, 62%, 49%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #ef3e55;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -86,103 +79,84 @@ $painted-color: hsla(351, 62%, 49%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(246, 182, 191, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(239, 62, 85, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #ef3e55;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #ef3e55;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #ef3e55;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(239, 62, 85, 0.9);
.share-button__counter { border-color: rgba(239, 62, 85, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(239, 62, 85, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #ef3e55;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(239, 62, 85, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -191,9 +165,9 @@ $painted-color: hsla(351, 62%, 49%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #ca2f47;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -202,23 +176,20 @@ $painted-color: hsla(351, 62%, 49%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #ef3e55;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -228,9 +199,9 @@ $painted-color: hsla(351, 62%, 49%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #ca2f47;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -242,30 +213,19 @@ $painted-color: hsla(351, 62%, 49%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #ef3e55;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -274,46 +234,38 @@ $painted-color: hsla(351, 62%, 49%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/RedditButton.vue

@ -57,12 +57,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(16, 100%, 50%, 1);
$focus-color: hsla(16, 94%, 75%, 0.4);
$hover-color: hsla(16, 100%, 50%, 0.9);
$painted-color: hsla(15, 77%, 40%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -74,10 +69,8 @@ $painted-color: hsla(15, 77%, 40%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #ff4400;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -90,103 +83,84 @@ $painted-color: hsla(15, 77%, 40%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(251, 163, 131, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(255, 68, 0, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #ff4400;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #ff4400;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #ff4400;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(255, 68, 0, 0.9);
.share-button__counter { border-color: rgba(255, 68, 0, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(255, 68, 0, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #ff4400;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(255, 68, 0, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -195,9 +169,9 @@ $painted-color: hsla(15, 77%, 40%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #b53f17;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -206,23 +180,20 @@ $painted-color: hsla(15, 77%, 40%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #ff4400;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -232,9 +203,9 @@ $painted-color: hsla(15, 77%, 40%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #b53f17;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -246,30 +217,19 @@ $painted-color: hsla(15, 77%, 40%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #ff4400;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -278,46 +238,38 @@ $painted-color: hsla(15, 77%, 40%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/RenrenButton.vue

@ -58,12 +58,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(207, 71%, 45%, 1);
$focus-color: hsla(207, 65%, 50%, 0.4);
$hover-color: hsla(207, 71%, 45%, 0.9);
$painted-color: hsla(206, 48%, 35%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -75,10 +70,8 @@ $painted-color: hsla(206, 48%, 35%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #217bc4;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -91,103 +84,84 @@ $painted-color: hsla(206, 48%, 35%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(45, 136, 210, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(33, 123, 196, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #217bc4;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #217bc4;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #217bc4;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(33, 123, 196, 0.9);
.share-button__counter { border-color: rgba(33, 123, 196, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(33, 123, 196, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #217bc4;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(33, 123, 196, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -196,9 +170,9 @@ $painted-color: hsla(206, 48%, 35%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #2e5f84;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -207,23 +181,20 @@ $painted-color: hsla(206, 48%, 35%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #217bc4;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -233,9 +204,9 @@ $painted-color: hsla(206, 48%, 35%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #2e5f84;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -247,30 +218,19 @@ $painted-color: hsla(206, 48%, 35%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #217bc4;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -279,46 +239,38 @@ $painted-color: hsla(206, 48%, 35%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/TelegramButton.vue

@ -45,12 +45,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(200, 74%, 53%, 1);
$focus-color: hsla(200, 68%, 78%, 0.4);
$hover-color: hsla(200, 74%, 53%, 0.9);
$painted-color: hsla(199, 51%, 43%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -62,10 +57,8 @@ $painted-color: hsla(199, 51%, 43%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #2ea5e0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -78,103 +71,84 @@ $painted-color: hsla(199, 51%, 43%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(161, 212, 237, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(46, 165, 224, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #2ea5e0;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #2ea5e0;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #2ea5e0;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(46, 165, 224, 0.9);
.share-button__counter { border-color: rgba(46, 165, 224, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(46, 165, 224, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #2ea5e0;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(46, 165, 224, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -183,9 +157,9 @@ $painted-color: hsla(199, 51%, 43%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #3682a6;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -194,23 +168,20 @@ $painted-color: hsla(199, 51%, 43%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #2ea5e0;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -220,9 +191,9 @@ $painted-color: hsla(199, 51%, 43%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #3682a6;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -234,30 +205,19 @@ $painted-color: hsla(199, 51%, 43%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #2ea5e0;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -266,46 +226,38 @@ $painted-color: hsla(199, 51%, 43%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/TumblrButton.vue

@ -107,12 +107,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(215, 27%, 29%, 1);
$focus-color: hsla(215, 21%, 54%, 0.4);
$hover-color: hsla(215, 27%, 29%, 0.9);
$painted-color: hsla(214, 4%, 19%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -124,10 +119,8 @@ $painted-color: hsla(214, 4%, 19%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #36475e;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -140,103 +133,84 @@ $painted-color: hsla(214, 4%, 19%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(113, 134, 162, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(54, 71, 94, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #36475e;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #36475e;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #36475e;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(54, 71, 94, 0.9);
.share-button__counter { border-color: rgba(54, 71, 94, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(54, 71, 94, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #36475e;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(54, 71, 94, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -245,9 +219,9 @@ $painted-color: hsla(214, 4%, 19%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #2f3032;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -256,23 +230,20 @@ $painted-color: hsla(214, 4%, 19%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #36475e;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -282,9 +253,9 @@ $painted-color: hsla(214, 4%, 19%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #2f3032;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -296,30 +267,19 @@ $painted-color: hsla(214, 4%, 19%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #36475e;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -328,46 +288,38 @@ $painted-color: hsla(214, 4%, 19%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/TwitterButton.vue

@ -62,12 +62,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(203, 89%, 53%, 1);
$focus-color: hsla(203, 82%, 78%, 0.4);
$hover-color: hsla(203, 89%, 53%, 0.9);
$painted-color: hsla(202, 66%, 43%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -79,10 +74,8 @@ $painted-color: hsla(202, 66%, 43%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #1ca0f2;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -95,103 +88,84 @@ $painted-color: hsla(202, 66%, 43%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(153, 210, 245, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(28, 160, 242, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #1ca0f2;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #1ca0f2;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #1ca0f2;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(28, 160, 242, 0.9);
.share-button__counter { border-color: rgba(28, 160, 242, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(28, 160, 242, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #1ca0f2;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(28, 160, 242, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -200,9 +174,9 @@ $painted-color: hsla(202, 66%, 43%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #2581b6;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -211,23 +185,20 @@ $painted-color: hsla(202, 66%, 43%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #1ca0f2;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -237,9 +208,9 @@ $painted-color: hsla(202, 66%, 43%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #2581b6;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -251,30 +222,19 @@ $painted-color: hsla(202, 66%, 43%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #1ca0f2;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -283,46 +243,38 @@ $painted-color: hsla(202, 66%, 43%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/ViberButton.vue

@ -51,12 +51,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(248, 33%, 52%, 1);
$focus-color: hsla(248, 27%, 77%, 0.4);
$hover-color: hsla(248, 33%, 52%, 0.9);
$painted-color: hsla(247, 10%, 42%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -68,10 +63,8 @@ $painted-color: hsla(247, 10%, 42%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #675cad;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -84,103 +77,84 @@ $painted-color: hsla(247, 10%, 42%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(185, 181, 212, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(103, 92, 173, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #675cad;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #675cad;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #675cad;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(103, 92, 173, 0.9);
.share-button__counter { border-color: rgba(103, 92, 173, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(103, 92, 173, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #675cad;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(103, 92, 173, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -189,9 +163,9 @@ $painted-color: hsla(247, 10%, 42%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #636076;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -200,23 +174,20 @@ $painted-color: hsla(247, 10%, 42%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #675cad;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -226,9 +197,9 @@ $painted-color: hsla(247, 10%, 42%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #636076;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -240,30 +211,19 @@ $painted-color: hsla(247, 10%, 42%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #675cad;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -272,46 +232,38 @@ $painted-color: hsla(247, 10%, 42%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/VkontakteButton.vue

@ -116,12 +116,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(212, 28%, 52%, 1);
$focus-color: hsla(212, 22%, 77%, 0.4);
$hover-color: hsla(212, 28%, 52%, 0.9);
$painted-color: hsla(211, 5%, 42%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -133,10 +128,8 @@ $painted-color: hsla(211, 5%, 42%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #6282a7;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -149,103 +142,84 @@ $painted-color: hsla(211, 5%, 42%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(183, 195, 209, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(98, 130, 167, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #6282a7;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #6282a7;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #6282a7;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(98, 130, 167, 0.9);
.share-button__counter { border-color: rgba(98, 130, 167, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(98, 130, 167, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #6282a7;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(98, 130, 167, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -254,9 +228,9 @@ $painted-color: hsla(211, 5%, 42%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #666b70;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -265,23 +239,20 @@ $painted-color: hsla(211, 5%, 42%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #6282a7;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -291,9 +262,9 @@ $painted-color: hsla(211, 5%, 42%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #666b70;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -305,30 +276,19 @@ $painted-color: hsla(211, 5%, 42%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #6282a7;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -337,46 +297,38 @@ $painted-color: hsla(211, 5%, 42%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/WeiboButton.vue

@ -66,12 +66,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(181, 100%, 20%, 1);
$focus-color: hsla(181, 94%, 45%, 0.4);
$hover-color: hsla(181, 100%, 20%, 0.9);
$painted-color: hsla(180, 77%, 10%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -83,10 +78,8 @@ $painted-color: hsla(180, 77%, 10%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #006466;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -99,103 +92,84 @@ $painted-color: hsla(180, 77%, 10%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(7, 219, 223, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 100, 102, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #006466;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #006466;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #006466;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 100, 102, 0.9);
.share-button__counter { border-color: rgba(0, 100, 102, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 100, 102, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #006466;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 100, 102, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -204,9 +178,9 @@ $painted-color: hsla(180, 77%, 10%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #062d2d;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -215,23 +189,20 @@ $painted-color: hsla(180, 77%, 10%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #006466;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -241,9 +212,9 @@ $painted-color: hsla(180, 77%, 10%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #062d2d;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -255,30 +226,19 @@ $painted-color: hsla(180, 77%, 10%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #006466;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -287,46 +247,38 @@ $painted-color: hsla(180, 77%, 10%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/WhatsAppButton.vue

@ -41,12 +41,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(142, 70%, 49%, 1);
$focus-color: hsla(142, 64%, 74%, 0.4);
$hover-color: hsla(142, 70%, 49%, 0.9);
$painted-color: hsla(141, 47%, 39%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -58,10 +53,8 @@ $painted-color: hsla(141, 47%, 39%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #25d466;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -74,103 +67,84 @@ $painted-color: hsla(141, 47%, 39%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(146, 231, 177, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(37, 212, 102, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #25d466;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #25d466;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #25d466;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(37, 212, 102, 0.9);
.share-button__counter { border-color: rgba(37, 212, 102, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(37, 212, 102, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #25d466;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(37, 212, 102, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -179,9 +153,9 @@ $painted-color: hsla(141, 47%, 39%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #359255;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -190,23 +164,20 @@ $painted-color: hsla(141, 47%, 39%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #25d466;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -216,9 +187,9 @@ $painted-color: hsla(141, 47%, 39%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #359255;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -230,30 +201,19 @@ $painted-color: hsla(141, 47%, 39%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #25d466;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -262,46 +222,38 @@ $painted-color: hsla(141, 47%, 39%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

218
src/components/XingButton.vue

@ -53,12 +53,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="css" scoped>
$main-color: hsla(181, 100%, 20%, 1);
$focus-color: hsla(181, 94%, 45%, 0.4);
$hover-color: hsla(181, 100%, 20%, 0.9);
$painted-color: hsla(180, 77%, 10%, 1);
.share-button * { .share-button * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -70,10 +65,8 @@ $painted-color: hsla(180, 77%, 10%, 1);
padding: 10px 8px; padding: 10px 8px;
margin: 4px; margin: 4px;
color: #fff; color: #fff;
background-color: $main-color; background-color: #006466;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
font-weight: 400; font-weight: 400;
vertical-align: top; vertical-align: top;
user-select: none; user-select: none;
@ -86,103 +79,84 @@ $painted-color: hsla(180, 77%, 10%, 1);
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
text-shadow: none; text-shadow: none;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
border-color 0.3s ease-in-out; }
.share-button:disabled {
&:disabled {
opacity: 0.9; opacity: 0.9;
} }
.share-button:focus {
&:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px $focus-color; box-shadow: 0 0 0 3px rgba(7, 219, 223, 0.4);
} }
.share-button:hover {
&:hover { background-color: rgba(0, 100, 102, 0.9);
background-color: $hover-color; }
} .share-button:not(:disabled):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer; cursor: pointer;
} }
.share-button:last-child {
&:last-child {
margin-right: 0; margin-right: 0;
} }
.share-button__icon {
&__icon {
display: inline-block; display: inline-block;
padding: 0; padding: 0;
margin: 0 7px; margin: 0 7px;
font-size: 0; font-size: 0;
vertical-align: middle; vertical-align: middle;
}
path { .share-button__icon path {
fill: #fff; fill: #fff;
} }
.share-button__icon:last-child {
&:last-child {
margin: 0; margin: 0;
} }
} .share-button__text {
&__text {
display: inline-block; display: inline-block;
margin: 0 7px; margin: 0 7px;
font-size: 16px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
.share-button__counter {
&__counter {
display: inline-block; display: inline-block;
padding: 3px 10px; padding: 3px 10px;
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
border-left: 1px solid #fff; border-left: 1px solid #fff;
vertical-align: middle; vertical-align: middle;
} }
.share-button--circle {
&--circle {
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
padding: 10px; padding: 10px;
border-radius: 42px; border-radius: 42px;
} }
.share-button--outline {
&--outline {
background-color: transparent; background-color: transparent;
border: 1px solid; border: 1px solid;
background-color: transparent; background-color: transparent;
border-color: $main-color; border-color: #006466;
}
.share-button__text { .share-button--outline .share-button__text {
color: $main-color; color: #006466;
} }
.share-button--outline .share-button__icon path {
.share-button__icon path { fill: #006466;
fill: $main-color; }
} .share-button--outline .share-button__counter {
color: rgba(0, 100, 102, 0.9);
.share-button__counter { border-color: rgba(0, 100, 102, 0.9);
color: $hover-color; }
border-color: $hover-color; .share-button--outline:hover {
}
&:hover {
background-color: transparent; background-color: transparent;
border-color: $hover-color; border-color: rgba(0, 100, 102, 0.9);
}
.share-button__text { .share-button--outline:hover .share-button__text {
color: $main-color; color: #006466;
} }
.share-button--outline:hover .share-button__icon path {
.share-button__icon path { fill: rgba(0, 100, 102, 0.9);
fill: $hover-color; }
} .share-button--painted {
}
}
&--painted {
position: relative; position: relative;
min-width: 42px; min-width: 42px;
min-height: 42px; min-height: 42px;
@ -191,9 +165,9 @@ $painted-color: hsla(180, 77%, 10%, 1);
border-radius: 42px; border-radius: 42px;
background-color: transparent; background-color: transparent;
border: 3px solid; border: 3px solid;
border-color: $painted-color; border-color: #062d2d;
}
&::before { .share-button--painted::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -202,23 +176,20 @@ $painted-color: hsla(180, 77%, 10%, 1);
display: block; display: block;
width: calc(100% + 3px); width: calc(100% + 3px);
height: calc(100% + 3px); height: calc(100% + 3px);
background-color: $main-color; background-color: #006466;
border-radius: 50%; border-radius: 50%;
transform: translate3d(3px, 2px, 0); transform: translate3d(3px, 2px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin: 0; margin: 0;
} }
.share-button--painted .share-button__text {
.share-button__text {
display: none; display: none;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
right: -7px; right: -7px;
@ -228,9 +199,9 @@ $painted-color: hsla(180, 77%, 10%, 1);
font-size: 8px; font-size: 8px;
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
border-color: $painted-color; border-color: #062d2d;
}
&::before { .share-button--painted .share-button__counter::before {
content: ""; content: "";
z-index: -1; z-index: -1;
position: absolute; position: absolute;
@ -242,30 +213,19 @@ $painted-color: hsla(180, 77%, 10%, 1);
border-radius: 15px; border-radius: 15px;
transform: translate3d(-3px, 1.5px, 0); transform: translate3d(-3px, 1.5px, 0);
transition: transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out;
background-color: $main-color; background-color: #006466;
} }
} .share-button--painted:hover::before {
&:hover {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:hover .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
} }
} .share-button--painted:focus::before {
&:focus {
&::before {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.share-button--painted:focus .share-button__counter::before {
.share-button__counter::before {
transform: translate3d(0px, 0px, 0); transform: translate3d(0px, 0px, 0);
}
}
}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -274,46 +234,38 @@ $painted-color: hsla(180, 77%, 10%, 1);
min-height: 38px; min-height: 38px;
padding: 8px 8px; padding: 8px 8px;
margin: 2px; margin: 2px;
}
&__icon { .share-button__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
margin: 0 4px; margin: 0 4px;
} }
.share-button__text {
&__text {
margin: 0 4px; margin: 0 4px;
font-size: 14px; font-size: 14px;
} }
.share-button--circle {
&--circle {
border-radius: 38px; border-radius: 38px;
} }
.share-button--painted {
&--painted {
min-width: 48px; min-width: 48px;
min-height: 48px; min-height: 48px;
margin: 4px 4px 20px 4px; margin: 4px 4px 20px 4px;
}
&::before { .share-button--painted::before {
transform: translate3d(2.5px, 1.5px, 0); transform: translate3d(2.5px, 1.5px, 0);
} }
.share-button--painted .share-button__icon {
.share-button__icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.share-button--painted .share-button__counter {
.share-button__counter {
bottom: -24px; bottom: -24px;
right: -8px; right: -8px;
padding: 2px 7px; padding: 2px 7px;
&::before {
transform: translate3d(-2px, 1.75px, 0);
}
}
} }
.share-button--painted .share-button__counter::before {
transform: translate3d(-2px, 1.75px, 0);
} }
} }
</style> </style>

Loading…
Cancel
Save