Skip to content

Commit

Permalink
Block Editor: Restore direct descendent style selectors for block
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Apr 17, 2019
1 parent e209cfb commit e3a9b75
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
z-index: z-index(".block-editor-block-list__block {core/image aligned wide or fullwide}");

// Mover and settings above
> .block-editor-block-mover {
> .block-editor-block-list__block-edit > .block-editor-block-mover {
// This moves the menu up by the height of the button + border + padding.
top: -$block-side-ui-width - $block-padding - $block-side-ui-clearance;
bottom: auto;
Expand All @@ -420,22 +420,22 @@
}
}

> .block-editor-block-mover .block-editor-block-mover__control {
> .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control {
float: left;
}

// Position hover label on the right
> .block-editor-block-list__breadcrumb {
> .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb {
right: -$border-width;
}

// Hide mover until wide breakpoints, or it might be covered by toolbar
> .block-editor-block-mover {
> .block-editor-block-list__block-edit > .block-editor-block-mover {
display: none;
}

@include break-wide() {
> .block-editor-block-mover {
> .block-editor-block-list__block-edit > .block-editor-block-mover {
display: block;
}
}
Expand All @@ -452,7 +452,7 @@
// Wide
&[data-align="wide"] {
// Position mover
> .block-editor-block-mover {
> .block-editor-block-list__block-edit > .block-editor-block-mover {
left: -$block-padding + $border-width;
}
}
Expand Down Expand Up @@ -494,7 +494,7 @@
}

// Position mover
> .block-editor-block-mover {
> .block-editor-block-list__block-edit > .block-editor-block-mover {
left: $border-width;
}
}
Expand Down Expand Up @@ -904,7 +904,7 @@
}
}

.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar {
.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar {
margin-left: -$block-side-ui-width;
}

Expand Down

0 comments on commit e3a9b75

Please sign in to comment.