Multimedia uploader styling from andy. see #5824

git-svn-id: http://svn.automattic.com/wordpress/trunk@6795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-12 04:47:31 +00:00
parent 94915febc5
commit 9528af34a0
2 changed files with 13 additions and 7 deletions

View File

@ -139,14 +139,15 @@ span.filename {
border-right: 3px solid #99d; border-right: 3px solid #99d;
} }
.multimedia-item .thumbnail { .multimedia-item .thumbnail {
max-width: 128px;
max-height: 128px;
} }
.multimedia-item .pinkynail { .multimedia-item .pinkynail {
position: absolute; position: absolute;
top: 3px; top: 2px;
left: 3px; left: 2px;
height: 32px;
max-width: 40px; max-width: 40px;
max-height: 40px;
} }
.describe { .describe {
display: none; display: none;
@ -166,9 +167,12 @@ span.filename {
.describe label { .describe label {
padding-right: 1em; padding-right: 1em;
} }
p.delete {
a.delete {
clear: both; clear: both;
margin: 0;
}
p.delete a {
padding: 4px;
} }
.describe-toggle-on, .describe-toggle-off { .describe-toggle-on, .describe-toggle-off {
line-height: 36px; line-height: 36px;

View File

@ -444,6 +444,8 @@ function get_multimedia_item( $attachment_id ) {
$thumb_url = wp_get_attachment_thumb_url( $attachment_id ); $thumb_url = wp_get_attachment_thumb_url( $attachment_id );
if ( empty($thumb_url) ) if ( empty($thumb_url) )
$thumb_url = wp_mime_type_icon( $attachment_id ); $thumb_url = wp_mime_type_icon( $attachment_id );
if ( empty($thumb_url) && ( $post =& get_post( $attachment_id ) ) && substr($post->post_mime_type, 0, 5) == 'image' )
$thumb_url = wp_get_attachment_url( $attachment_id );
$title_label = __('Title'); $title_label = __('Title');
$description_label = __('Description'); $description_label = __('Description');
@ -493,7 +495,7 @@ function get_multimedia_item( $attachment_id ) {
$item .= " $item .= "
</fieldset> </fieldset>
<p><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p> <p class='delete'><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>
</div> </div>
"; ";