From 706fbc5a1299a0a5cd86f0c865eb02dd8a5055c4 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 17 Apr 2017 09:42:25 +0100 Subject: [PATCH] Fix the paragraph styling --- blocks/components/editable/style.scss | 14 ++++++++++++-- editor/modes/visual-editor/style.scss | 5 ----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/blocks/components/editable/style.scss b/blocks/components/editable/style.scss index 1a143b68d8ea1..468315ca41743 100644 --- a/blocks/components/editable/style.scss +++ b/blocks/components/editable/style.scss @@ -1,3 +1,13 @@ -.blocks-editable:focus { - outline: none; +.blocks-editable { + > p:first-child { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } + + &:focus { + outline: none; + } } diff --git a/editor/modes/visual-editor/style.scss b/editor/modes/visual-editor/style.scss index 60c27fb03eac4..04ef444ebc526 100644 --- a/editor/modes/visual-editor/style.scss +++ b/editor/modes/visual-editor/style.scss @@ -8,11 +8,6 @@ font-size: $editor-font-size; line-height: $editor-line-height; } - - p { - margin-top: 0; - margin-bottom: 0; - } } .editor-visual-editor__block {