From a353bc96910013b5f330792ae0dd3f26d18036bc Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Fri, 1 Nov 2019 11:46:58 +0100 Subject: [PATCH] Fix mover for floats. (#18230) Floated images had special rules for the mover control. These are no longer necessary, and indeed created a buggy looking control. --- .../src/components/block-list/style.scss | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index e06667a0f914e..f70a789f4e704 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -711,37 +711,6 @@ &.is-multi-selected > .block-editor-block-mover { left: -$block-side-ui-width - $block-side-ui-clearance; } - - // For floats, show block mover when block is selected, and never on hover. - &[data-align="left"], - &[data-align="right"] { - // Show always when the block is selected. - &.is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover { - // Don't show on mobile, allow the special mobile toolbar to work there. - display: none; - @include break-small() { - display: block; - opacity: 1; - animation: none; - - // Make wider and taller to make "safe" hover area bigger. - // The intent is to make it less likely that you hover float-adjacent - // blocks that visually appear below the block. - width: $block-side-ui-width + $block-side-ui-clearance + $block-padding + $border-width; - height: auto; - padding-bottom: $block-padding; - - // Unset the negative top margin, or it might overlap the block toolbar. - margin-top: 0; - } - } - - // Don't show on hover, or on the "ghost" when dragging. - &.is-hovered > .block-editor-block-list__block-edit > .block-editor-block-mover, - &.is-dragging > .block-editor-block-list__block-edit > .block-editor-block-mover { - display: none; - } - } }