Skip to content

Commit

Permalink
Add extra specificity to toolbar position (#16858)
Browse files Browse the repository at this point in the history
So that it doesn't apply to innerblock toolbars as well.
  • Loading branch information
kjellr authored and gziolo committed Aug 29, 2019
1 parent d2225eb commit 110104e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,17 @@
}

// Align block toolbar to floated content.
// Extra specificity is needed to avoid applying this to innerblocks.
@include break-mobile() {
.block-editor-block-toolbar {
> .editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar {
/*!rtl:begin:ignore*/
left: $block-side-ui-width * 3 + ($grid-size-small * 1.5);
/*!rtl:end:ignore*/
}
}

@include break-xlarge() {
.block-editor-block-toolbar {
> .editor-block-list__block-edit > .block-editor-block-contextual-toolbar > .block-editor-block-toolbar {
/*!rtl:begin:ignore*/
left: $block-padding;
/*!rtl:end:ignore*/
Expand Down

0 comments on commit 110104e

Please sign in to comment.