From 8834f5783c344a141a8cd01e660cd27ae7e64e83 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Thu, 28 Nov 2024 18:39:10 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@59470 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwenty/assets/css/editor-style-block-rtl.css | 4 ++++ .../themes/twentytwenty/assets/css/editor-style-block.css | 4 ++++ src/wp-content/themes/twentytwenty/style-rtl.css | 4 ++++ src/wp-content/themes/twentytwenty/style.css | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index fd8868212b324..8a5f813502b72 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/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/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 19a11cf3f0ee6..7f18f4772441e 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/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/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index 6225738578934..6806c9104b068 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/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/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 9a6da4ea71eda..08843cefe43a4 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/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,