diff --git a/js/navigation.js b/js/navigation.js index 92c36ec..e8824c3 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -74,7 +74,7 @@ if(window.matchMedia("(pointer: coarse)").matches) { selector = '.menu-item-has-children > a'; } - + $(selector).on( 'click',function (ev) { if ($(this).hasClass('submenu-opened')) { return true; @@ -83,7 +83,7 @@ $(this).parent().siblings().find('a').removeClass('submenu-opened'); $(this).addClass('submenu-opened'); } - }); + }); // Open/close mobile menu on menu item with no children click (go to link) $('#mobile-menu li:not(.menu-item-has-children) > a').on('click', function(){ diff --git a/js/navigation.min.js b/js/navigation.min.js index bb1e7d7..8f7fce6 100644 --- a/js/navigation.min.js +++ b/js/navigation.min.js @@ -1 +1 @@ -!function(a){var e,n,s,t,i,l,d,r,u=a("#site-navigation");if(0!=u.length&&0!=(e=u.find(".menu-toggle")).length){for(0==(n=u.find("#mobile-menu")).length&&(e.remove(),a(".left-toggle .site-branding").css("margin-left",0)),n.attr("aria-expanded","false"),n.hasClass("nav-menu")||n.addClass("nav-menu"),e.on("click",function(){u.hasClass("toggled")?(u.removeClass("toggled"),a("body").removeClass("mobile-menu-opened"),e.attr("aria-expanded","false"),n.attr("aria-expanded","false")):(u.addClass("toggled"),a("body").addClass("mobile-menu-opened"),e.attr("aria-expanded","true"),n.attr("aria-expanded","true"))}),t=0,i=(s=n.find("a")).length;t a").on("click",function(e){var n=a(this);if(n.hasClass("submenu-opened"))return!0;e.preventDefault(),n.parent().siblings().find("a").removeClass("submenu-opened"),n.addClass("submenu-opened")}):a("#yith-proteo-mobile-menu .menu-item-has-children > a").on("click",function(e){var n=a(this);if(n.hasClass("submenu-opened"))return!0;e.preventDefault(),n.parent().siblings().find("a").removeClass("submenu-opened"),n.addClass("submenu-opened")}),a("#mobile-menu li:not(.menu-item-has-children) > a").on("click",function(){a(this);var e=a("nav#site-navigation");e.hasClass("toggled")&&e.removeClass("toggled")}),l=a(window).width(),d=a("#primary-menu .menu-item-has-children"),r=a("#primary-menu ul.sub-menu").first().outerWidth(),d.each(function(){var e=a(this),n=e.find("ul.sub-menu").length;e.attr("submenu-levels",n);n=!!e.parent("#primary-menu").length,n=e.offset().left+(n?0:e.outerWidth())+r-45<=l;e.attr("submenu-visible",n),n||e.addClass("edge-menu-element")})}function o(){for(var e=a(this);!e.hasClass("nav-menu");)e.is("li")&&(e.hasClass("focus")?e.removeClass("focus"):e.addClass("focus")),e=e.parent()}}(jQuery); \ No newline at end of file +!function(a){var e,n,t,s,i,l,r,o,d=a("#site-navigation");if(0!=d.length&&0!=(e=d.find(".menu-toggle")).length){for(0==(n=d.find("#mobile-menu")).length&&(e.remove(),a(".left-toggle .site-branding").css("margin-left",0)),n.attr("aria-expanded","false"),n.toggleClass("nav-menu"),e.on("click",function(){d.hasClass("toggled")?(d.removeClass("toggled"),a("body").removeClass("mobile-menu-opened"),e.attr("aria-expanded","false"),n.attr("aria-expanded","false")):(d.addClass("toggled"),a("body").addClass("mobile-menu-opened"),e.attr("aria-expanded","true"),n.attr("aria-expanded","true"))}),s=0,i=(t=n.find("a")).length;s a",window.matchMedia("(pointer: coarse)").matches&&(selector=".menu-item-has-children > a"),a(selector).on("click",function(e){return!!a(this).hasClass("submenu-opened")||(e.preventDefault(),a(this).parent().siblings().find("a").removeClass("submenu-opened"),void a(this).addClass("submenu-opened"))}),a("#mobile-menu li:not(.menu-item-has-children) > a").on("click",function(){a(this);var e=a("nav#site-navigation");e.hasClass("toggled")&&e.removeClass("toggled")}),l=a(window).width(),r=a("#primary-menu .menu-item-has-children"),o=a("#primary-menu ul.sub-menu").first().outerWidth(),r.each(function(){var e=a(this),n=e.find("ul.sub-menu").length;e.attr("submenu-levels",n);n=!!e.parent("#primary-menu").length,n=e.offset().left+(n?0:e.outerWidth())+o-45<=l;e.attr("submenu-visible",n),n||e.addClass("edge-menu-element")})}function u(){for(var e=a(this);!e.hasClass("nav-menu");)e.is("li")&&e.toggleClass("focus"),e=e.parent()}}(jQuery); \ No newline at end of file diff --git a/sass/style.scss b/sass/style.scss index 8ed3e64..767396d 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -5,7 +5,7 @@ Author: YITH Author URI: https://yithemes.com Description: Proteo is a modern, fast and fully customizable WooCommerce theme. Designed and developed by YITH - a team of top developers of premium themes - with a beautiful UI, a minimal design and an optimized code, is perfect for each kind of site or shop. With the Proteo Wizard you can import our demo content with just a few clicks - in less than 2 minutes! - and easily customize it using the advanced front-end customizer. Proteo is the best solution if you want a complete WooCommerce theme that works perfectly also in mobile devices and start quickly to sell your products with WooCommerce without technical knowledge. Works perfectly with page builders like Elementor, Gutenberg & Visual composer. Key features: # WooCommerce Ready # Responsive with a perfect mobile design # Compatible with Elementor, Gutenberg, Visual Composer and others page builders # Translation Ready # Frontend customizer with hundred of options to customize header, footer, pages, typography, style, ecc. # Google fonts support # Regularly updated and improved with new demos and advanced features # Support to all YITH plugins. Check all our Proteo demos: https://proteo.yithemes.com/ -Version: 1.7.1.14 +Version: 1.7.1.15 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: yith-proteo diff --git a/style.css b/style.css index ce1c675..c3469f4 100644 --- a/style.css +++ b/style.css @@ -6,7 +6,7 @@ Author: YITH Author URI: https://yithemes.com Description: Proteo is a modern, fast and fully customizable WooCommerce theme. Designed and developed by YITH - a team of top developers of premium themes - with a beautiful UI, a minimal design and an optimized code, is perfect for each kind of site or shop. With the Proteo Wizard you can import our demo content with just a few clicks - in less than 2 minutes! - and easily customize it using the advanced front-end customizer. Proteo is the best solution if you want a complete WooCommerce theme that works perfectly also in mobile devices and start quickly to sell your products with WooCommerce without technical knowledge. Works perfectly with page builders like Elementor, Gutenberg & Visual composer. Key features: # WooCommerce Ready # Responsive with a perfect mobile design # Compatible with Elementor, Gutenberg, Visual Composer and others page builders # Translation Ready # Frontend customizer with hundred of options to customize header, footer, pages, typography, style, ecc. # Google fonts support # Regularly updated and improved with new demos and advanced features # Support to all YITH plugins. Check all our Proteo demos: https://proteo.yithemes.com/ -Version: 1.7.1.14 +Version: 1.7.1.15 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: yith-proteo