diff --git a/wp-includes/css/media-views.css b/wp-includes/css/media-views.css index 0320762c4e..54b0f0a261 100644 --- a/wp-includes/css/media-views.css +++ b/wp-includes/css/media-views.css @@ -242,7 +242,6 @@ .media-sidebar .setting select { max-width: 65%; - *max-width: 55%; /* IE7 */ } .media-sidebar .setting input[type="checkbox"] { @@ -267,7 +266,6 @@ .media-sidebar .setting input, .media-sidebar .setting textarea { width: 65%; - *width: 55%; /* IE7 */ float: right; } @@ -812,7 +810,6 @@ position: relative; display: block; width: 100%; - *width: 183px; /* IE7 only */ margin: -1px 0 0; padding: 8px; font-size: 12px; @@ -1447,6 +1444,49 @@ margin: 1px 0; } +/** + * IE7 Fixes + */ +.ie7 .media-frame .attachments-browser { + position: static; +} + +.ie7 .media-frame .embed-url input { + margin-top: 4px; + width: 90%; +} + +.ie7 .compat-item { + width: 99%; +} + +.ie7 .attachment-display-settings { + width: auto; +} + +.ie7 .attachment-preview, +.ie7 .attachment-preview .thumbnail { + width: 120px; + height: 120px; +} + +.ie7 .media-frame .attachment .describe { + width: 102px; +} + +.ie7 .media-sidebar .setting select { + max-width: 55%; +} + +.ie7 .media-sidebar .setting input, +.ie7 .media-sidebar .setting textarea { + width: 55%; +} + +.ie7 .media-sidebar .setting .link-to-custom { + float: left; +} + /** * Responsive layout */ diff --git a/wp-includes/media.php b/wp-includes/media.php index cebdae7d6e..17ed7533d3 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1519,6 +1519,10 @@ function wp_enqueue_media( $args = array() ) { * @since 3.5.0 */ function wp_print_media_templates() { + global $is_IE; + $class = 'media-modal wp-core-ui'; + if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false ) + $class .= ' ie7'; ?>