Added "Top" button 👀

This commit is contained in:
Michał Gdula 2022-07-26 13:34:48 +01:00
parent d6c9951233
commit 4ab1b39650
12 changed files with 78 additions and 13 deletions

View file

@ -190,3 +190,34 @@ p, a {
margin: 0 0 0.5rem 0;
font-family: "Fira Code", monospace;
}
/*
-=-=-= Back to top button =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
#back-to-top {
margin: 0; padding: 0.5rem;
position: fixed;
right: -2.5rem; bottom: 1rem;
object-position: center;
background-color: var(--bg);
border-radius: 50%;
box-shadow: var(--shadow);
transition: right 0.15s cubic-bezier(.19,1,.22,1);
}
#back-to-top:hover {
outline: 0.2rem solid var(--green);
}
#back-to-top * {
margin: 0; padding: 0;
width: 1.5rem; height: 1.5rem;
display: block;
object-position: center;
}