From 19d6ca7117895e8099137db7b9b9650f4160120b Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Tue, 21 Jan 2020 10:50:44 +0100 Subject: [PATCH] Polish float fix post-rebase. --- .../block-editor/src/components/block-list/style.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index 35442e30abdf8..7943f57bffede 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -149,7 +149,10 @@ bottom: 0; left: 0; right: 0; + } + .is-block-content, // Floats. + &::after { // Everything else. // 2px outside. box-shadow: 0 0 0 2px $blue-medium-focus; border-radius: $radius-block-ui; @@ -170,6 +173,13 @@ } } } + + // Hide the focus indicator for collapsed blocks. + // These serve as only as column containers for floated blocks. + .block-editor-block-list__block.is-block-collapsed::after { + content: none; + } + }