From 00818f12fffe4b6697bd0a2653f5907ff55a3b85 Mon Sep 17 00:00:00 2001 From: Zebulan Stanphill Date: Tue, 29 Sep 2020 14:43:51 -0500 Subject: [PATCH] Add border to block "Edit as HTML" style. (#25539) * Add border to block "Edit as HTML" style. * Use $grid-unit-15 (12px) padding. --- packages/block-editor/src/components/block-list/style.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index 25e06ce7f00bab..83b63b4ee31dcf 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -495,10 +495,12 @@ .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; + padding: $grid-unit-15; width: 100%; border: none; outline: none; - box-shadow: none; + border-radius: 2px; + box-shadow: inset 0 0 0 $border-width $gray-900; resize: none; overflow: hidden; font-family: $editor-html-font; @@ -508,7 +510,7 @@ @include reduce-motion("transition"); &:focus { - box-shadow: none; + box-shadow: inset 0 0 0 $border-width-focus var(--wp-admin-theme-color); } }