Skip to content

Commit 5fa8d85

Browse files
author
Andreas Haller
authored
Merge pull request #429 from Netcentric/feat/ado-summit-embed-updates
Feat/ado summit embed updates
2 parents e6b5c65 + 254b5c3 commit 5fa8d85

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎blocks/columns/columns.css‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
flex-direction: column-reverse;
2626
}
2727

28+
.columns.center-aligned > div {
29+
align-items: center;
30+
}
31+
2832
.columns.rainbow > div > div,
2933
.columns.rainbow-reverse > div > div {
3034
margin: 0;
@@ -44,12 +48,6 @@
4448
margin-top: 0;
4549
}
4650

47-
/* layout */
48-
/* stylelint-disable-next-line no-descending-specificity */
49-
.columns.center-aligned > div {
50-
align-items: center;
51-
}
52-
5351
.columns.center-aligned > div > div {
5452
flex-grow: auto;
5553
}

‎blocks/embed/embed.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ const calculatePaddingFromRatio = (ratio) => {
1212
};
1313

1414
const getDefaultEmbed = (url, paddingBottom = '40.75%') => `<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: ${paddingBottom}">
15-
<iframe src="${url.href}" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute; overflow: visible;" allowfullscreen=""
16-
scrolling="yes" allow="encrypted-media" title="Content from ${url.hostname}" loading="lazy">
15+
<iframe src="${url.href}" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute; overflow: visible;"
16+
sandbox="allow-scripts allow-forms allow-same-origin"
17+
allowfullscreen="" scrolling="yes" allow="encrypted-media" title="Content from ${url.hostname}" loading="lazy">
1718
</iframe>
1819
</div>`;
1920

‎scripts/scripts.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ async function autoBlockEmbeddedLinks(main, urlParam = 'embedded') {
309309
async function buildAutoBlocks(main) {
310310
try {
311311
buildHeroBlock(main);
312+
autoBlockEmbeddedLinks(main);
312313
const template = toClassName(getMetadata('template'));
313314
const templates = TEMPLATE_LIST;
314315
if (templates.includes(template)) {
@@ -345,7 +346,6 @@ export async function decorateMain(main) {
345346
preDecorateMarketoForm(main);
346347
await buildAutoBlocks(main);
347348
decorateSections(main);
348-
await autoBlockEmbeddedLinks(main);
349349
decorateBlocks(main);
350350
preDecorateEmbed(main);
351351
}

0 commit comments

Comments
 (0)