Mercurial > kallithea
changeset 1610:277690a23606 beta
stay-on-top menu
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 29 Oct 2011 02:54:27 +0200 |
parents | aaabec656ceb |
children | 2755c11c90d8 |
files | rhodecode/public/css/style.css rhodecode/templates/base/root.html |
diffstat | 2 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Sat Oct 29 01:40:14 2011 +0200 +++ b/rhodecode/public/css/style.css Sat Oct 29 02:54:27 2011 +0200 @@ -283,7 +283,13 @@ -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;
--- a/rhodecode/templates/base/root.html Sat Oct 29 01:40:14 2011 +0200 +++ b/rhodecode/templates/base/root.html Sat Oct 29 02:54:27 2011 +0200 @@ -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'); + } + }) }) </script> - </%def> <%def name="js_extra()"> </%def>