From fbf2fde0a6e326ca053220d26f6f5a952ddc5673 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Tue, 19 May 2020 22:15:08 +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. Brings the changes from [47820] to the 5.4 branch. Props kthmd, utz119, nikhilbhansi. Fixes #49435. Built from https://develop.svn.wordpress.org/branches/5.4@47823 git-svn-id: http://core.svn.wordpress.org/branches/5.4@47599 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwenty/style.css | 14 ++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwenty/style.css b/wp-content/themes/twentytwenty/style.css index 0ebfa46067..8183f8be0c 100644 --- a/wp-content/themes/twentytwenty/style.css +++ b/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,6 +5927,10 @@ a.to-the-top > * { /*rtl:ignore*/ margin-left: 0; } + + .wp-block-image .aligncenter figcaption { + text-align: center; + } /* BLOCK: SEPARATOR */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 0eef36ecef..2e0677bb54 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4.2-alpha-47822'; +$wp_version = '5.4.2-alpha-47823'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.