Skip to content

Commit

Permalink
Merge pull request #776 from maykinmedia/feature/1714-styling-video-h…
Browse files Browse the repository at this point in the history
…omepage

[#1756] Make video iFrames responsive
  • Loading branch information
Bartvaderkin authored Sep 22, 2023
2 parents c96b85f + 8a270b6 commit ac5a902
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/open_inwoner/scss/components/Video/Video.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
.video {
margin: var(--spacing-large) 0;
max-width: var(--mobile-s-width);

&__container {
}

&__player {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%; /* 16:9 Aspect Ratio for modern videos (divide 9 by 16 = 0.5625) */
}

&__iframe {
border-width: 0;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}

&--full-width {
Expand Down

0 comments on commit ac5a902

Please sign in to comment.