-
-
Save visualkom/b20e534a35245ffaf5cc to your computer and use it in GitHub Desktop.
[CSS code to make the WordPress VideoJS plugin responsive] #css #wp
This file contains hidden or 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
.videoWrapper { | |
position: relative; | |
padding-bottom: 56.25%; /* video dimensions - height/width */ | |
padding-top: 30px; | |
height: 0; | |
z-index: 1000; | |
} | |
video { | |
position: absolute !important; | |
top: 0; | |
left: 0; | |
width: 100% !important; | |
height: 100% !important; | |
z-index: 1; | |
} | |
video.video-js { | |
z-index: 1000; | |
} | |
.video-js .vjs-controls { | |
z-index: 1002; | |
} | |
.video-js .vjs-big-play-button { | |
z-index: 1002; | |
} | |
.videoWrapper .video-js { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100% !important; | |
height: 100% !important; | |
z-index: 1; | |
background: #000; | |
} | |
.videoWrapper object, .videoWrapper embed { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100% !important; | |
z-index: 1; | |
} | |
.vjs-spinner { | |
display: none !important; | |
} | |
.video-js img.vjs-poster { | |
height: 100% !important; | |
width: 100% !important; | |
z-index: 1; | |
max-width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment