overflow-y: scroll;
bottom: 0;
background-color: white;
- z-index: 2;
+ z-index: 11;
cursor: pointer; }
aside.oc-overlay li.page_item {
if( $(this).children('ul').length > 0 ){
let menuParent = $(this).parent();
-
-
-
-
-
-
-
-
-
$(this).on("click", function(e){
- // if( $(this).parent().hasClass('children') ){
- // console.log("yes");
- // }
-
// collapse the nav menu that isn't in focus (primary or secondary)
other_menu.toggleClass("oc-hidden");
// problem is here, this is a blanket toggle which affects sub menus unintentionally
$(this).children('a').siblings('ul').toggleClass('oc-open');
- // $(this).children('a').siblings('ul').toggleClass('oc-hidden');
-
// For animation purposes
$(this).toggleClass('oc-expanded');
$(this).siblings().toggleClass("oc-collapsed");
+ $('.oc-overlay').animate({ scrollTop: 0 }, "slow");
})
$(this).children('a').on('click', function(e){
e.preventDefault();
})
-
-
-
-
-
-
-
-
} else {
let url = $(this).children('a').attr('href');
$(this).on("click", function(){
if( $(this).children('ul').length > 0 ){
let menuParent = $(this).parent();
-
-
-
-
-
-
-
-
-
$(this).on("click", function(e){
- // if( $(this).parent().hasClass('children') ){
- // console.log("yes");
- // }
-
// collapse the nav menu that isn't in focus (primary or secondary)
other_menu.toggleClass("oc-hidden");
// problem is here, this is a blanket toggle which affects sub menus unintentionally
$(this).children('a').siblings('ul').toggleClass('oc-open');
- // $(this).children('a').siblings('ul').toggleClass('oc-hidden');
-
// For animation purposes
$(this).toggleClass('oc-expanded');
$(this).siblings().toggleClass("oc-collapsed");
+ $('.oc-overlay').animate({ scrollTop: 0 }, "slow");
})
$(this).children('a').on('click', function(e){
e.preventDefault();
})
-
-
-
-
-
-
-
-
} else {
let url = $(this).children('a').attr('href');
$(this).on("click", function(){
overflow-y: scroll;
bottom: 0;
background-color: white;
- z-index: 2;
+ z-index: 11;
cursor: pointer;
}
aside.oc-overlay li.page_item {