mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-19 11:01:23 +02:00
5bd111eb76
This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.
For a full list of changes since [49633], see 1d5a895...53acd9b
.
Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
See #51526.
Built from https://develop.svn.wordpress.org/trunk@49726
git-svn-id: http://core.svn.wordpress.org/trunk@49449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
46 lines
1.2 KiB
SCSS
46 lines
1.2 KiB
SCSS
.wp-block-group {
|
|
// Start IE clearfix.
|
|
// This hack is only necessary because we want to support IE11.
|
|
// If we don't want to support IE11, then "display: flow-root" would suffice.
|
|
display: block;
|
|
clear: both;
|
|
|
|
display: flow-root; // stylelint-disable-line declaration-block-no-duplicate-properties
|
|
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
// End IE clearfix.
|
|
|
|
&.has-background {
|
|
padding: var(--global--spacing-vertical);
|
|
|
|
[data-align="full"] & {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
// Block Styles
|
|
&.is-style-twentytwentyone-border {
|
|
border: calc(3 * var(--separator--height)) solid var(--global--color-border);
|
|
padding: var(--global--spacing-vertical);
|
|
|
|
.wp-block-group__inner-container > [data-align="full"] {
|
|
max-width: calc(var(--responsive--alignfull-width) + (2 * var(--global--spacing-vertical)));
|
|
width: calc(var(--responsive--alignfull-width) + (2 * var(--global--spacing-vertical)));
|
|
margin-left: calc(-1 * var(--global--spacing-vertical));
|
|
}
|
|
}
|
|
|
|
@include innerblock-margin-clear(".wp-block-group__inner-container");
|
|
}
|
|
|
|
.wp-block-group .wp-block-group.has-background > .block-editor-block-list__layout > [data-align="full"] {
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|