Commit 94919b47 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Fade out border on scroll

parent 9059b99b
......@@ -48,12 +48,8 @@ import _ from 'underscore';
});
function applyScrollNavClass() {
if ($(window).scrollTop() > 0) {
$('.navbar-gitlab').addClass('scroll');
} else {
$('.navbar-gitlab').removeClass('scroll');
}
$('.navbar-border').css("opacity", $(window).scrollTop() / 40);
}
$(window).scroll( _.throttle(applyScrollNavClass, 250));
$(window).scroll( _.throttle(applyScrollNavClass, 100));
}).call(window);
......@@ -23,7 +23,6 @@ header {
}
&.navbar-gitlab {
@include transition(border-color 150ms ease-in-out);
padding: 0 16px;
z-index: 100;
margin-bottom: 0;
......@@ -43,10 +42,6 @@ header {
border-color: transparent;
}
&.scroll {
border-color: $border-color;
}
.container-fluid {
width: 100% !important;
filter: none;
......@@ -118,6 +113,16 @@ header {
}
}
.navbar-border {
height: 1px;
position: fixed;
left: 0;
right: 0;
top: 50px;
background-color: $border-color;
opacity: 0;
}
.global-dropdown {
position: absolute;
left: -10px;
......
%header.navbar.navbar-gitlab{ class: nav_header_class }
.navbar-border
%a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content
.container-fluid
.header-content
......
......@@ -4,6 +4,7 @@
= page_specific_javascript_bundle_tag('sidebar')
%aside.right-sidebar.js-right-sidebar{ data: { "offset-top" => "50", "spy" => "affix" }, class: sidebar_gutter_collapsed_class, 'aria-live' => 'polite' }
.issuable-sidebar{ data: { endpoint: "#{issuable_json_path(issuable)}" } }
- can_edit_issuable = can?(current_user, :"admin_#{issuable.to_ability_name}", @project)
.block.issuable-sidebar-header
- if current_user
......
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