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

See [28842], #15860.


Built from https://develop.svn.wordpress.org/trunk@28843


git-svn-id: http://core.svn.wordpress.org/trunk@28647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-06-26 01:58:16 +00:00
parent ec4934d66e
commit 9739b9b74d
5 changed files with 12 additions and 5 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

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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 ) ) {