Skip to content

Commit 8834f57

Browse files
committed
Twenty-Twenty: Fixes space between post content on front.
The post author and post date did not have space between them and the post content. This brings in 1em of top margin. Of note is that this only is if the first element is a paragraph that the issue was caused. Props abcd95, sabernhardt, desrosj, sainathpoojary, viralsampat. Fixes #62243. git-svn-id: https://develop.svn.wordpress.org/trunk@59470 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e99d839 commit 8834f57

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,10 @@ hr.wp-block-separator.is-style-dots::before {
10651065
margin-top: 15px;
10661066
}
10671067

1068+
.wp-block-latest-posts__post-full-content > p:first-child {
1069+
margin-top: 1em;
1070+
}
1071+
10681072
/* Block: Shortcode -------------------------- */
10691073

10701074
.editor-styles-wrapper .wp-block-shortcode textarea {

src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,10 @@ hr.wp-block-separator.is-style-dots::before {
10691069
margin-top: 15px;
10701070
}
10711071

1072+
.wp-block-latest-posts__post-full-content > p:first-child {
1073+
margin-top: 1em;
1074+
}
1075+
10721076
/* Block: Shortcode -------------------------- */
10731077

10741078
.editor-styles-wrapper .wp-block-shortcode textarea {

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,6 +3525,10 @@ figure.wp-block-table.is-style-stripes {
35253525
margin-top: 0;
35263526
}
35273527

3528+
.wp-block-latest-posts__post-full-content > p:first-child {
3529+
margin-top: 1em;
3530+
}
3531+
35283532
/* Block: Post Template ---------------- */
35293533

35303534
.wp-block-post-template,

src/wp-content/themes/twentytwenty/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,6 +3549,10 @@ figure.wp-block-table.is-style-stripes {
35493549
margin-top: 0;
35503550
}
35513551

3552+
.wp-block-latest-posts__post-full-content > p:first-child {
3553+
margin-top: 1em;
3554+
}
3555+
35523556
/* Block: Post Template ---------------- */
35533557

35543558
.wp-block-post-template,

0 commit comments

Comments
 (0)