diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index 31539668ec8c7..8a3c6147bdd8e 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -148,39 +148,6 @@ } } - - /** - * Block Layout - */ - - // Navigate mode & Focused wrapper. - // We're using a pseudo element to overflow placeholder borders - // and any border inside the block itself. - &:not([contenteditable]):focus { - outline: none; - - &::after { - position: absolute; - z-index: 1; - pointer-events: none; - content: ""; - top: $border-width; - bottom: $border-width; - left: $border-width; - right: $border-width; - - // 2px outside. - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); - border-radius: $radius-block-ui - $border-width; // Border is outset, so subtract the width to achieve correct radius. - outline: 2px solid transparent; // This shows up in Windows High Contrast Mode. - - // Show a light color for dark themes. - .is-dark-theme & { - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) $dark-theme-focus; - } - } - } - /** * Block styles and alignments */ @@ -269,21 +236,6 @@ &.is-selected { cursor: unset; - - &::after { - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); // Selected not focussed. - top: $border-width; - left: $border-width; - right: $border-width; - bottom: $border-width; - border-radius: $radius-block-ui - $border-width; // Border is outset, so subtract the width to achieve correct radius. - } - - &:focus { - &::after { - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); - } - } } }