mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-09 16:04:45 +00:00
ongoing tweaks
This commit is contained in:
parent
4157d49eaa
commit
e8dd039dce
2 changed files with 23 additions and 5 deletions
|
|
@ -22,9 +22,12 @@ $(function(){
|
|||
});
|
||||
|
||||
$('.nav-main a').on('click', function(){
|
||||
$('.nav-wrapper').toggleClass('submenu-active')
|
||||
$(this).closest('li').toggleClass('active');
|
||||
return false
|
||||
|
||||
if($(this).closest('li').find('.submenu')){
|
||||
$('.nav-wrapper').toggleClass('submenu-active')
|
||||
return false
|
||||
}
|
||||
})
|
||||
|
||||
// Enable swishy section navigation menu
|
||||
|
|
|
|||
|
|
@ -229,20 +229,33 @@ img{
|
|||
}
|
||||
}
|
||||
|
||||
li.active > a{
|
||||
color:$color-orange;
|
||||
}
|
||||
|
||||
li.active .submenu{
|
||||
@include transition(width 0.2s ease);
|
||||
}
|
||||
|
||||
.submenu{
|
||||
@include transition(width 0.2s ease);
|
||||
background:$selected-highlight;
|
||||
position:fixed;
|
||||
height:100%;
|
||||
width:0;
|
||||
padding:0;
|
||||
top:0;
|
||||
left:150px;
|
||||
padding:0;
|
||||
overflow:auto;
|
||||
max-height:100%;
|
||||
border-right:1px solid rgba(0,0,0,0.1);
|
||||
@include box-shadow(5px 0 5px rgba(0,0,0,0.1));
|
||||
|
||||
h2,ul{
|
||||
float:right;
|
||||
width:150px;
|
||||
}
|
||||
|
||||
h2{
|
||||
padding:0.2em 0;
|
||||
font-weight:500;
|
||||
|
|
@ -274,14 +287,16 @@ img{
|
|||
background-color:rgba(100,100,100,0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
li.active .submenu{
|
||||
width:150px;
|
||||
padding:0 1.5em 1.5em 1.5em;
|
||||
}
|
||||
li .submenu{
|
||||
width:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.avatar{
|
||||
display:none;
|
||||
|
|
|
|||
Loading…
Reference in a new issue