mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-11-02 06:32:32 +01:00
Add JumpToTop component for mobile devices
This commit is contained in:
11
src/styles/JumpToTop.scss
Normal file
11
src/styles/JumpToTop.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.jumpToTop {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
cursor: pointer;
|
||||
|
||||
svg {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,7 @@
|
||||
}
|
||||
|
||||
html {
|
||||
@media (min-width: 768px) {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
||||
Reference in New Issue
Block a user