Fix search bar shadow when it's not fixed due to scrolling yet

This closes #3113.
This commit is contained in:
Hugo Locurcio
2020-01-29 01:47:02 +01:00
parent 9093bf0483
commit 36b76ba70a
2 changed files with 7 additions and 3 deletions

View File

@@ -25,11 +25,11 @@ function registerOnScrollEvent(mediaQuery) {
$navbar.scroll(function() {
if ($(this).scrollTop() >= scrollTopPixels) {
$logo.hide();
$search.css('position', 'fixed');
$search.addClass('fixed');
$menu.css('margin-top', menuTopMargin);
} else {
$logo.show();
$search.css('position', 'static');
$search.removeClass('fixed');
$menu.css('margin-top', 0);
}
});