Twenty Seventeen: Fixes floated images having an extra space when the first image.

The first image when floated in content had extra spacing. This was only for the first image in testing so the solution focuses on that.

Props kjellr, sabernhardt, hmbashar, shailu25.
Fixes #46785.

Built from https://develop.svn.wordpress.org/trunk@58823


git-svn-id: http://core.svn.wordpress.org/trunk@58219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-07-29 09:32:13 +00:00
parent 062fb886f3
commit 8c22cdcc5f
2 changed files with 8 additions and 1 deletions

View File

@ -53,10 +53,12 @@ p.has-drop-cap:not(:focus)::first-letter {
}
.wp-block-image figure.alignleft {
margin-top: 0;
margin-right: 1.5em;
}
.wp-block-image figure.alignright {
margin-top: 0;
margin-left: 1.5em;
}
@ -70,6 +72,11 @@ p.has-drop-cap:not(:focus)::first-letter {
box-shadow: none;
}
.entry-content > .wp-block-image:first-child figure.alignleft,
.entry-content > .wp-block-image:first-child figure.alignright {
margin-top: 1.5em;
}
/* Gallery */
.wp-block-gallery {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-58822';
$wp_version = '6.7-alpha-58823';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.