From 95e79ab35afe15645f1dd222f003e37ed0daff45 Mon Sep 17 00:00:00 2001 From: Kelly Choyce-Dwan Date: Mon, 1 Mar 2021 21:56:06 +0000 Subject: [PATCH] Twenty Fifteen & Twenty Sixteen: Remove extra space around post editor. The editor uses the full height of its container, so the added margins cause the visual editor to break out of the container. This removes the top & bottom margins, and makes the left & right margins consistent with the meta box area. Props antonlukin, paaljoachim, felipeelia. Fixes #52646. git-svn-id: https://develop.svn.wordpress.org/trunk@50465 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/css/editor-style.css | 2 +- src/wp-content/themes/twentysixteen/css/editor-style.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/css/editor-style.css b/src/wp-content/themes/twentyfifteen/css/editor-style.css index 2995cd1bd9..b2660b1ea8 100644 --- a/src/wp-content/themes/twentyfifteen/css/editor-style.css +++ b/src/wp-content/themes/twentyfifteen/css/editor-style.css @@ -28,7 +28,7 @@ body { font-weight: 400; font-size: 17px; line-height: 1.6471; - margin: 20px 40px; + margin: auto 20px; max-width: 660px; vertical-align: baseline; } diff --git a/src/wp-content/themes/twentysixteen/css/editor-style.css b/src/wp-content/themes/twentysixteen/css/editor-style.css index 69584798d9..e1b3445e86 100644 --- a/src/wp-content/themes/twentysixteen/css/editor-style.css +++ b/src/wp-content/themes/twentysixteen/css/editor-style.css @@ -28,7 +28,7 @@ body { font-size: 16px; font-weight: 400; line-height: 1.75; - margin: 20px 40px; + margin: auto 20px; max-width: 600px; vertical-align: baseline; }