diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 64ff558d6..d993372ab 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1538,34 +1538,22 @@ table { .button.button-twitter, .button.button-facebook, .button.button-google, -.button.button-wordpress, -.button.button-telegram { - background: #fff; +.button.button-wordpress { color: $text; font-weight: bold; - height: $line-height * 2; - line-height: $line-height * 2; - padding: 0; - position: relative; &::before { - font-family: "icons" !important; font-size: rem-calc(24); - left: 0; - line-height: $line-height * 2; - padding: 0 rem-calc(20); - position: absolute; - top: 0; } } .button.button-twitter { + @include has-fa-icon(twitter, brands); background: #ecf7fc; border-left: 3px solid #45b0e3; &::before { color: #45b0e3; - content: "f"; } } @@ -1573,17 +1561,13 @@ table { background-image: none; color: #fff; height: $icon-width; - position: relative; + line-height: $icon-width; + text-align: center; width: $icon-width; &::before { - font-family: "icons"; - font-size: rem-calc(24); - left: 50%; - line-height: $line-height * 2; - margin-left: rem-calc(-11); - position: absolute; - top: 0; + font-size: $icon-width / 2; + margin-right: 0; } &:hover, @@ -1593,12 +1577,9 @@ table { } .ssb-twitter { + @include has-fa-icon(twitter, brands); background: #45b0e3; - &::before { - content: "f"; - } - &:hover, &:focus { color: #40a2d1; @@ -1606,22 +1587,19 @@ table { } .button.button-facebook { + @include has-fa-icon(facebook-f, brands); background: #ebeef4; border-left: 3px solid #3b5998; &::before { color: #3b5998; - content: "A"; } } .ssb-facebook { + @include has-fa-icon(facebook-f, brands); background: #3b5998; - &::before { - content: "A"; - } - &:hover, &:focus { color: #354f88; @@ -1629,42 +1607,29 @@ table { } .button.button-google { + @include has-fa-icon(google, brands); background: #fcedea; border-left: 3px solid #de4c34; &::before { color: #de4c34; - content: "B"; } } .button.button-wordpress { + @include has-fa-icon(wordpress, brands); background: #dcdde3; border-left: 3px solid #2f2f33; &::before { color: #2f2f33; - content: "J"; - } -} - -.button.button-telegram { - background: #ecf7fc; - border-left: 3px solid #08c; - - &::before { - color: #08c; - content: "1"; } } .ssb-telegram { + @include has-fa-icon(telegram-plane, brands); background: #08c; - &::before { - content: "1"; - } - &:hover, &:focus { color: #40a2d1; @@ -1672,12 +1637,9 @@ table { } .ssb-whatsapp_app { + @include has-fa-icon(whatsapp, brands); background: #43d854; - &::before { - content: "P"; - } - &:hover, &:focus { color: #43d854; @@ -1686,7 +1648,6 @@ table { @include breakpoint(medium) { - .button.button-telegram, .ssb-telegram, .ssb-whatsapp_app { display: none !important; diff --git a/app/assets/stylesheets/mixins.scss b/app/assets/stylesheets/mixins.scss index 0974541c1..534d0b6c9 100644 --- a/app/assets/stylesheets/mixins.scss +++ b/app/assets/stylesheets/mixins.scss @@ -169,10 +169,14 @@ &::before { @extend %font-icon; - @if $style == "regular" { - font-weight: normal; - } @else { + @if $style == "solid" { font-weight: bold; + } @else { + font-weight: normal; + } + + @if $style == "brands" { + font-family: "Font Awesome 5 Brands"; } }