mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
feat: move share buttons
This commit is contained in:
parent
46e4abaf79
commit
c6d1e8aecf
@ -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; }
|
||||
.x-share { background-color: #000000; }
|
@ -14,7 +14,6 @@
|
||||
*/}}
|
||||
{{ .CurrentSection.Title }}
|
||||
</aside>
|
||||
{{ partial "social-share.html" . }}
|
||||
<h1 class="f1 athelas mt3 mb1">
|
||||
{{- .Title -}}
|
||||
</h1>
|
||||
@ -62,6 +61,7 @@
|
||||
</div>
|
||||
|
||||
<aside class="w-30-l mt6-l">
|
||||
{{ partial "social-share.html" . }}
|
||||
{{- partial "menu-contextual.html" . -}}
|
||||
</aside>
|
||||
|
||||
|
@ -24,12 +24,13 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
</div> */}}
|
||||
<div id="sharing" class="share-buttons" class="mt3 ananke-socials">
|
||||
<div id="sharing" class="ananke-socials share-buttons">
|
||||
<span class="i">Share!<span>
|
||||
{{ range $service := $services }}
|
||||
{{ $href := index $hrefs .name }}
|
||||
<a href="{{ $href }}" class="share-btn ananke-social-link {{ .name }}-share no-underline" aria-label="share on {{ .label }}">
|
||||
<a href="{{ $href }}" class="share-btn ananke-social-link {{ .name }}-share no-underline" title="Share on {{ .label }}" aria-label="share on {{ .label }}">
|
||||
{{ with .icon }}
|
||||
<span class="icon"> {{ . }}</span>
|
||||
<span class="icon">{{ . }}</span>
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user