mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-10 18:32:28 +00:00
port to gitlab.
This commit is contained in:
24
themes/custom/src/css/_partial/_back-to-top.scss
Normal file
24
themes/custom/src/css/_partial/_back-to-top.scss
Normal file
@@ -0,0 +1,24 @@
|
||||
// ==============================
|
||||
// Back to top
|
||||
// =============================
|
||||
|
||||
.back-to-top {
|
||||
display: none;
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
transition-property: transform;
|
||||
transition-timing-function: ease-out;
|
||||
transition-duration: 0.3s;
|
||||
z-index: 10;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
}
|
||||
|
||||
@include max-screen() {
|
||||
.back-to-top {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user