Commit 18a6d31f authored by Chi Bui's avatar Chi Bui 👀

edit css 1908_02

parent 646b9f47
......@@ -637,7 +637,9 @@ header.navbar .category-menu ul.menu ul.dropdown-menu li {
.block-views-blockfaq-block-1 .active:after {
content: "\2212";
}
.main-container-inner{
margin: 12px 0 10px;
}
.block-views-blockfaq-block-1 .panel {
padding-top: 5px;
background-color: white;
......@@ -12064,7 +12066,7 @@ header.navbar .block-search-navigation .search-icon.active {
}
.estore-homepage-first .top-region .top-region-inner {
margin: 10px 0 10px;
/* margin: 10px 0 10px; */
}
.estore-homepage-first .layout__region--product-categories {
......
......@@ -59,16 +59,16 @@ for (i = 0; i < acc.length; i++) {
}
function menuSidebar(){
console.log('cccc')
var current = location.pathname;
if(current == "/products"){
$(".menu.menu--category-menu.nav").removeClass('hide-block').removeClass('not-home').css({"top":"68px"}).addClass('product');
$(".menu.menu--category-menu.nav").removeClass('hide-block').removeClass('not-home').addClass('product');
}
else if(current.length > 17){
else if(current.length >= 16){
let currentpathSlice = current.slice(0,17);
if(currentpathSlice == "/product_category"){
$(".menu.menu--category-menu.nav").removeClass('hide-block').removeClass('not-home').css({"top":"125px"}).addClass('product');
if(currentpathSlice == "/product_category" || currentpathSlice == "/search-products"){
$(".menu.menu--category-menu.nav").removeClass('hide-block').removeClass('not-home').addClass('product');
}
}
else{
......@@ -115,7 +115,6 @@ for (i = 0; i < acc.length; i++) {
menuSidebar();
// console.log($(".sidebar-submenu-3").children('li'));
if ($(window).width() <= 991) {
$(".view-manufacturer-list .view-content").children().slice(0, 5).wrapAll("<div class = 'menu-wrap'></div>");
......
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