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
This commit is contained in:
Sergey Biryukov 2019-08-26 19:01:55 +00:00
parent 9dc2a432b1
commit cc21760163
4 changed files with 11 additions and 6 deletions

View File

@ -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%;

View File

@ -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%;
}
}

View File

@ -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%;
}
}

View File

@ -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.