From c8b2297f7825e1da6f2b2ccd00a35ac542f8d884 Mon Sep 17 00:00:00 2001 From: tsmitty11 Date: Thu, 18 May 2023 18:16:56 +0200 Subject: [PATCH] Styling for share icons --- src/layouts/_default/single.html | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/layouts/_default/single.html b/src/layouts/_default/single.html index 7b83575..8033407 100644 --- a/src/layouts/_default/single.html +++ b/src/layouts/_default/single.html @@ -20,9 +20,9 @@ {{ partial "sidebar" . }} @@ -53,15 +53,34 @@ .share-links { position: fixed; - left: 0; + left: -15px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; + z-index: 100; } .share-links a { - margin-bottom: 10px; + margin-bottom: 2px; + border: 1px solid #949494; + width: 40px; + height: 40px; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + background-color: #1a1a1a; +} + +.share-links a:hover { + color: #1a1a1a; + background-color: #00ffd0; +} + +.share-links a i { + display: inline-block; + vertical-align: middle; }