From daec1baebc3f7d5423ecee2384e76e9e733d8cd3 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 4 Oct 2015 19:27:30 +1100 Subject: Source API changes, Vimeo fixes, still WIP --- src/sass/plyr.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/sass') diff --git a/src/sass/plyr.scss b/src/sass/plyr.scss index de386cd8..71adb232 100644 --- a/src/sass/plyr.scss +++ b/src/sass/plyr.scss @@ -70,7 +70,6 @@ $bp-captions-large: 768px !default; // When captions jump to the larger // Animation // --------------------------------------- - @keyframes progress { to { background-position: $progress-loading-size 0; } } @@ -178,6 +177,8 @@ $bp-captions-large: 768px !default; // When captions jump to the larger &-video-embed { padding-bottom: 56.25%; /* 16:9 */ height: 0; + overflow: hidden; + background: #000; iframe { position: absolute; @@ -187,6 +188,13 @@ $bp-captions-large: 768px !default; // When captions jump to the larger height: 100%; border: 0; } + + // Vimeo hack + > div { + position: relative; + padding-bottom: 200%; + transform: translateY(-35.95%); + } } // Captions -- cgit v1.2.3