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:
parent
f92d73310a
commit
cf15c523d3
@ -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;
|
||||
|
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user