Skip to content

Commit

Permalink
Remove youtube embed
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Mar 2, 2024
1 parent 608870c commit bfdad3a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,12 @@ pre[class*=language-] {
position: absolute;
text-transform: uppercase;
}
.post-content a[href*=youtube] img {
aspect-ratio: 16/9;
inline-size: 100%;
object-fit: cover;
object-position: center;
}

.cta {
background-color: var(--spruce-footer-color-background);
Expand Down
2 changes: 1 addition & 1 deletion src/docs/getting-started/internationalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The simplest example is the right-to-left (RTL) writing mode used by Arabic and

For more information, check out this excellent introductory video from [Moriel Schottlender](https://twitter.com/mooeypoo) hosted by [Jason Lengstorf](https://www.jason.af/):

<iframe width="600" height="400" src="https://www.youtube.com/embed/OHF2h1_fBCM" title="Right-to Left (RTL) Support for Websites (with Moriel Schottlender) — Learn With Jason" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
[![Right-to Left (RTL) Support for Websites (with Moriel Schottlender) — Learn With Jason](https://img.youtube.com/vi/OHF2h1_fBCM/hqdefault.jpg)](https://www.youtube.com/watch?v=OHF2h1_fBCM)

## Logical Properties and Values

Expand Down
9 changes: 9 additions & 0 deletions src/scss/section/_post-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,13 @@
text-transform: uppercase;
}
}

a[href*='youtube'] {
img {
aspect-ratio: 16 / 9;
inline-size: 100%;
object-fit: cover;
object-position: center;
}
}
}

0 comments on commit bfdad3a

Please sign in to comment.