mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-19 09:25:09 -04:00
add scroll to top button
This commit is contained in:
parent
700c8e07da
commit
1329075c61
3 changed files with 38 additions and 1 deletions
|
@ -23,4 +23,24 @@
|
|||
.footer a:hover {
|
||||
color: var(--primary);
|
||||
border-bottom: 1px solid var(--primary);
|
||||
}
|
||||
|
||||
.top-link {
|
||||
font-size: 12px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
bottom: 60px;
|
||||
right: 30px;
|
||||
z-index: 99;
|
||||
background: var(--tertiary);
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
padding: 12px;
|
||||
color: var(--primary);
|
||||
border-radius: 64px;
|
||||
fill: currentColor;
|
||||
fill-opacity: 80%;
|
||||
transition: visibility 0.5s,
|
||||
opacity 0.8s linear;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue