From 64f5950d836b67eb643e858f44657d3331423c73 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Mon, 4 Apr 2022 14:14:14 +0200 Subject: [PATCH] Revert "Add support for menu description. (#1771)" (#1944) This reverts commit 26583788debc42841e96ad01e2c271c18d04ff55. --- assets/css/base/_layout.scss | 8 -------- assets/css/woocommerce/woocommerce.scss | 2 +- functions.php | 1 - inc/storefront-menu-functions.php | 25 ------------------------- 4 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 inc/storefront-menu-functions.php diff --git a/assets/css/base/_layout.scss b/assets/css/base/_layout.scss index bc802c4e..a613aac6 100644 --- a/assets/css/base/_layout.scss +++ b/assets/css/base/_layout.scss @@ -552,8 +552,6 @@ transition: none; > li { - vertical-align: top; - // The first level menu item > a { padding: ms(3) 1em; @@ -571,12 +569,6 @@ } } - .menu-item-description { - font-size: ms(-1); - opacity: 0.67; - margin: 0; - } - ul { // Dropdowns margin-left: 0; diff --git a/assets/css/woocommerce/woocommerce.scss b/assets/css/woocommerce/woocommerce.scss index 245bbbdf..f847e262 100644 --- a/assets/css/woocommerce/woocommerce.scss +++ b/assets/css/woocommerce/woocommerce.scss @@ -2182,7 +2182,7 @@ dl.variation { .count { font-weight: 400; - opacity: 0.67; + opacity: 0.5; font-size: ms(-1); } diff --git a/functions.php b/functions.php index 336f0d8c..d9830967 100644 --- a/functions.php +++ b/functions.php @@ -29,7 +29,6 @@ $storefront = (object) array( ); require 'inc/storefront-functions.php'; -require 'inc/storefront-menu-functions.php'; require 'inc/storefront-template-hooks.php'; require 'inc/storefront-template-functions.php'; require 'inc/wordpress-shims.php'; diff --git a/inc/storefront-menu-functions.php b/inc/storefront-menu-functions.php deleted file mode 100644 index f51c16e2..00000000 --- a/inc/storefront-menu-functions.php +++ /dev/null @@ -1,25 +0,0 @@ -link_after = ''; - if ( 0 === $depth && isset( $item->description ) && $item->description ) { - // The extra element is here for styling purposes: Allows the description to not be underlined on hover. - $args->link_after = ''; - } - return $args; -} -add_filter( 'nav_menu_item_args', 'storefront_add_menu_description_args', 10, 3 );