SiteWebAstrolabe/src/scss/components/_video-player.scss

24 lines
347 B
SCSS
Raw Normal View History

2020-06-19 23:47:44 +02:00
.video-player {
position: relative;
padding-top: 56.25%;
@include media-query('md') {
.post & {
padding-top: 66%;
}
}
> iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// If its bleeding out in a post, it needs more padding
.post & {
padding-top: 63%;
}
}