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

See [28842], #15860.



git-svn-id: https://develop.svn.wordpress.org/trunk@28843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-06-26 01:57:37 +00:00
parent f92d73310a
commit cf15c523d3
2 changed files with 6 additions and 2 deletions

View File

@ -1653,11 +1653,14 @@ td.media-icon {
}
td.media-icon img {
border: 1px solid rgba(0, 0, 0, 0.07);
max-width: 80px;
max-height: 60px;
}
td.image-icon img {
border: 1px solid rgba(0, 0, 0, 0.07);
}
#howto {
font-size: 11px;
margin: 0 5px;

View File

@ -279,7 +279,8 @@ foreach ( $columns as $column_name => $column_display_name ) {
break;
case 'icon':
$attributes = 'class="column-icon media-icon"' . $style;
list( $mime ) = explode( '/', $post->post_mime_type );
$attributes = 'class="column-icon media-icon ' . $mime . '-icon"' . $style;
?>
<td <?php echo $attributes ?>><?php
if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {