From 8ff1f10eb734eb075de2da7ebc012a5eb50fbe91 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 2 Oct 2020 13:36:57 +0530 Subject: [PATCH] social-icons: use height and with as css props; rm hardcoded svg height and width --- assets/css/main.css | 11 ++-- layouts/partials/svg.html | 119 +++++++++++++++++++------------------- 2 files changed, 65 insertions(+), 65 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 68899665..8b6c492d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -43,8 +43,11 @@ padding: 12px 0; } -.social-icons a { - margin: 2px; - padding: 6px; - font-size: 1.4em; +.social-icons a:not(:last-of-type) { + margin-right: 12px; +} + +.social-icons a svg { + height: 26px; + width: 26px; } \ No newline at end of file diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index e6dea694..30722642 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -1,27 +1,27 @@ {{- if (eq .name "123rf") -}} - + {{- else if (eq .name "adobestock") -}} - + {{- else if (eq .name "behance") -}} - + {{- else if (eq .name "codepen") -}} - + @@ -29,8 +29,7 @@ {{- else if (eq .name "cryptohack") -}} - + {{- else if (eq .name "dev") -}} - + {{- else if (eq .name "discogs") -}} - + {{- else if (eq .name "dreamstime") -}} - + {{- else if (eq .name "dribbble") -}} - + {{- else if (eq .name "email") -}} - + {{- else if (eq .name "facebook") -}} - + {{- else if (eq .name "freepik") -}} - + @@ -87,23 +86,22 @@ {{- else if (eq .name "github") -}} - + {{- else if (eq .name "gitlab") -}} - + {{- else if (eq .name "hackerrank") -}} + preserveAspectRatio="xMidYMid meet" viewBox="0 0 50 35" fill="currentColor" stroke-width="0" stroke="currentColor"> {{- else if (eq .name "hackthebox") -}} + preserveAspectRatio="xMidYMid meet" viewBox="0 0 64 64" fill="currentColor" stroke="currentColor"> @@ -124,63 +121,63 @@ {{- else if (eq .name "instagram") -}} - + {{- else if (eq .name "lastfm") -}} - + {{- else if (eq .name "linkedin") -}} - + {{- else if (eq .name "mixcloud") -}} - + {{- else if (eq .name "paypal") -}} - + {{- else if (eq .name "qq") -}} - + {{- else if (eq .name "rss") -}} - + {{- else if (eq .name "soundcloud") -}} - + {{- else if (eq .name "shutterstock") -}} - + {{- else if (eq .name "slack") -}} - + @@ -188,7 +185,7 @@ {{- else if (eq .name "sourcerer") -}} - {{- else if (eq .name "stackoverflow") -}} - + {{- else if (eq .name "steam") -}} - + {{- else if (eq .name "telegram") -}} - + {{- else if (eq .name "twitch") -}} - + {{- else if (eq .name "twitter") -}} - + {{- else if (eq .name "youtube") -}} - + {{- else if .name -}} - +