diff options
| author | Jieiku | 2022-06-11 20:44:13 -0700 |
|---|---|---|
| committer | Jieiku | 2022-06-11 20:44:13 -0700 |
| commit | 8546859c9d6cbf5347091a36680f7c07440a441a (patch) | |
| tree | 00ac04f0218c4ef8adf80ff27f42391966061909 | |
| parent | d4382358d8fc7f0bc66a86b8fe4bb6d8bafadd15 (diff) | |
| download | abridge-8546859c9d6cbf5347091a36680f7c07440a441a.tar.gz abridge-8546859c9d6cbf5347091a36680f7c07440a441a.tar.bz2 abridge-8546859c9d6cbf5347091a36680f7c07440a441a.zip | |
Hide Back-to-Top on Short Pages
| -rw-r--r-- | sass/include/_top.scss | 4 | ||||
| -rw-r--r-- | templates/page.html | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sass/include/_top.scss b/sass/include/_top.scss index 98b2a61..b9fd406 100644 --- a/sass/include/_top.scss +++ b/sass/include/_top.scss @@ -1,10 +1,12 @@ .top { position: sticky; bottom: 9px; - padding: 9px; + right: 9px; + place-self: end; margin-top: 109vh; + padding: 9px; font-weight:700; border-radius: 9px; color: var(--a1); diff --git a/templates/page.html b/templates/page.html index c653018..eb06ac3 100644 --- a/templates/page.html +++ b/templates/page.html @@ -66,5 +66,11 @@ {%- endblock content %} {%- block gotop %} + +{%- if page.reading_time %} +{%- if page.reading_time > 1 %} <a href="#" class="top">⋏</a> +{%- endif %} +{%- endif %} + {%- endblock gotop %}
\ No newline at end of file |
