-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plyr: Improve controls css - better contrast and less intrusive
Decrease height of controls background, so that it does not interfere with clicking on the video. Make controls background more clearly dilineated - same reason. Make the buffered region on the progress bar brighter so that it can be distinguished from the lightness of the video sidebars (in gray theme)
- Loading branch information
1 parent
b75dc03
commit df3e4be
Showing
3 changed files
with
32 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
body{ | ||
--plyr-video-controls-background: rgba(0,0,0,0.8); | ||
} | ||
|
||
/* make buffered progress more visible */ | ||
.plyr--video .plyr__progress__buffer{ | ||
color: rgba(255,255,255,0.75) !important; | ||
} | ||
|
||
/* Avoid visual jumps and flashes as plyr loads */ | ||
.plyr audio, .plyr iframe, .plyr video{ | ||
width: 100% !important; | ||
height: 100% !important; | ||
} | ||
.plyr__video-wrapper{ | ||
height: 100% !important; | ||
width: 100% !important; | ||
} | ||
|
||
/* Prevent this div from blocking right-click menu for video | ||
e.g. Firefox playback speed options */ | ||
.plyr__poster{ | ||
display: none !important; | ||
} | ||
|
||
/* Get rid of obnoxiously high padding on controls bar */ | ||
.plyr__controls{ | ||
padding-top: 4px !important; | ||
padding-bottom: 4px !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters