Skip to content
Open
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
12 changes: 12 additions & 0 deletions libs/blocks/aside/aside.css
Original file line number Diff line number Diff line change
Expand Up @@ -1350,4 +1350,16 @@
.aside.container-mobile.media-top-mobile.rounded-corners .foreground.container > .image {
padding-top: var(--spacing-xs);
}

/* =================================
full-bleed-mobile variant
================================= */

.aside.full-bleed-mobile .foreground.container > .image {
width: 100vw;
}

.aside.full-bleed-mobile.inline .foreground.container > .text {
margin-inline: var(--spacing-m);
}
}
5 changes: 3 additions & 2 deletions libs/blocks/aside/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { decorateBlockText, decorateIconStack, applyHoverPlay, decorateBlockBg,
import { createTag, getConfig, loadStyle } from '../../utils/utils.js';

// standard/default aside uses same text sizes as the split
const variants = ['split', 'inline', 'notification', 'container-mobile'];
const variants = ['split', 'inline', 'notification', 'container-mobile', 'full-bleed-mobile'];
const sizes = ['extra-small', 'small', 'medium', 'large'];
const [split, inline, notification, containerMobile] = variants;
const [split, inline, notification, containerMobile, fullBleedMobile] = variants;
const [xsmall, small, medium, large] = sizes;
const blockConfig = {
[split]: ['xl', 's', 'm'],
Expand All @@ -32,6 +32,7 @@ const blockConfig = {
[large]: ['l', 'm'],
},
[containerMobile]: ['xl', 'l', 'l'],
[fullBleedMobile]: ['xl', 's', 'm'],
};
const FORMAT_REGEX = /^format:/i;
const closeSvg = `<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
Expand Down
Loading