From 290666bcc19cc1d01a4e00d95efabaf559a56087 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 29 Sep 2020 11:00:53 -0400 Subject: [PATCH] Remove the right margin for the right-most list items in the lastest posts block. (#25688) --- packages/block-library/src/latest-posts/style.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/latest-posts/style.scss b/packages/block-library/src/latest-posts/style.scss index e3a34c1387529c..cee628dbb20d38 100644 --- a/packages/block-library/src/latest-posts/style.scss +++ b/packages/block-library/src/latest-posts/style.scss @@ -28,7 +28,11 @@ @include break-small { @for $i from 2 through 6 { &.columns-#{ $i } li { - width: calc((100% / #{ $i }) - 1.25em); + width: calc((100% / #{ $i }) - 1.25em + (1.25em / #{ $i })); + + &:nth-child( #{ $i }n ) { + margin-right: 0; + } } } }