forked from hlxsites/merative
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Navattic page blocks. * Navattic hamburger icons. * Navattic review comments. * CSS fixes for navattic page. * Removal of white line below iframe. * Navattic page footer issues.
- Loading branch information
1 parent
e538dc1
commit 5ab1853
Showing
10 changed files
with
396 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.section.iframe-container .iframe-wrapper { | ||
padding-bottom: 0; | ||
width: auto; | ||
margin: 0; | ||
max-width: unset; | ||
padding-top: 90px; | ||
} | ||
|
||
.section.iframe-container .iframe-wrapper .iframe iframe { | ||
display: block; | ||
} | ||
|
||
/* Tablet */ | ||
@media only screen and (min-width: 768px) { | ||
.section.iframe-container .iframe-wrapper { | ||
padding-top: var(--spacer-layout-06); | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 1200px) { | ||
.section.iframe-container .iframe-wrapper { | ||
padding-top: var(--spacer-layout-06); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { createTag } from '../../scripts/scripts.js'; | ||
|
||
export default function decorate(block) { | ||
// Fetch the iframe link | ||
const link = block.querySelector('a'); | ||
const path = link ? link.getAttribute('href') : ''; | ||
|
||
// Create the iframe tag | ||
const iframe = createTag('iframe', { class: 'iframe-window', id: 'navattic-iframe' }); | ||
iframe.src = path; | ||
|
||
// Set the height and width | ||
iframe.width = '100%'; | ||
iframe.height = 1200; | ||
|
||
// Remove the elements inside iframe block | ||
block.innerHTML = ''; | ||
|
||
// Append iframe to block | ||
block.appendChild(iframe); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.