Skip to content

Commit

Permalink
Try: Fix navigation gap & padding issues. (#35752)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Oct 20, 2021
1 parent f7b26ab commit af01a38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
}
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit af01a38

Please sign in to comment.