From c10412751233de429b1cdb876241e7baea6169d1 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 1 Nov 2019 10:18:03 +0100 Subject: [PATCH] Restore a rule for the title block. This fixes an issue with TwentyNineteen. --- .../src/components/visual-editor/style.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/edit-post/src/components/visual-editor/style.scss b/packages/edit-post/src/components/visual-editor/style.scss index aa6b5e39ab8232..6346b4f02bcc72 100644 --- a/packages/edit-post/src/components/visual-editor/style.scss +++ b/packages/edit-post/src/components/visual-editor/style.scss @@ -54,6 +54,18 @@ } } + +// The base width of the title should match that of blocks even if it isn't a block. +// @todo: This duplicates CSS from line 49 in block-list/style.scss, and should be +// removed when the Title field becomes an actual block. +.editor-post-title { + // Beyond the mobile breakpoint, compensate for side UI. + @include break-small() { + padding-left: $block-padding + $block-side-ui-width + $block-padding + $border-width * 2; + padding-right: $block-padding + $block-side-ui-width + $block-padding + $border-width * 2; + } +} + .edit-post-visual-editor .editor-post-title__block { // Center. margin-left: auto;