From 8ba39ba9f63066c98ab478e1d42564a63f67d831 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Wed, 29 Apr 2020 18:17:11 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty image caption is not aligned center when image is, on the front-end. Fixes the image caption alignment issue by adding `text-align: center;` to `.wp-block-image .aligncenter figcaption`. Props markusthiel, SergeyBiryukov, garethgillman. Fixes #49320. git-svn-id: https://develop.svn.wordpress.org/trunk@47689 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwenty/style-rtl.css | 4 ++++ src/wp-content/themes/twentytwenty/style.css | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index ae9bcb3412..490e6a2a65 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -5847,6 +5847,10 @@ a.to-the-top > * { .wp-block-image .alignright { margin-left: 0; } + + .wp-block-image .aligncenter figcaption { + text-align: center; + } /* BLOCK: SEPARATOR */ diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 7500f740ac..8d902c5bc6 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -5917,6 +5917,10 @@ a.to-the-top > * { /*rtl:ignore*/ margin-left: 0; } + + .wp-block-image .aligncenter figcaption { + text-align: center; + } /* BLOCK: SEPARATOR */