From fe3fa337cf97ed48d8b1f35f257d538e60f16aec Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sun, 18 Aug 2024 09:13:31 +0000 Subject: [PATCH] Twenty Twenty: Fixes image block caption alignment not being centered on mobile. The image block caption was not being centered on mobile. This was set to start at 1000 pixels and wider. This might have been intended to prevent wrapping, but you can resolve this by unselecting alignment. Props spanglishwebs, sabernhardt, sudipatel007, shailu25. Fixes #50317. git-svn-id: https://develop.svn.wordpress.org/trunk@58909 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwenty/style-rtl.css | 8 ++++---- src/wp-content/themes/twentytwenty/style.css | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index a9a001507d..ff1ee06e72 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -1255,6 +1255,10 @@ button.toggle { margin-left: auto; } +.aligncenter figcaption { + text-align: center; +} + /* Search Form ------------------------------- */ .search-form { @@ -5951,10 +5955,6 @@ a.to-the-top > * { margin-left: 0; } - .wp-block-image .aligncenter figcaption { - text-align: center; - } - /* BLOCK: SEPARATOR */ hr.wp-block-separator { diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index d3d8b5a7df..d2ed0ac34a 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -1261,6 +1261,10 @@ button.toggle { margin-right: auto; } +.aligncenter figcaption { + text-align: center; +} + /* Search Form ------------------------------- */ .search-form { @@ -6023,10 +6027,6 @@ a.to-the-top > * { margin-left: 0; } - .wp-block-image .aligncenter figcaption { - text-align: center; - } - /* BLOCK: SEPARATOR */ hr.wp-block-separator {