From 1806172d05f64594c3effb91b2d062eeb8d13c80 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Thu, 28 Nov 2024 18:41:16 +0000 Subject: [PATCH] Twenty-Twenty: Fixes space between post content on front. The post author and post date did not have space between them and the post content. This brings in 1em of top margin. Of note is that this only is if the first element is a paragraph that the issue was caused. Props abcd95, sabernhardt, desrosj, sainathpoojary, viralsampat. Fixes #62243. Built from https://develop.svn.wordpress.org/trunk@59470 git-svn-id: http://core.svn.wordpress.org/trunk@58856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentytwenty/assets/css/editor-style-block-rtl.css | 4 ++++ .../themes/twentytwenty/assets/css/editor-style-block.css | 4 ++++ wp-content/themes/twentytwenty/style-rtl.css | 4 ++++ wp-content/themes/twentytwenty/style.css | 4 ++++ wp-includes/version.php | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index fd8868212b..8a5f813502 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -1065,6 +1065,10 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 15px; } +.wp-block-latest-posts__post-full-content > p:first-child { + margin-top: 1em; +} + /* Block: Shortcode -------------------------- */ .editor-styles-wrapper .wp-block-shortcode textarea { diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 19a11cf3f0..7f18f47724 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -1069,6 +1069,10 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 15px; } +.wp-block-latest-posts__post-full-content > p:first-child { + margin-top: 1em; +} + /* Block: Shortcode -------------------------- */ .editor-styles-wrapper .wp-block-shortcode textarea { diff --git a/wp-content/themes/twentytwenty/style-rtl.css b/wp-content/themes/twentytwenty/style-rtl.css index 6225738578..6806c9104b 100644 --- a/wp-content/themes/twentytwenty/style-rtl.css +++ b/wp-content/themes/twentytwenty/style-rtl.css @@ -3525,6 +3525,10 @@ figure.wp-block-table.is-style-stripes { margin-top: 0; } +.wp-block-latest-posts__post-full-content > p:first-child { + margin-top: 1em; +} + /* Block: Post Template ---------------- */ .wp-block-post-template, diff --git a/wp-content/themes/twentytwenty/style.css b/wp-content/themes/twentytwenty/style.css index 9a6da4ea71..08843cefe4 100644 --- a/wp-content/themes/twentytwenty/style.css +++ b/wp-content/themes/twentytwenty/style.css @@ -3549,6 +3549,10 @@ figure.wp-block-table.is-style-stripes { margin-top: 0; } +.wp-block-latest-posts__post-full-content > p:first-child { + margin-top: 1em; +} + /* Block: Post Template ---------------- */ .wp-block-post-template, diff --git a/wp-includes/version.php b/wp-includes/version.php index ba2df33454..b8a13ad006 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59469'; +$wp_version = '6.8-alpha-59470'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.