From 0eecfb50ea9608039aadd10ce2b5962816a765f2 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 20 Feb 2020 16:47:45 +0000 Subject: [PATCH] improve social link styling --- assets/scss/_content.scss | 37 +++++++++++++++++++++++++++++++++---- layouts/partials/home.html | 13 ++++++++++--- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index 3197859..ee8c5c9 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -86,6 +86,39 @@ font-weight: bold; font-size: 0.95em; } + + .social-links { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + flex-wrap: wrap; + } + + .social-link-icon { + font-size: 1em; + height: 2em; + margin-bottom: 1rem; + + display: flex; + + &:link { + text-decoration: none; + } + + &--svg { + svg { + height: 100%; + } + } + + &--text { + height: auto; + font-size: 1.3em; + line-height: 1; + font-weight: bold; + } + } } div.content .meta-tag { @@ -254,7 +287,6 @@ div.content .meta-tag { text-transform: uppercase; margin-left: 1rem; margin-right: 1rem; - font-size: 1.6rem; &:hover, &:focus { color: $link-color; @@ -262,9 +294,6 @@ div.content .meta-tag { @media only screen and (max-width: 768px) { font-size: 1.4rem; } - i { - font-size: 3.2rem; - } } } } diff --git a/layouts/partials/home.html b/layouts/partials/home.html index e6ab9ce..c06bc0e 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -6,17 +6,24 @@

{{ .Site.Params.author }}

{{ .Site.Params.info }}

{{ with .Site.Params.social }} -