Commit 5e9625bf authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Add nav border on scroll

parent cfea4883
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, vars-on-top, max-len */ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, vars-on-top, max-len */
import _ from 'underscore';
(function() { (function() {
var hideEndFade; var hideEndFade;
...@@ -45,4 +46,14 @@ ...@@ -45,4 +46,14 @@
} }
}); });
}); });
function applyScrollNavClass() {
if ($(window).scrollTop() > 0) {
$('.navbar-gitlab').addClass('scroll');
} else {
$('.navbar-gitlab').removeClass('scroll');
}
}
$(window).scroll( _.throttle(applyScrollNavClass, 250));
}).call(window); }).call(window);
...@@ -42,6 +42,10 @@ header { ...@@ -42,6 +42,10 @@ header {
border-bottom: none; border-bottom: none;
} }
&.scroll {
border-bottom: 1px solid $border-color;
}
.container-fluid { .container-fluid {
width: 100% !important; width: 100% !important;
filter: none; filter: none;
......
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