From 930633096e3652c69df8b047a121be49b22e6fad Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Mon, 18 May 2020 19:50:22 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty inconsistent top and bottom margins for `.alignwide` and `.alignfull` on Chrome vs Safari. Fixes the inconsistent margins for `alignwide` and `alignfull` classes used on Cover Block when it is the first block on a page. Props kthmd, utz119, nikhilbhansi. Fixes #49435. git-svn-id: https://develop.svn.wordpress.org/trunk@47820 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwenty/style.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 17b9df7914..af1497901a 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -3530,6 +3530,11 @@ figure.wp-block-table.is-style-stripes { margin: 4rem auto; } +.post-inner .entry-content > .wp-block-cover.alignwide:first-child, +.post-inner .entry-content > .wp-block-cover.alignfull:first-child { + margin-top: 0; +} + /* Font Families ----------------------------- */ .entry-content { @@ -5408,6 +5413,11 @@ a.to-the-top > * { margin-right: 4rem; } + .entry-content > .alignwide:first-child, + .entry-content > .alignfull:first-child { + margin-bottom: 8rem; + } + /* ENTRY MEDIA */ .alignfull > figcaption, @@ -5917,7 +5927,7 @@ a.to-the-top > * { /*rtl:ignore*/ margin-left: 0; } - + .wp-block-image .aligncenter figcaption { text-align: center; }