From cc217601637d8ba57277232725b9e4a1d2b3a595 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Aug 2019 19:01:55 +0000 Subject: [PATCH] Twenty Nineteen: Make sure center-aligned images in columns do not break beyond the column boundaries. Props kjellr. Fixes #47937. Built from https://develop.svn.wordpress.org/trunk@45897 git-svn-id: http://core.svn.wordpress.org/trunk@45708 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/sass/blocks/_blocks.scss | 3 ++- wp-content/themes/twentynineteen/style-rtl.css | 6 ++++-- wp-content/themes/twentynineteen/style.css | 6 ++++-- wp-includes/version.php | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index 16ae2d3713..e59eb470cd 100644 --- a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -788,7 +788,8 @@ } // Ensure images do not expand beyond the column. - .wp-block-image > img:not(.alignwide):not(.alignfull) { + .wp-block-image > img:not(.alignwide):not(.alignfull), + .wp-block-image > figure { @include media(tablet) { max-width: 100%; diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css index df10ac4e9d..479a6d6bb3 100644 --- a/wp-content/themes/twentynineteen/style-rtl.css +++ b/wp-content/themes/twentynineteen/style-rtl.css @@ -6092,13 +6092,15 @@ body.page .main-navigation { } @media only screen and (min-width: 768px) { - .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull) { + .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), + .entry .entry-content .wp-block-columns .wp-block-image > figure { max-width: 100%; } } @media only screen and (min-width: 1168px) { - .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull) { + .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), + .entry .entry-content .wp-block-columns .wp-block-image > figure { max-width: 100%; } } diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css index 1cc1c0658f..e6d76f0e06 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -6104,13 +6104,15 @@ body.page .main-navigation { } @media only screen and (min-width: 768px) { - .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull) { + .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), + .entry .entry-content .wp-block-columns .wp-block-image > figure { max-width: 100%; } } @media only screen and (min-width: 1168px) { - .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull) { + .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), + .entry .entry-content .wp-block-columns .wp-block-image > figure { max-width: 100%; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 00d1c0cc84..1d998f1e78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45896'; +$wp_version = '5.3-alpha-45897'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.