Plyr: Request: add class modifier 'plyr--fullscreen-active' on fullscreen

Created on 29 Mar 2018  路  6Comments  路  Source: sampotts/plyr

It would be convenient for styling purposes to have a class plyr--fullscreen-active on container <div class="plyr"> when fullscreen is active. I guess, you had it on v2

In v3 currently, I see only plyr--fullscreen-enabled there.

Improvement

Most helpful comment

See my comment above ^

All 6 comments

Yep can do this. The change in v3 was to use the native pseudo class :fullscreen instead but it'd be easy enough to add a class to extend that.

On second thoughts, can you not use the CSS pseudo class :fullscreen too? The only downer is it's prefixed of course...

.plyr:fullscreen, 
.plyr:-webkit-full-screen,
.plyr:-moz-full-screen,
.plyr:-ms-fullscreen {
    // Your styles...
}

Bear in mind you may need to specify them as seperate declarations as some browsers get funny about combined selectors for pseudo classes.

I would also be interested in this feature

See my comment above ^

Closing this. Please use the CSS selector above.

Sorry, I was away for a while and missed this thread. Solved a task in a different way, but next time will try this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Generalomosco picture Generalomosco  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments

sparkktv picture sparkktv  路  4Comments

MTyson picture MTyson  路  3Comments

frumbert picture frumbert  路  3Comments