change to hugo-blog-awesome theme
This commit is contained in:
parent
113e3650f1
commit
15b6142a8e
131 changed files with 5895 additions and 124 deletions
28
themes/hugo-blog-awesome/assets/sass/_goToTop.scss
Normal file
28
themes/hugo-blog-awesome/assets/sass/_goToTop.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Scroll to top button */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
#totop {
|
||||
visibility: hidden;
|
||||
color: $text-base-color;
|
||||
position: fixed;
|
||||
bottom: 60px;
|
||||
right: 30px;
|
||||
z-index: 1;
|
||||
border-radius: 10%;
|
||||
background-color: $go-top-bg;
|
||||
transition: visibility .5s,opacity .8s linear;
|
||||
|
||||
&:hover {
|
||||
background-color: $go-top-bg-hover;
|
||||
}
|
||||
|
||||
// center align icon vertically
|
||||
svg {
|
||||
margin: auto;
|
||||
display: block;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue