Skip to content

Commit

Permalink
Style container when pattern applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Lalo Sanchez committed Feb 21, 2024
1 parent d2069ab commit 8804610
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/blocks/rowlayout/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,24 @@ div.kb-blocks-bg-video {
// Therefore, let's at least not add any additional margins here.
// The goal is for the editor to look more like the front-end.
//.block-editor-block-list__layout .block-editor-block-list__block[data-type="kadence/rowlayout"] > .block-editor-block-list__block-edit,
.is-root-container > .block-library-block__reusable-block-container.is-reusable {
max-width: calc(100vw - 16px);
width: 100vw;

.block-editor-block-list__block {
max-width: var(--global-content-width);

&.alignwide {
max-width: var(--global-content-wide-width) !important;
}

&.alignfull {
margin: 0 -8px;
max-width: calc(100% + 16px)!important;
}
}
}

.wp-block-kadence-rowlayout {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 8804610

Please sign in to comment.