Commit 719e59c7 authored by Kushal Pandya's avatar Kushal Pandya

Make scroll buttons sticky always

parent df0aeae7
...@@ -67,19 +67,20 @@ ...@@ -67,19 +67,20 @@
margin: 0 0 0 auto; margin: 0 0 0 auto;
} }
.scroll-link.sticky, .scroll-link,
.autoscroll-container { .autoscroll-container {
right: 25px; right: 25px;
z-index: 1; z-index: 1;
} }
.scroll-link { .scroll-link {
position: fixed;
display: block; display: block;
margin-bottom: 10px; margin-bottom: 10px;
width: 16px;
height: 33px;
&.scroll-top { &.scroll-top {
top: 110px;
.gitlab-icon-scroll-up-hover { .gitlab-icon-scroll-up-hover {
display: none; display: none;
} }
...@@ -97,6 +98,8 @@ ...@@ -97,6 +98,8 @@
} }
&.scroll-bottom { &.scroll-bottom {
bottom: -2px;
.gitlab-icon-scroll-down-hover { .gitlab-icon-scroll-down-hover {
display: none; display: none;
} }
...@@ -112,18 +115,6 @@ ...@@ -112,18 +115,6 @@
} }
} }
} }
&.sticky {
position: fixed;
&.scroll-top {
top: 110px;
}
&.scroll-bottom {
bottom: -2px;
}
}
} }
.autoscroll-container { .autoscroll-container {
...@@ -132,7 +123,7 @@ ...@@ -132,7 +123,7 @@
&.sidebar-expanded { &.sidebar-expanded {
.scroll-link.sticky, .scroll-link,
.autoscroll-container { .autoscroll-container {
right: ($gutter_width + ($gl-padding * 2)); right: ($gutter_width + ($gl-padding * 2));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment