From 2eae54dfc272810afd7cdc3d478411ec316ea5cc Mon Sep 17 00:00:00 2001 From: jasmussen Date: Thu, 11 Feb 2021 10:55:16 +0100 Subject: [PATCH] Address feedback. --- packages/block-library/src/navigation-link/style.scss | 10 +++++++++- packages/block-library/src/navigation/editor.scss | 5 ----- packages/block-library/src/navigation/theme.scss | 5 ----- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/block-library/src/navigation-link/style.scss b/packages/block-library/src/navigation-link/style.scss index a83394ef3de834..e407b347fe18e2 100644 --- a/packages/block-library/src/navigation-link/style.scss +++ b/packages/block-library/src/navigation-link/style.scss @@ -2,13 +2,21 @@ display: flex; align-items: center; position: relative; - margin: 0 0.5em 0 0; .wp-block-navigation__container:empty { display: none; } } +// Overrides generic ".entry-content li" styles on the front end. +.wp-block-navigation-link.wp-block-navigation-link { + margin: 0 0.5em 0 0; + + .is-vertical & { + margin: 0 0 0.5em 0; + } +} + .wp-block-navigation__container { // Reset the default list styles list-style: none; diff --git a/packages/block-library/src/navigation/editor.scss b/packages/block-library/src/navigation/editor.scss index 7059ab83806589..34716ea1386074 100644 --- a/packages/block-library/src/navigation/editor.scss +++ b/packages/block-library/src/navigation/editor.scss @@ -6,11 +6,6 @@ padding-left: 0; } -// This is necessary for specificity of the margin items. -.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block { - margin: 0 0.5em 0 0; -} - .wp-block-navigation__inserter-content { padding: $grid-unit-20; } diff --git a/packages/block-library/src/navigation/theme.scss b/packages/block-library/src/navigation/theme.scss index 54e4d012626d47..0b80d85004697a 100644 --- a/packages/block-library/src/navigation/theme.scss +++ b/packages/block-library/src/navigation/theme.scss @@ -4,8 +4,3 @@ list-style: none; } } - -// Overrides generic ".entry-content li" styles on the front end. -.wp-block-navigation-link.wp-block-navigation-link { - margin: 0 0.5em 0 0; -}