Skip to content
Snippets Groups Projects
Commit 8d596af9 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix scroll-to-top calculcation, fixes #1758

Closes #1758

Merge request studip/studip!1229
parent f5061b58
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,8 @@ $scroll-to-top-width: 45px; ...@@ -3,8 +3,8 @@ $scroll-to-top-width: 45px;
$scroll-to-top-margin: 35px; $scroll-to-top-margin: 35px;
body #scroll-to-top { body #scroll-to-top {
width: $scroll-to-top-height; width: $scroll-to-top-width;
height: $scroll-to-top-width; height: $scroll-to-top-height;
margin-right: $scroll-to-top-margin; margin-right: $scroll-to-top-margin;
margin-bottom: $scroll-to-top-margin; margin-bottom: $scroll-to-top-margin;
padding: 10px; padding: 10px;
...@@ -23,6 +23,6 @@ body #scroll-to-top { ...@@ -23,6 +23,6 @@ body #scroll-to-top {
border-radius: .12rem; border-radius: .12rem;
} }
&.hide { &.hide {
bottom: calc( 0px - #{$scroll-to-top-height - $scroll-to-top-margin}); bottom: calc( 0px - #{$scroll-to-top-height + $scroll-to-top-margin});
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment