Skip to content

Commit

Permalink
Address feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Feb 11, 2021
1 parent 41000a9 commit 2eae54d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 9 additions & 1 deletion packages/block-library/src/navigation-link/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 0 additions & 5 deletions packages/block-library/src/navigation/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 2eae54d

Please sign in to comment.