From b15e5308285fdd81687d8655d2128b3d8def65c3 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 6 Feb 2023 08:26:21 +0000 Subject: [PATCH] Twenty Sixteen: Fix Gallery block images alignement. This changeset fixes an alignment issue that has been present since the gallery block markup was changed in WordPress 6.0. Props silicium23, zoonini, sabernhardt, bgoewert, ira2910, tahminar27. Fixes #56412. Built from https://develop.svn.wordpress.org/trunk@55227 git-svn-id: http://core.svn.wordpress.org/trunk@54760 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentysixteen/css/blocks.css | 6 ++++++ wp-content/themes/twentysixteen/style.css | 1 + wp-includes/version.php | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentysixteen/css/blocks.css b/wp-content/themes/twentysixteen/css/blocks.css index 61ffff6591..df2febe24c 100644 --- a/wp-content/themes/twentysixteen/css/blocks.css +++ b/wp-content/themes/twentysixteen/css/blocks.css @@ -58,6 +58,12 @@ p.has-drop-cap:not(:focus)::first-letter { margin-left: 0; margin-right: -40%; } + + body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image img.below-entry-meta, + body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image figcaption.below-entry-meta { + margin: 0; + max-width: 100%; + } } /* Gallery */ diff --git a/wp-content/themes/twentysixteen/style.css b/wp-content/themes/twentysixteen/style.css index fc58afaf84..aca10cc365 100644 --- a/wp-content/themes/twentysixteen/style.css +++ b/wp-content/themes/twentysixteen/style.css @@ -3614,6 +3614,7 @@ p > video { max-width: 140%; } + body:not(.search-results) article:not(.type-page) .gallery-item img.below-entry-meta, body:not(.search-results) article:not(.type-page) figure.below-entry-meta img.below-entry-meta, body:not(.search-results) article:not(.type-page) table figure.below-entry-meta, body:not(.search-results) article:not(.type-page) table img.below-entry-meta { diff --git a/wp-includes/version.php b/wp-includes/version.php index 7021617b1a..020cc8a3f5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55226'; +$wp_version = '6.2-alpha-55227'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.