From 17271702caf9f3bc6f4aa64890aa6060ee90e496 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 2 Jun 2014 00:40:15 +0000 Subject: [PATCH] In the spirit of [27622], add a few CSS rules to ensure that videos will be responsive, regardless of theme. Props Funkatronic. Fixes #28414. Built from https://develop.svn.wordpress.org/trunk@28650 git-svn-id: http://core.svn.wordpress.org/trunk@28468 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/mediaelement/wp-mediaelement.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/js/mediaelement/wp-mediaelement.css b/wp-includes/js/mediaelement/wp-mediaelement.css index 18a99936c9..aff6853a72 100644 --- a/wp-includes/js/mediaelement/wp-mediaelement.css +++ b/wp-includes/js/mediaelement/wp-mediaelement.css @@ -88,6 +88,12 @@ margin: 0 0 10px; } +video.wp-video-shortcode, +.wp-video-shortcode video { + max-width: 100%; + display: inline-block; +} + .video-details .wp-video-holder { width: 100%; max-width: 640px;