Set audio player to width: 100% and avoid breaking the layout in iOS when we fall back to a link.

props markjaquith, davidjlaietta.
fixes #24896.



git-svn-id: http://core.svn.wordpress.org/trunk@24948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-01 14:48:39 +00:00
parent f66e1e4a69
commit 6861353737
2 changed files with 6 additions and 1 deletions

View File

@ -8,4 +8,8 @@
.mejs-controls .mejs-time-rail .mejs-time-current {
background: #d54e21;
}
}
.me-cannotplay {
width: auto !important;
}

View File

@ -910,6 +910,7 @@ function wp_audio_shortcode( $attr ) {
'loop' => $loop,
'autoplay' => $autoplay,
'preload' => $preload,
'style' => 'width: 100%',
);
// These ones should just be omitted altogether if they are blank