Skip to content

Commit

Permalink
Add border to block "Edit as HTML" style. (#25539)
Browse files Browse the repository at this point in the history
* Add border to block "Edit as HTML" style.

* Use $grid-unit-15 (12px) padding.
  • Loading branch information
ZebulanStanphill committed Sep 29, 2020
1 parent e8bf626 commit 00818f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 00818f1

Please sign in to comment.