Fullscreen fixes
This commit is contained in:
parent
9b09c9c7a0
commit
7d077d543b
2
dist/plyr.css
vendored
2
dist/plyr.css
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -1431,12 +1431,16 @@
|
|||||||
|
|
||||||
// Play media
|
// Play media
|
||||||
function _play() {
|
function _play() {
|
||||||
plyr.media.play();
|
if('play' in plyr.media) {
|
||||||
|
plyr.media.play();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pause media
|
// Pause media
|
||||||
function _pause() {
|
function _pause() {
|
||||||
plyr.media.pause();
|
if('pause' in plyr.media) {
|
||||||
|
plyr.media.pause();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle playback
|
// Toggle playback
|
||||||
|
@ -624,41 +624,42 @@
|
|||||||
video {
|
video {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.plyr-video-wrapper {
|
.plyr__video-wrapper {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.plyr-controls {
|
.plyr__controls {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Hide controls when playing in full screen
|
// Hide controls when playing in full screen
|
||||||
&--fullscreen--hide-controls.plyr--playing {
|
&--fullscreen--hide-controls.plyr--playing {
|
||||||
.plyr__controls {
|
.plyr__controls {
|
||||||
transform: translateY(100%) translateY(@control-spacing / 2);
|
transform: translateY(100%) translateY(@control-spacing / 2);
|
||||||
transition: transform .3s .2s ease;
|
transition: transform .3s .2s ease;
|
||||||
}
|
|
||||||
&.plyr--hover .plyr__controls {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
.plyr__captions {
|
|
||||||
bottom: (@control-spacing / 2);
|
|
||||||
transition: bottom .3s .2s ease;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
&.plyr--hover .plyr__controls {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
.plyr__captions {
|
||||||
|
bottom: (@control-spacing / 2);
|
||||||
|
transition: bottom .3s .2s ease;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Captions
|
// Captions
|
||||||
.plyr__captions,
|
&--fullscreen .plyr__captions,
|
||||||
&--fullscreen--hide-controls.plyr--playing.plyr--hover .plyr__captions {
|
&--fullscreen-active .plyr__captions,
|
||||||
top: auto;
|
&--fullscreen--hide-controls.plyr--playing.plyr--hover .plyr__captions {
|
||||||
bottom: 90px;
|
top: auto;
|
||||||
|
bottom: 90px;
|
||||||
|
|
||||||
@media (min-width: @bp-control-split) {
|
@media (min-width: @bp-control-split) {
|
||||||
bottom: 60px;
|
bottom: 60px;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user