From a5fc058f890a8b7d5d2722da900b3e131594f96f Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Thu, 11 Oct 2012 04:11:47 +0000 Subject: [PATCH] Media Modal: Improve attachment remove button styles. see #21390. git-svn-id: https://develop.svn.wordpress.org/trunk@22184 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/css/media-views.css | 17 ++++++++++++----- wp-includes/media.php | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/wp-includes/css/media-views.css b/wp-includes/css/media-views.css index 3669faeb79..ee467f4cc7 100644 --- a/wp-includes/css/media-views.css +++ b/wp-includes/css/media-views.css @@ -374,16 +374,23 @@ .attachment .close { display: none; position: absolute; - top: 0; - right: 0; - height: 26px; - width: 26px; + top: 5px; + right: 5px; + height: 22px; + width: 22px; + padding: 0; font-size: 20px; - line-height: 24px; + line-height: 20px; text-align: center; text-decoration: none; color: #464646; background: #fff; + border-width: 0; + box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); +} + +.attachment .close:hover { + box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.6 ); } .attachment:hover .close { diff --git a/wp-includes/media.php b/wp-includes/media.php index 40c5e1a27f..992df2bc9a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1342,7 +1342,7 @@ function wp_print_media_templates( $attachment ) { <% } %> <% if ( buttons.close ) { %> - × + × <% } %> <% if ( describe ) { %>