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: https://develop.svn.wordpress.org/trunk@24948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-08-01 14:48:39 +00:00
parent 86708be8a6
commit ada99c68f8
2 changed files with 6 additions and 1 deletions

View File

@ -9,3 +9,7 @@
.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