Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/styles/block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
}
@include desktop-tablet {
.stk-block:is(.aligncenter, .alignwide, .alignfull) > .stk-content-align.alignwide,
// Dev note: add selector for carousel because it has an extra wrapper before the inner blocks.
.stk-block-carousel:is(.aligncenter, .alignwide, .alignfull) > :where(.stk-block-carousel__content-wrapper) > .stk-content-align.alignwide,
.stk-block .stk-block.alignwide {
// --stk-block-default-width is a Stackable setting
// --stk-block-width-default-detected is from the fallback autodetected value.
Expand Down
3 changes: 2 additions & 1 deletion src/styles/editor-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
}

:where(:is(.stk-preview-device-desktop, .stk-preview-device-tablet) [data-type^="stackable/"]:is([data-align="wide"], [data-align="full"]) > .stk-block > .stk-inner-blocks.alignwide),
:where(:is(.stk-preview-device-desktop, .stk-preview-device-tablet) [data-type^="stackable/"]:is([data-align="wide"], [data-align="full"]) [data-type^="stackable/"][data-align="wide"]) {
:where(:is(.stk-preview-device-desktop, .stk-preview-device-tablet) [data-type^="stackable/"]:is([data-align="wide"], [data-align="full"]) [data-type^="stackable/"][data-align="wide"]),
:where(:is(.stk-preview-device-desktop, .stk-preview-device-tablet) [data-type^="stackable/"]:is([data-align="wide"], [data-align="full"]) > .stk-block-carousel > :where(.stk-block-carousel__content-wrapper) > .stk-inner-blocks.alignwide) {
// --stk-block-default-width is a Stackable setting
// --stk-block-width-default-detected is from the fallback autodetected value.
max-width: var(--stk-block-wide-width, var(--stk-block-width-wide-detected, calc(80vw - 280px))) !important; // Make way for the inspector
Expand Down
Loading