Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Blockbase: fixed alignments, take 999 #4448

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions blockbase/sass/base/_alignment.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
.wp-block-group.alignfull,
/*.wp-block-group.alignfull,
*[class*="wp-container-"] //Anything that inherits layout (container)
{
//give it some padding
padding-left: var(--wp--custom--post-content--padding--left);
padding-right: var(--wp--custom--post-content--padding--right);

//Any nested containers, and anything that is alignfull
*[class*="wp-container-"], // Any nested containers
//nested containers don't need the extra padding
[class*="wp-container-"] {
padding-left: unset;
padding-right: unset;
}

> .alignfull { // Any direct descendant that is alignfull
// bust out of the container's padding
margin-left: calc(-1 * var(--wp--custom--post-content--padding--left)) !important;
margin-right: calc(-1 * var(--wp--custom--post-content--padding--right)) !important;
width: calc( 100% + var(--wp--custom--post-content--padding--left) + var(--wp--custom--post-content--padding--right) ) !important;
}
}*/

.wp-site-blocks {
padding-left: var(--wp--custom--post-content--padding--left);
padding-right: var(--wp--custom--post-content--padding--right);
.alignfull {
width: calc( 100% + var(--wp--custom--post-content--padding--left) + var(--wp--custom--post-content--padding--right) ) !important;
margin-left: calc(-1 * var(--wp--custom--post-content--padding--left)) !important;
margin-right: calc(-1 * var(--wp--custom--post-content--padding--right)) !important;
.alignfull {
width: auto !important;
margin-left: auto !important;
margin-right: auto !important;
}
}
}

@include break-mobile {
Expand Down