initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// main: ../main.scss
|
||||
/*--------------------------------------------------------------
|
||||
# Scroll Top Button
|
||||
--------------------------------------------------------------*/
|
||||
.scroll-top {
|
||||
position: fixed;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
right: 15px;
|
||||
bottom: 15px;
|
||||
z-index: 99999;
|
||||
background-color: var(--accent-color);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.4s;
|
||||
|
||||
i {
|
||||
font-size: 24px;
|
||||
color: var(--contrast-color);
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
|
||||
color: var(--contrast-color);
|
||||
}
|
||||
|
||||
&.active {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user