From e3548db722358b29726349dcd0e32ad29e3e7181 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Tue, 19 Oct 2021 11:45:10 +0200 Subject: [PATCH] Try: Fix navigation gap & padding issues. --- packages/block-library/src/navigation/style.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 9ee5f4548c3e6..5cf54dadfe3df 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -231,7 +231,7 @@ .wp-block-navigation, .wp-block-navigation .wp-block-page-list, .wp-block-navigation__container { - gap: calc(var(--wp--style--block-gap, 2em) / 4) var(--wp--style--block-gap, 2em); + gap: var(--wp--style--block-gap, 2em); } // Menu items with background. @@ -242,7 +242,7 @@ &, .wp-block-navigation .wp-block-page-list, .wp-block-navigation__container { - gap: calc(var(--wp--style--block-gap, 0) / 4) var(--wp--style--block-gap, 0.5em); + gap: var(--wp--style--block-gap, 0.5em); } } @@ -256,7 +256,7 @@ // When the menu has a background, items have paddings, reduce margins to compensate. // Treat margins and paddings differently when the block has a background. -.wp-block-navigation:where(.has-background) a { +.wp-block-navigation:where(.has-background) .wp-block-navigation-item__content { padding: 0.5em 1em; } @@ -465,7 +465,7 @@ } // A default padding is added to submenu items. It's not appropriate inside the modal. - & :where(.wp-block-navigation__submenu-container) a { + a { padding: 0; }