Skip to content

Commit

Permalink
remove gap, align items on submenu container
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales committed Oct 8, 2021
1 parent 2853d62 commit 988e0fb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions packages/edit-navigation/src/components/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@

// Customize/zero out the gap.
.wp-block-navigation__container {
// This unsets flex.
display: block;
display: flex;
gap: 0;
}

// Increase specificity.
.wp-block-navigation-item {
display: block;
margin: $grid-unit-10 0;
margin: $grid-unit-05 0;

// Show submenus on click.
> .wp-block-navigation__submenu-container {
Expand Down Expand Up @@ -133,11 +133,6 @@
border-radius: $radius-block-ui;
}

// Use flex layout to calculate menu item length based on content.
.wp-block-navigation__container {
display: flex;
}

// Override for deeply nested submenus.
.has-child .wp-block-navigation__container .wp-block-navigation__submenu-container {
left: auto;
Expand All @@ -157,7 +152,8 @@
min-width: auto;
width: 100%;
border: none;
display: block;
display: flex;
align-items: flex-start;

&::before {
display: none;
Expand Down

0 comments on commit 988e0fb

Please sign in to comment.