Skip to content
Snippets Groups Projects
Commit 0c1748ec authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray
Browse files

Clean up fixed navbar

Former-commit-id: b29414df
parent e5f3ba7a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,8 +48,11 @@ import _ from 'underscore';
});
 
function applyScrollNavClass() {
$('.navbar-border').css('opacity', $(window).scrollTop() / 40);
const scrollOpacityHeight = 40;
$('.navbar-border').css('opacity', Math.min($(window).scrollTop() / scrollOpacityHeight, 1));
}
 
$(window).scroll(_.throttle(applyScrollNavClass, 100));
$(() => {
$(window).on('scroll', _.throttle(applyScrollNavClass, 100));
});
}).call(window);
Loading
Loading
@@ -116,10 +116,10 @@ header {
 
.navbar-border {
height: 1px;
position: fixed;
left: 0;
position: absolute;
right: 0;
top: 50px;
left: 0;
bottom: 0;
background-color: $border-color;
opacity: 0;
}
Loading
Loading
Loading
Loading
@@ -689,7 +689,7 @@
}
 
.merge-request-tabs-holder {
top: 0;
top: $header-height;
z-index: 10;
background-color: $white-light;
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment