Skip to content

Commit

Permalink
Twenty Thirteen & Twenty Sixteen: Correct the border of the latest co…
Browse files Browse the repository at this point in the history
…mments 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
  • Loading branch information
carolinan committed Dec 2, 2024
1 parent cc5c5b8 commit c5a5d9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentysixteen/css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentythirteen/css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5a5d9b

Please sign in to comment.