From b94ddaee4d084521d502cf789ab1a1ed9e4875ea Mon Sep 17 00:00:00 2001 From: semanticdata Date: Wed, 16 Oct 2024 13:44:39 -0500 Subject: [PATCH] smooth back to top animation --- sass/_pagination.scss | 1 + templates/page.html | 2 +- templates/partials/back-to-top.html | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 templates/partials/back-to-top.html diff --git a/sass/_pagination.scss b/sass/_pagination.scss index 9e7e5f4..c311677 100644 --- a/sass/_pagination.scss +++ b/sass/_pagination.scss @@ -21,6 +21,7 @@ &:hover { opacity: 1; + cursor: pointer; } } diff --git a/templates/page.html b/templates/page.html index 04cb946..8631244 100644 --- a/templates/page.html +++ b/templates/page.html @@ -21,7 +21,7 @@

{{ page.title }}

{% if page.higher -%} {%- endif %} - Top + {% include "partials/back-to-top.html" %} {% if page.lower -%} {%- endif %} diff --git a/templates/partials/back-to-top.html b/templates/partials/back-to-top.html new file mode 100644 index 0000000..d66cfff --- /dev/null +++ b/templates/partials/back-to-top.html @@ -0,0 +1,6 @@ +Top + \ No newline at end of file