diff options
author | Sam Potts <me@sampotts.me> | 2015-07-25 18:30:47 +1000 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-07-25 18:30:47 +1000 |
commit | df64fdac9eeac9515c16a21af39dbdd3163bb05c (patch) | |
tree | fa32563db03421a38781fef99fa4c40d06204a54 /src/sass | |
parent | 4dbbbd04ccf87f2c102ac7dac07120993e606b46 (diff) | |
download | plyr-df64fdac9eeac9515c16a21af39dbdd3163bb05c.tar.lz plyr-df64fdac9eeac9515c16a21af39dbdd3163bb05c.tar.xz plyr-df64fdac9eeac9515c16a21af39dbdd3163bb05c.zip |
Tab focus and caption position fixes (fixes #61, fixes #92)
Diffstat (limited to 'src/sass')
-rw-r--r-- | src/sass/plyr.scss | 35 |
1 files changed, 21 insertions, 14 deletions
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; + } } } |