Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.1.3 #32

Merged
merged 6 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ resources/
node_modules/
.hugo_build.lock
.DS_Store
.netlify
.netlify
hugo_stats.json
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,15 @@ Useful for copyright notices and evergreen blog content.
Insert an iFrame with your desired content.

```
{{< iframe src="https://www.slideshare.net/slideshow/embed_code/key/vTNvkwIXN4pmr8" >}}
{{< iframe title="My slides" src="https://www.slideshare.net/slideshow/embed_code/key/vTNvkwIXN4pmr8" >}}
```

Options:
- src # (required) the page to display
- width # (optional)
- height # (optional)
- title # (optional) the title of the iframe for accessibility
- loading # (optional) defaults to lazy

### Img

Expand Down
20 changes: 12 additions & 8 deletions assets/scss/_embeds.scss → assets/scss/iframe.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ iframe {
border-left-style: inset;
}

iframe,
lite-youtube {
.responsive-iframe-wrapper {
position: relative;
padding-bottom: 66.66%; // 3:2 Aspect Ratio, 75% 4:3 Aspect Ratio, 56.25% 16:9 Aspect Ratio,
height: 0;
overflow: hidden;
background-color: var(--gray-200);
margin-top: 30px;
margin-bottom: 30px;
@media (min-width: $min-desktop) {
margin-top: 60px;
margin-bottom: 60px;
}
}

lite-youtube + lite-youtube {
margin-top: 0;
@media (min-width: $min-desktop) {
margin-top: 0;
}
.responsive-iframe-wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
20 changes: 18 additions & 2 deletions assets/scss/shortcodes/_youtube-enhanced.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* right-facing triangle "Play" icon */
.lite-youtube-fallback::before {
display: block;
content: '';
content: "";
border: solid transparent;
border-width: 2em 0 2em 3em;
border-left-color: red;
Expand All @@ -27,4 +27,20 @@

.lite-youtube-fallback:focus {
outline: 2px solid red;
}
}

lite-youtube {
margin-top: 30px;
margin-bottom: 30px;
@media (min-width: $min-desktop) {
margin-top: 60px;
margin-bottom: 60px;
}
}

lite-youtube + lite-youtube {
margin-top: 0;
@media (min-width: $min-desktop) {
margin-top: 0;
}
}
2 changes: 1 addition & 1 deletion assets/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@import "language-selector";
@import "footer";
@import "buttons";
@import "embeds";
@import "iframe";
@import "images";
@import "horizontal-rule";
@import "content";
Expand Down
11 changes: 0 additions & 11 deletions exampleSite/.prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions exampleSite/content/en/demo-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ Embedding tweets like this loads lots of tracking scripts and is not recommended

{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}

## Iframe

You can embed iFrame content simply using our shortcode:

{{< iframe src="https://docs.google.com/presentation/d/e/2PACX-1vT6TcnSJki1RdzzDTbLCKDl96POVoW4bNZH--0lsJXNrPRRjPC83o2DGKuhZj38qjALnZJPLa0yhMW5/embed?start=false&loop=true&delayms=5000" >}}

## Footnotes

Footnote 1 link[^first].
Expand Down
Loading