From 0c97bbc1189800763203f20ed612339472150121 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 2 Feb 2023 09:23:21 +0000 Subject: [PATCH] Twenty Twenty-Two: Improve spacing for the legacy Post Comments block. This changeset adds margins to improve spacing in the legacy Post Comments block. This change only affects users who have not updated to the new Comments block. Props patelhitesh, audrasjb, poena, miguelaxcar. Fixes #57560. git-svn-id: https://develop.svn.wordpress.org/trunk@55189 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwentytwo/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/wp-content/themes/twentytwentytwo/style.css b/src/wp-content/themes/twentytwentytwo/style.css index f611fad6c1..c07b0d95f3 100644 --- a/src/wp-content/themes/twentytwentytwo/style.css +++ b/src/wp-content/themes/twentytwentytwo/style.css @@ -146,3 +146,16 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover, padding-left: var(--wp--custom--spacing--outer); } +/* + * Improves spacing for the legacy Post Comments block. + * https://core.trac.wordpress.org/ticket/57560 + */ + +.wp-block-post-comments ol.commentlist ul.children { + margin-top: 1rem; + margin-bottom: 1rem; +} + +.wp-block-post-comments ol.commentlist ul.children li:not(:last-child) { + margin-bottom: 1rem; +}