Skip to content

Commit

Permalink
fix: youtube embedded videos overflow on mobile issue in #243
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHcodes committed Oct 20, 2022
1 parent fbf76ba commit 19dea1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/YouTube/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
aspect-ratio: 16/9;
height: auto;
width: 100%;
max-width: 100%;
}

.yt > h2 {
Expand Down
10 changes: 10 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,13 @@ body {
font-family: "Terminal Glyphs", Consolas, Menlo, "Bitstream Vera Sans Mono",
monospace, "Powerline Symbols";
}

/* youtube embedded videos */
iframe[src*="youtube.com"] {
border: 2px solid var(--ifm-color-primary);
border-radius: .5rem;
width: 100%;
max-width: 560px;
aspect-ratio: 16/9;
height: auto;
}

0 comments on commit 19dea1b

Please sign in to comment.