mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
54c7c76836
commit
ac7877ce6f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user