From 561c3b783788cc83b1293335ea28ebb8de25616e Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 9 Oct 2012 02:56:39 +0000 Subject: [PATCH] Improve media modal title bar styling. props helenyhou, see #21390. git-svn-id: https://develop.svn.wordpress.org/trunk@22144 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/css/media-views.css | 29 +++++++++++++++++++++-------- wp-includes/media.php | 2 +- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/wp-includes/css/media-views.css b/wp-includes/css/media-views.css index 6deb477989..a04a316045 100644 --- a/wp-includes/css/media-views.css +++ b/wp-includes/css/media-views.css @@ -3,11 +3,10 @@ */ .media-modal { position: fixed; - top: 60px; + top: 40px; left: 60px; right: 60px; bottom: 60px; - background: #fff; z-index: 125000; } @@ -28,29 +27,43 @@ left: 0; right: 0; height: 28px; - background: #f1f1f1; } .media-modal-header h3 { float: left; - padding: 0 0 0 10px; + padding: 0; margin: 0; - line-height: 28px; + font-size: 1.4em; +} + +.media-modal-header h3, +.media-modal-close { + line-height: 40px; + color: #fff; + font-weight: 200; + text-shadow: 0 0 16px rgba( 0, 0, 0, 0.6 ); } .media-modal-close { float: right; - padding-right: 10px; - line-height: 28px; + text-decoration: none; + font-size: 1.8em; +} + +.media-modal-close:hover, +.media-modal-close:focus { + color: #fff; + text-shadow: 0 0 16px rgba( 255, 255, 255, 0.8 ); } .media-modal-content { position: absolute; - top: 28px; + top: 40px; left: 0; right: 0; bottom: 0; overflow: auto; + background: #fff; } /** diff --git a/wp-includes/media.php b/wp-includes/media.php index 5ff9ee9083..08ebf729ed 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1298,7 +1298,7 @@ function wp_print_media_templates( $attachment ) {

<%- title %>

- + ×