From c5a5d9b0940c0a1186f866d4a9558a74d16dc5f5 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 2 Dec 2024 05:42:44 +0000 Subject: [PATCH] Twenty Thirteen & Twenty Sixteen: Correct the border of the latest comments block in the editor. This change hides the top border of the first comment in the latest comments block, so that the design in the editor and the front looks the same. Props viralsampat, sabernhardt, aishwarryapande, parthvataliya, imranhasanraaz. Fixes #62282. git-svn-id: https://develop.svn.wordpress.org/trunk@59476 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentysixteen/css/editor-blocks.css | 4 ++-- src/wp-content/themes/twentythirteen/css/editor-blocks.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentysixteen/css/editor-blocks.css b/src/wp-content/themes/twentysixteen/css/editor-blocks.css index 4135fbb9b9..0ab68afe8a 100644 --- a/src/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/src/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -617,7 +617,7 @@ figure[class*="wp-block-"] > figcaption { /* Latest Comments */ -.editor-block-list__block .wp-block-latest-comments__comment-meta a { +.editor-styles-wrapper .wp-block-latest-comments__comment-meta a { box-shadow: none; font-weight: 700; text-decoration: none; @@ -631,7 +631,7 @@ figure[class*="wp-block-"] > figcaption { line-height: 1.6153846154; } -.wp-block-latest-comments .wp-block-latest-comments__comment { +.wp-block-latest-comments .wp-block-latest-comments__comment:not(:first-child) { border-top: 1px solid #d1d1d1; margin-bottom: 0; padding: 1.75em 0; diff --git a/src/wp-content/themes/twentythirteen/css/editor-blocks.css b/src/wp-content/themes/twentythirteen/css/editor-blocks.css index d92efb9754..1aa453dfa8 100644 --- a/src/wp-content/themes/twentythirteen/css/editor-blocks.css +++ b/src/wp-content/themes/twentythirteen/css/editor-blocks.css @@ -437,7 +437,7 @@ p.has-drop-cap:not(:focus)::first-letter { font-size: 16px; } -.wp-block-latest-comments .wp-block-latest-comments__comment { +.wp-block-latest-comments .wp-block-latest-comments__comment:not(:first-child) { background: url(../images/dotted-line.png) repeat-x left top; margin-bottom: 0; padding: 24px 0;