Skip to content

Commit

Permalink
Merge pull request #443 from stellarwp/bugfix/row-layout-full-and-wid…
Browse files Browse the repository at this point in the history
…e-width-when-pattern

Style row layout container when pattern applied
  • Loading branch information
oakesjosh authored Feb 21, 2024
2 parents ff6d656 + b525dda commit f3fc910
Show file tree
Hide file tree
Showing 2 changed files with 19 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
1 change: 1 addition & 0 deletions src/blocks/rowlayout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
padding-left: var(--global-content-edge-padding, 15px);
padding-right: var(--global-content-edge-padding, 15px);
}

.alignfull > .kt-row-layout-inner > .kt-row-column-wrap, .alignfull > .kt-row-column-wrap {
padding-left: var(--global-content-edge-padding, 15px);
padding-right: var(--global-content-edge-padding, 15px);
Expand Down

0 comments on commit f3fc910

Please sign in to comment.