Skip to content

Commit

Permalink
Allow sibling inserter before selected when toolbar fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Jun 11, 2018
1 parent 113dc6f commit c9f76a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,6 @@
height: $block-padding * 2; // Matches the whole empty space between two blocks
justify-content: center;

// Don't show the sibling inserter before the selected block.
.is-selected & {
display: none;
}

// Show a clickable plus.
.editor-block-list__insertion-point-button {
margin-top: -4px;
Expand Down Expand Up @@ -709,6 +704,11 @@
}
}

// Don't show the sibling inserter before the selected block.
.edit-post-layout:not( .has-fixed-toolbar ) .is-selected .editor-block-list__insertion-point-inserter {
display: none;
}

.editor-block-list__block {
> .editor-block-list__insertion-point {
position: absolute;
Expand Down

0 comments on commit c9f76a0

Please sign in to comment.