WordPress.org

Make WordPress Core

Changeset 23061


Ignore:
Timestamp:
12/05/2012 03:15:53 AM (5 years ago)
Author:
nacin
Message:

Media IE7 fixes. props azaozz, lessbloat. fixes #22732.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/media-views.css

    r23052 r23061  
    243243.media-sidebar .setting select {
    244244    max-width: 65%;
    245     *max-width: 55%; /* IE7 */
    246245}
    247246
     
    268267.media-sidebar .setting textarea {
    269268    width: 65%;
    270     *width: 55%; /* IE7 */
    271269    float: right;
    272270}
     
    813811    display: block;
    814812    width: 100%;
    815     *width: 183px; /* IE7 only */
    816813    margin: -1px 0 0;
    817814    padding: 8px;
     
    14491446
    14501447/**
     1448 * IE7 Fixes
     1449 */
     1450.ie7 .media-frame .attachments-browser {
     1451    position: static;
     1452}
     1453
     1454.ie7 .media-frame .embed-url input {
     1455    margin-top: 4px;
     1456    width: 90%;
     1457}
     1458
     1459.ie7 .compat-item {
     1460    width: 99%;
     1461}
     1462
     1463.ie7 .attachment-display-settings {
     1464    width: auto;
     1465}
     1466
     1467.ie7 .attachment-preview,
     1468.ie7 .attachment-preview .thumbnail {
     1469    width: 120px;
     1470    height: 120px;
     1471}
     1472
     1473.ie7 .media-frame .attachment .describe {
     1474    width: 102px;
     1475}
     1476
     1477.ie7 .media-sidebar .setting select {
     1478    max-width: 55%;
     1479}
     1480
     1481.ie7 .media-sidebar .setting input,
     1482.ie7 .media-sidebar .setting textarea {
     1483    width: 55%;
     1484}
     1485
     1486.ie7 .media-sidebar .setting .link-to-custom {
     1487    float: left;
     1488}
     1489
     1490/**
    14511491 * Responsive layout
    14521492 */
  • trunk/wp-includes/media.php

    r23038 r23061  
    15201520 */
    15211521function wp_print_media_templates() {
     1522    global $is_IE;
     1523    $class = 'media-modal wp-core-ui';
     1524    if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false )
     1525        $class .= ' ie7';
    15221526    ?>
    15231527    <script type="text/html" id="tmpl-media-frame">
     
    15311535
    15321536    <script type="text/html" id="tmpl-media-modal">
    1533         <div class="media-modal wp-core-ui">
     1537        <div class="<?php echo $class; ?>">
    15341538            <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
    15351539            <div class="media-modal-content"></div>
Note: See TracChangeset for help on using the changeset viewer.