Skip to content

Commit

Permalink
feat: adapt youtube video size automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 22, 2021
1 parent 715e5ed commit 30d2f4d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/_embed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,21 @@
.cp__right-sidebar .embed-block {
background: var(--ls-secondary-background-color);
}

@media (min-width: 800px) {
.cp__sidebar-main-content[style*="wide"] iframe[id*="youtube-player-"] {
height: 400px !important;
}
}

@media (min-width: 1000px) {
.cp__sidebar-main-content[style*="wide"] iframe[id*="youtube-player-"] {
height: 500px !important;
}
}

@media (min-width: 1200px) {
.cp__sidebar-main-content[style*="wide"] iframe[id*="youtube-player-"] {
height: 600px !important;
}
}

0 comments on commit 30d2f4d

Please sign in to comment.