From 0b1e949609f0483286f315b2ad72d6d39087951f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 20 Feb 2022 15:24:08 +0200 Subject: Implemented scrolling to top button --- src/styles.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index 7024177..b391ba2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -373,12 +373,27 @@ code span { left: 0; top: 0; padding: 1em; + z-index: 2; } .body-on-clicked-image { overflow: hidden; } +.btnBackToTop { + font-size: 1rem; + position: fixed; + right: 1em; + bottom: 1em; + z-index: 1; + border: 1px solid; + transition-duration: 0.5s; +} + +.btnBackToTop:hover { + cursor: pointer; +} + /* OpenSans font */ @font-face { -- cgit v1.3.1-26-gb76a From 009cb25eb083bbc5ccc0d26977dfc47e0b7166bb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 20 Feb 2022 18:12:31 +0200 Subject: Reworked go to top button as an image --- src/_footer.html | 4 +--- src/about.md | 2 +- src/img/chevrons-up-tabler.svg | 53 ++++++++++++++++++++++++++++++++++++++++++ src/scripts/image-show.js | 2 +- src/styles.css | 1 + 5 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 src/img/chevrons-up-tabler.svg (limited to 'src/styles.css') diff --git a/src/_footer.html b/src/_footer.html index d27b5b5..2c4228c 100644 --- a/src/_footer.html +++ b/src/_footer.html @@ -1,8 +1,6 @@ - +