aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2021-04-17 00:19:05 +1000
committerSam Potts <sam@potts.es>2021-04-17 00:19:05 +1000
commit5d08821c9b32917d0c1ad3346e4bf9bbe0b39fb9 (patch)
treebd03e54da754fd650d70cfce8ec411723ded762f
parent3316e40e7b12021b45c3291ea460048d3fc33707 (diff)
downloadplyr-5d08821c9b32917d0c1ad3346e4bf9bbe0b39fb9.tar.lz
plyr-5d08821c9b32917d0c1ad3346e4bf9bbe0b39fb9.tar.xz
plyr-5d08821c9b32917d0c1ad3346e4bf9bbe0b39fb9.zip
fix: missing styles for embeds
-rw-r--r--src/sass/types/video.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sass/types/video.scss b/src/sass/types/video.scss
index 9a10d5ea..79b3e158 100644
--- a/src/sass/types/video.scss
+++ b/src/sass/types/video.scss
@@ -28,14 +28,17 @@ $embed-padding: ((100 / 16) * 9);
.plyr__video-wrapper--fixed-ratio {
height: 0;
padding-bottom: to-percentage($embed-padding);
+ position: relative;
}
.plyr__video-embed iframe,
.plyr__video-wrapper--fixed-ratio video {
border: 0;
+ height: 100%;
left: 0;
position: absolute;
top: 0;
+ width: 100%;
}
// If the full custom UI is supported