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