diff --git a/assets/ananke/css/custom.css b/assets/ananke/css/custom.css index 8fe8b0d..614334d 100644 --- a/assets/ananke/css/custom.css +++ b/assets/ananke/css/custom.css @@ -26,7 +26,8 @@ .share-buttons { - position: fixed; + position: sticky; + width: 50px; top: 50%; left: 0; transform: translateY(-50%); @@ -49,11 +50,6 @@ background-color: #555; } -.icon svg { - height: 50px; - width: 50px -} - .facebook-share { background-color: #3b5998; } .pinterest-share { background-color: #bd081c; } -.x-share { background-color: #333; } \ No newline at end of file +.x-share { background-color: #000000; } \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dc3cd55..36a8fbf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,7 +14,6 @@ */}} {{ .CurrentSection.Title }} - {{ partial "social-share.html" . }}

{{- .Title -}}

@@ -62,6 +61,7 @@ diff --git a/layouts/partials/social-share.html b/layouts/partials/social-share.html index 5f0f232..4ffbdd0 100644 --- a/layouts/partials/social-share.html +++ b/layouts/partials/social-share.html @@ -24,12 +24,13 @@ {{ end }} */}} -
+
+ Share! {{ range $service := $services }} {{ $href := index $hrefs .name }} - {{ end }}