From 8c22cdcc5f39866a0ca93c51ec678e4d9f284168 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 29 Jul 2024 09:32:13 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentyseventeen/assets/css/blocks.css | 7 +++++++ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/blocks.css b/wp-content/themes/twentyseventeen/assets/css/blocks.css index 65efb8378a..46ecf2ca15 100644 --- a/wp-content/themes/twentyseventeen/assets/css/blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/blocks.css @@ -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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index 08c52e1110..d70f1ca073 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.