Twenty Nineteen: Fix padding discrepancies in responsive styles for Column block.

Props kjellr, dianeco.
Fixes #46643, #46999.
Built from https://develop.svn.wordpress.org/trunk@45264


git-svn-id: http://core.svn.wordpress.org/trunk@45073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-04-24 18:37:52 +00:00
parent 54c7c76836
commit ac7877ce6f
4 changed files with 28 additions and 73 deletions

View File

@ -741,16 +741,6 @@
//! Columns
.wp-block-columns {
&.alignfull {
padding-left: $size__spacing-unit;
padding-right: $size__spacing-unit;
}
@include media(mobile) {
flex-wrap: nowrap;
}
@include media(tablet) {
.wp-block-column > * {
&:first-child {
@ -762,18 +752,11 @@
}
}
&[class*='has-'] > * {
margin-right: $size__spacing-unit;
@include media(tablet) {
flex-wrap: nowrap;
&:last-child {
margin-right: 0;
}
}
&.alignfull,
&.alignfull .wp-block-column {
padding-left: calc(2 * #{$size__spacing-unit});
padding-right: calc(2 * #{$size__spacing-unit});
.wp-block-column:not(:first-child) {
margin-left: 32px;
}
}
}

View File

@ -6029,34 +6029,20 @@ body.page .main-navigation {
word-break: break-word;
}
.entry .entry-content .wp-block-columns.alignfull {
padding-right: 1rem;
padding-left: 1rem;
.entry .entry-content .wp-block-columns .wp-block-column > *:first-child {
margin-top: 0;
}
@media only screen and (min-width: 600px) {
.entry .entry-content .wp-block-columns {
flex-wrap: nowrap;
}
.entry .entry-content .wp-block-columns .wp-block-column > *:last-child {
margin-bottom: 0;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-columns .wp-block-column > *:first-child {
margin-top: 0;
.entry .entry-content .wp-block-columns {
flex-wrap: nowrap;
}
.entry .entry-content .wp-block-columns .wp-block-column > *:last-child {
margin-bottom: 0;
}
.entry .entry-content .wp-block-columns[class*='has-'] > * {
margin-left: 1rem;
}
.entry .entry-content .wp-block-columns[class*='has-'] > *:last-child {
margin-left: 0;
}
.entry .entry-content .wp-block-columns.alignfull,
.entry .entry-content .wp-block-columns.alignfull .wp-block-column {
padding-right: calc(2 * 1rem);
padding-left: calc(2 * 1rem);
.entry .entry-content .wp-block-columns .wp-block-column:not(:first-child) {
margin-right: 32px;
}
}

View File

@ -6041,34 +6041,20 @@ body.page .main-navigation {
word-break: break-word;
}
.entry .entry-content .wp-block-columns.alignfull {
padding-left: 1rem;
padding-right: 1rem;
.entry .entry-content .wp-block-columns .wp-block-column > *:first-child {
margin-top: 0;
}
@media only screen and (min-width: 600px) {
.entry .entry-content .wp-block-columns {
flex-wrap: nowrap;
}
.entry .entry-content .wp-block-columns .wp-block-column > *:last-child {
margin-bottom: 0;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-columns .wp-block-column > *:first-child {
margin-top: 0;
.entry .entry-content .wp-block-columns {
flex-wrap: nowrap;
}
.entry .entry-content .wp-block-columns .wp-block-column > *:last-child {
margin-bottom: 0;
}
.entry .entry-content .wp-block-columns[class*='has-'] > * {
margin-right: 1rem;
}
.entry .entry-content .wp-block-columns[class*='has-'] > *:last-child {
margin-right: 0;
}
.entry .entry-content .wp-block-columns.alignfull,
.entry .entry-content .wp-block-columns.alignfull .wp-block-column {
padding-left: calc(2 * 1rem);
padding-right: calc(2 * 1rem);
.entry .entry-content .wp-block-columns .wp-block-column:not(:first-child) {
margin-left: 32px;
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta3-45263';
$wp_version = '5.2-beta3-45264';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.