diff --git a/resources/shop/css/site.css b/resources/shop/css/site.css index d1e5f9f5..e5bd6ae2 100644 --- a/resources/shop/css/site.css +++ b/resources/shop/css/site.css @@ -348,4 +348,31 @@ div.megamenu ul.megamenu li.megamenu.level1 .dropdown-menu > li:hover > .submenu{ display: block; } -} \ No newline at end of file +} + +@media (max-width: 991.98px){ + #navbarContentMobile .navbar-nav { + flex-direction: column; + } + #navbarContentMobile .navbar-nav .col { + flex: 0 0 100%; + max-width: 100%; + } + #navbarContentMobile .dropdown-menu { + display: block; + position: static; + float: none; + box-shadow: none; + background: transparent; + } + #navbarContentMobile .dropdown-toggle::after { + display: none; + } + #navbarContentMobile .dropdown-menu .container, + #navbarContentMobile .dropdown-menu .row { + margin: 0; + } + #navbarContentMobile .dropdown-menu .shadow { + box-shadow: none !important; + } +} diff --git a/resources/shop/js/site.js b/resources/shop/js/site.js index aa3b8c98..bfcd0611 100644 --- a/resources/shop/js/site.js +++ b/resources/shop/js/site.js @@ -32,12 +32,14 @@ $(document).on('click', '.dropdown-menu', function (e) { // make it as accordion for smaller screens if ($(window).width() < 992) { $('.dropdown-menu a').click(function(e) { - e.preventDefault(); - if ($(this).next('.submenu').length) { - $(this).next('.submenu').toggle(); + var $submenu = $(this).next('.submenu'); + if ($submenu.length) { + e.preventDefault(); + $submenu.toggle(); } - $('.dropdown').on('hide.bs.dropdown', function () { - $(this).find('.submenu').hide(); - }); + }); + + $('.dropdown').on('hide.bs.dropdown', function () { + $(this).find('.submenu').hide(); }); } diff --git a/resources/views/Shop/layout/partials/header-nav.blade.php b/resources/views/Shop/layout/partials/header-nav.blade.php index 784bdaec..67950a01 100644 --- a/resources/views/Shop/layout/partials/header-nav.blade.php +++ b/resources/views/Shop/layout/partials/header-nav.blade.php @@ -1,18 +1,28 @@ -