From 8a46f09d62e775d05c65f3bb14c4e7f51ec9497e Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 25 Jun 2021 10:06:58 +0100 Subject: [PATCH 1/3] Remove default left spacing on Latest Posts in all Editors --- packages/block-library/src/latest-posts/style.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-library/src/latest-posts/style.scss b/packages/block-library/src/latest-posts/style.scss index b52fb34cb26f4..2df097b3fc990 100644 --- a/packages/block-library/src/latest-posts/style.scss +++ b/packages/block-library/src/latest-posts/style.scss @@ -9,11 +9,13 @@ } &.wp-block-latest-posts__list { list-style: none; + padding-left: 0; li { clear: both; } } + &.is-grid { display: flex; flex-wrap: wrap; From c171617d0756c1062a3681859e4b2eeb39968c0f Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 25 Jun 2021 10:07:23 +0100 Subject: [PATCH 2/3] Remove spacing consistently across Post/Site, Widgets and Widgets Customizer editors --- .../block-library/src/latest-comments/style.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/block-library/src/latest-comments/style.scss b/packages/block-library/src/latest-comments/style.scss index 61c6aea843a74..10b6acb1ec8fe 100644 --- a/packages/block-library/src/latest-comments/style.scss +++ b/packages/block-library/src/latest-comments/style.scss @@ -1,4 +1,17 @@ + + +// Lower specificity +.wp-block-latest-comments { + // Removes left spacing in Customizer Widgets screen. + // Due to low specificity this will be safely overriden + // by default wp-block layout styles in the Post/Site editor + margin-left: 0; +} + +// Higher specificity ol.wp-block-latest-comments { + // Remove left spacing. Higher specificity required to + // override default wp-block layout styles in the Post/Site editor. padding-left: 0; } From 3ed922d5bacc432a7a0487b252b372d1d3959849 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 25 Jun 2021 10:30:34 +0100 Subject: [PATCH 3/3] Fix indentation of Comments block in Site Editor --- packages/block-library/src/latest-comments/style.scss | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/latest-comments/style.scss b/packages/block-library/src/latest-comments/style.scss index 10b6acb1ec8fe..14d3d67eae5ed 100644 --- a/packages/block-library/src/latest-comments/style.scss +++ b/packages/block-library/src/latest-comments/style.scss @@ -1,15 +1,13 @@ - - -// Lower specificity -.wp-block-latest-comments { +// Lower specificity - target list element. +ol.wp-block-latest-comments { // Removes left spacing in Customizer Widgets screen. // Due to low specificity this will be safely overriden // by default wp-block layout styles in the Post/Site editor margin-left: 0; } -// Higher specificity -ol.wp-block-latest-comments { +// Higher specificity - target list via wrapper. +.wp-block-latest-comments .wp-block-latest-comments { // Remove left spacing. Higher specificity required to // override default wp-block layout styles in the Post/Site editor. padding-left: 0;