Skip to content

Commit

Permalink
Fix local video sizing in recent WP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoereth committed Sep 7, 2015
1 parent fece819 commit 1756a7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion styles/frontend.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
.wp-video {
width: auto !important;
height: auto !important;

video {
width: 100% !important;
height: auto !important;
}
}

// Backcompat-Code
.mejs-container {
width: 100% !important;
height: auto !important;
padding-top: 57%;
}

.mejs-overlay, .mejs-poster {
width: 100% !important;
height: 100% !important;
Expand All @@ -26,6 +31,7 @@
width: 100% !important;
height: 100% !important;
}
// End Backcompat-Code.

audio {
width: 100%;
Expand Down

0 comments on commit 1756a7a

Please sign in to comment.