🐛 Fix scroll to top link alignment

Fixes #172
This commit is contained in:
James Panther
2022-04-12 09:17:17 +10:00
parent ff5808b877
commit 972233063c
3 changed files with 17 additions and 1 deletions
+5 -1
View File
@@ -30,7 +30,11 @@
{{- block "main" . }}{{- end }}
{{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}
<div
class="absolute top-[110vh] ltr:right-0 rtl:left-0 w-12 pointer-events-none bottom-[-5.5rem]"
class="absolute top-[110vh] ltr:right-0 rtl:left-0 w-12 pointer-events-none {{ if .Site.Menus.footer -}}
bottom-[-8.25rem] sm:bottom-[-8rem]
{{- else -}}
bottom-[-5.5rem]
{{- end }}"
>
<a
href="#the-top"