Make WordPress Core

Changeset 28843


Ignore:
Timestamp:
06/26/2014 01:57:37 AM (12 years ago)
Author:
wonderboymusic
Message:

Only apply a subtle semi-transparent border to attachments that are images in the media list table.

See [28842], #15860.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r28842 r28843  
    16541654
    16551655td.media-icon img {
    1656     border: 1px solid rgba(0, 0, 0, 0.07);
    16571656    max-width: 80px;
    16581657    max-height: 60px;
     1658}
     1659
     1660td.image-icon img {
     1661    border: 1px solid rgba(0, 0, 0, 0.07);
    16591662}
    16601663
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r28682 r28843  
    280280
    281281    case 'icon':
    282         $attributes = 'class="column-icon media-icon"' . $style;
     282        list( $mime ) = explode( '/', $post->post_mime_type );
     283        $attributes = 'class="column-icon media-icon ' . $mime . '-icon"' . $style;
    283284?>
    284285        <td <?php echo $attributes ?>><?php
Note: See TracChangeset for help on using the changeset viewer.