Skip to content

Commit

Permalink
Twenty-Twenty: Fixes space between post content on front.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
karmatosed committed Nov 28, 2024
1 parent e99d839 commit 8834f57
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,10 @@ hr.wp-block-separator.is-style-dots::before {
margin-top: 15px;
}

.wp-block-latest-posts__post-full-content > p:first-child {
margin-top: 1em;
}

/* Block: Shortcode -------------------------- */

.editor-styles-wrapper .wp-block-shortcode textarea {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,10 @@ hr.wp-block-separator.is-style-dots::before {
margin-top: 15px;
}

.wp-block-latest-posts__post-full-content > p:first-child {
margin-top: 1em;
}

/* Block: Shortcode -------------------------- */

.editor-styles-wrapper .wp-block-shortcode textarea {
Expand Down
4 changes: 4 additions & 0 deletions src/wp-content/themes/twentytwenty/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3525,6 +3525,10 @@ figure.wp-block-table.is-style-stripes {
margin-top: 0;
}

.wp-block-latest-posts__post-full-content > p:first-child {
margin-top: 1em;
}

/* Block: Post Template ---------------- */

.wp-block-post-template,
Expand Down
4 changes: 4 additions & 0 deletions src/wp-content/themes/twentytwenty/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3549,6 +3549,10 @@ figure.wp-block-table.is-style-stripes {
margin-top: 0;
}

.wp-block-latest-posts__post-full-content > p:first-child {
margin-top: 1em;
}

/* Block: Post Template ---------------- */

.wp-block-post-template,
Expand Down

0 comments on commit 8834f57

Please sign in to comment.