From df64fdac9eeac9515c16a21af39dbdd3163bb05c Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 25 Jul 2015 18:30:47 +1000 Subject: Tab focus and caption position fixes (fixes #61, fixes #92) --- src/sass/plyr.scss | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'src/sass') diff --git a/src/sass/plyr.scss b/src/sass/plyr.scss index 5e8150e7..eeda4f4c 100644 --- a/src/sass/plyr.scss +++ b/src/sass/plyr.scss @@ -594,15 +594,6 @@ $bp-captions-large: 768px !default; // When captions jump to the larger fo .player-video-wrapper { height: 100%; width: 100%; - - .player-captions { - top: auto; - bottom: 90px; - - @media (min-width: $bp-control-split) { - bottom: 60px; - } - } } .player-controls { position: absolute; @@ -612,13 +603,29 @@ $bp-captions-large: 768px !default; // When captions jump to the larger fo } // Hide controls when playing in full screen - &.fullscreen-hide-controls.playing .player-controls { - transform: translateY(100%) translateY($control-spacing / 2); - transition: transform .3s .2s ease; - - &.hover { + &.fullscreen-hide-controls.playing { + .player-controls { + transform: translateY(100%) translateY($control-spacing / 2); + transition: transform .3s .2s ease; + } + &.player-hover .player-controls { transform: translateY(0); } + .player-captions { + bottom: (@control-spacing / 2); + transition: bottom .3s .2s ease; + } + } + + // Captions + .player-captions, + &.fullscreen-hide-controls.playing.player-hover .player-captions { + top: auto; + bottom: 90px; + + @media (min-width: $bp-control-split) { + bottom: 60px; + } } } -- cgit v1.2.3