diff options
author | Sam Potts <sam@potts.es> | 2019-04-12 18:39:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 18:39:14 +1000 |
commit | 5fefabe3bddf705f3c3956152882b5ceab44c8dc (patch) | |
tree | 43c1b11c4361e02189ae643f525efb155d8a99d0 /src/sass/components/embed.scss | |
parent | 0f3098040d8650a762067d1f1aa5ab520cb9b90c (diff) | |
parent | e281078441ad50c4b0b997b615b48fc0c254f173 (diff) | |
download | plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.tar.lz plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.tar.xz plyr-5fefabe3bddf705f3c3956152882b5ceab44c8dc.zip |
Merge pull request #1410 from sampotts/develop
v3.5.3
Diffstat (limited to 'src/sass/components/embed.scss')
-rw-r--r-- | src/sass/components/embed.scss | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/sass/components/embed.scss b/src/sass/components/embed.scss deleted file mode 100644 index 25431caf..00000000 --- a/src/sass/components/embed.scss +++ /dev/null @@ -1,36 +0,0 @@ -// -------------------------------------------------------------- -// Embedded players -// YouTube, Vimeo, etc -// -------------------------------------------------------------- - -// Default to 16:9 ratio but this is set by JavaScript based on config -$embed-padding: ((100 / 16) * 9); - -.plyr__video-embed { - height: 0; - padding-bottom: to-percentage($embed-padding); - position: relative; - - iframe { - border: 0; - height: 100%; - left: 0; - position: absolute; - top: 0; - user-select: none; - width: 100%; - } -} - -// If the full custom UI is supported -.plyr--full-ui .plyr__video-embed { - $height: 240; - $offset: to-percentage(($height - $embed-padding) / ($height / 50)); - - // Only used for Vimeo - > .plyr__video-embed__container { - padding-bottom: to-percentage($height); - position: relative; - transform: translateY(-$offset); - } -} |