diff --git a/apps/explorer_web/assets/css/app.scss b/apps/explorer_web/assets/css/app.scss index f64f0cc99c..fc3012d827 100644 --- a/apps/explorer_web/assets/css/app.scss +++ b/apps/explorer_web/assets/css/app.scss @@ -67,6 +67,7 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts"; @import "components/card"; @import "components/tile"; @import "components/dashboard-banner"; +@import "components/icon-link"; :export { diff --git a/apps/explorer_web/assets/css/components/_card.scss b/apps/explorer_web/assets/css/components/_card.scss index 4c65f8013e..2ffea1da15 100644 --- a/apps/explorer_web/assets/css/components/_card.scss +++ b/apps/explorer_web/assets/css/components/_card.scss @@ -1,5 +1,3 @@ -$card-link-size: 2rem; - .card { border-color: transparent; box-shadow: 0 5px 40px -5px rgba($black, 0.25); @@ -19,31 +17,3 @@ $card-link-size: 2rem; line-height: 2.2rem; margin-bottom: 1rem; } - -.card-links { - position: absolute; - right: 0; - display: flex; - flex-direction: row; - align-items: center; - margin-right: 1rem; - - & > a { - display: flex; - align-items: center; - justify-content: center; - width: $card-link-size; - height: $card-link-size; - margin: 0 .25rem; - color: $text-muted; - background-color: $gray-200; - border-radius: 50%; - transition: all 0.1s ease; - - &:hover { - background-color: $gray-600; - color: $primary; - text-decoration: none; - } - } -} diff --git a/apps/explorer_web/assets/css/components/_footer.scss b/apps/explorer_web/assets/css/components/_footer.scss index f0507ef11b..1f6a3ccc1d 100644 --- a/apps/explorer_web/assets/css/components/_footer.scss +++ b/apps/explorer_web/assets/css/components/_footer.scss @@ -23,35 +23,13 @@ $footer-text-color: rgba($white, 0.7); position: relative; } -.footer .social-links { +.footer .icon-links { position: absolute; right: 0; - display: flex; - flex-direction: row; - align-items: center; @media (max-width: 768px) { position: static; justify-content: center; margin-bottom: 5px; } - - & > a { - display: flex; - align-items: center; - justify-content: center; - width: $social-link-size; - height: $social-link-size; - margin: 0 $footer-padding; - color: $footer-text-color; - background-color: rgba($white, 0.25); - border-radius: 50%; - transition: all 0.1s ease; - - &:hover { - background-color: $white; - color: $primary; - text-decoration: none; - } - } } diff --git a/apps/explorer_web/assets/css/components/_icon-link.scss b/apps/explorer_web/assets/css/components/_icon-link.scss new file mode 100644 index 0000000000..39378cef4d --- /dev/null +++ b/apps/explorer_web/assets/css/components/_icon-link.scss @@ -0,0 +1,37 @@ +.icon-links { + display: flex; + flex-direction: row; + align-items: center; + + .icon-link { + display: flex; + align-items: center; + justify-content: center; + width: 2rem; + height: 2rem; + margin: 0 .25rem; + color: $text-muted; + background-color: $gray-200; + border-radius: 50%; + transition: all 0.1s ease; + + &:hover { + background-color: $primary; + color: $white; + text-decoration: none; + } + } + + &.icon-links-primary { + + .icon-link { + color: $footer-text-color; + background-color: rgba($white, 0.25); + + &:hover { + background-color: $white; + color: $primary; + } + } + } +} diff --git a/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex b/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex index 31983865ea..d40b608252 100644 --- a/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex @@ -13,14 +13,14 @@
-