# HG changeset patch # User Marcin Kuzminski # Date 2011-10-29 02:54:27 # Node ID 277690a23606fce6956fd10ddb72da5c81d0fe06 # Parent aaabec656ceb370cefac3788d4d7157646becb83 stay-on-top menu diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -283,7 +283,13 @@ div.options a { -moz-border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px; } - +#header #header-inner.hover{ + position: fixed !important; + width: 100% !important; + margin-left: -10px !important; + z-index: 10000; + border-radius: 0px 0px 4px 4px; +} #header #header-inner #home a { height: 40px; width: 46px; diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html --- a/rhodecode/templates/base/root.html +++ b/rhodecode/templates/base/root.html @@ -129,10 +129,16 @@ YUD.addClass(menu,'hidden'); } }) - + YUE.on(window,'scroll',function(){ + if(YUD.getDocumentScrollTop() > 45){ + YUD.addClass('header-inner','hover'); + } + else{ + YUD.removeClass('header-inner','hover'); + } + }) }) - <%def name="js_extra()">