Skip to content

Commit

Permalink
Fix the text editor styles after the mixins reset (#14761)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Apr 2, 2019
1 parent ed3691a commit 9af3f42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/edit-post/src/components/text-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
border: $border-width solid $light-gray-500;
margin-bottom: 4px;
padding: $block-padding;

&:focus {
border: $border-width solid $light-gray-500;
}
}

textarea:hover,
Expand Down
16 changes: 8 additions & 8 deletions packages/editor/src/components/post-text-editor/style.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
.editor-post-text-editor {
border: $border-width solid $light-gray-500;
border: $border-width solid $light-gray-500 !important;
display: block;
margin: 0 0 2em;
width: 100%;
box-shadow: none;
resize: none;
overflow: hidden;
font-family: $editor-html-font;
font-family: $editor-html-font !important;
line-height: 150%;
border-radius: 0 !important;

/* Fonts smaller than 16px causes mobile safari to zoom. */
font-size: $mobile-text-min-font-size;
font-size: $mobile-text-min-font-size !important;
@include break-small {
font-size: $text-editor-font-size;
font-size: $text-editor-font-size !important;
}

&:hover,
&:focus {
border: $border-width solid $light-gray-500;
box-shadow: none;
border: $border-width solid $light-gray-800 !important;
box-shadow: none !important;
// Emulate the effect used on the post title.
outline: $border-width solid $light-gray-500;
outline-offset: -2px;
outline-offset: -2px !important;
}
}

Expand Down

0 comments on commit 9af3f42

Please sign in to comment.