28 lines
705 B
SCSS
28 lines
705 B
SCSS
// --------------------------------------------------------------
|
|
// Faux poster overlay
|
|
// --------------------------------------------------------------
|
|
|
|
.plyr__poster {
|
|
background-color: var(--plyr-video-background, $plyr-video-background);
|
|
background-position: 50% 50%;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
height: 100%;
|
|
left: 0;
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
transition: opacity 0.2s ease;
|
|
width: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.plyr--stopped.plyr__poster-enabled .plyr__poster {
|
|
opacity: 1;
|
|
}
|
|
|
|
// Allow interaction with YouTube controls while paused
|
|
.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {
|
|
display: none;
|
|
}
|