diff options
Diffstat (limited to 'themes/blowfish/layouts/partials/scroll-to-top.html')
-rw-r--r-- | themes/blowfish/layouts/partials/scroll-to-top.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/scroll-to-top.html b/themes/blowfish/layouts/partials/scroll-to-top.html new file mode 100644 index 0000000..f84cbb5 --- /dev/null +++ b/themes/blowfish/layouts/partials/scroll-to-top.html @@ -0,0 +1,7 @@ +<div id="top-scroller" class="pointer-events-none absolute top-[110vh] bottom-0 w-12 ltr:right-0 rtl:left-0"> + <a href="#the-top" + class="pointer-events-auto sticky top-[calc(100vh-5.5rem)] flex h-12 w-12 mb-16 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400" + aria-label="{{ i18n "nav.scroll_to_top_title" }}" title="{{ i18n "nav.scroll_to_top_title" }}"> + ↑ + </a> +</div>
\ No newline at end of file |