Skip to content

Commit

Permalink
Restore default nav item sizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Nov 19, 2019
1 parent 8ffbefd commit f3ff038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
14 changes: 3 additions & 11 deletions packages/block-library/src/navigation-link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,17 @@
display: block;
}

&.has-link .wp-block-navigation-link__content {
&.has-link .wp-block-navigation-link__content {
border-bottom-style: solid;
border-bottom-width: 1px;
}

.block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after {
.block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after {
display: inline-block;
}
}

[data-type="core/navigation-menu-item"] {

// Take mover out of flow to avoid layout jump on Block select
.block-editor-block-mover {
position: absolute;
bottom: 0;
right: 0;
}

[data-type="core/navigation-link"] {
.block-editor-block-toolbar {
left: 15px;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@

// 2. Remove paddings on subsequent immediate children.
.wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block {
display: flex;
flex: 1;
width: auto;
padding-left: 0;
padding-right: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: 1em; // Useful for when items wrap.
}

Expand Down

0 comments on commit f3ff038

Please sign in to comment.