From dd76aeea5be25d14c4534a42d69a73fd02989318 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 24 Jul 2014 21:17:32 +0000 Subject: [PATCH] Media Grid: remove pencil icon from attachment hover and a bunch of unused CSS. Fixes #28945. git-svn-id: https://develop.svn.wordpress.org/trunk@29288 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/media-views.css | 88 ----------------------------- src/wp-includes/media-template.php | 5 -- 2 files changed, 93 deletions(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index adbb794cf3..f484e17ae2 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -1038,90 +1038,6 @@ font-weight: 300; } -.inline-toolbar { - position: absolute; - top: 0; - left: 0; - display: none; - z-index: 100; -} - -.inline-toolbar .remove { - display: none; -} - -.active-video .inline-toolbar .remove { - display: inline-block; -} - -.attachment-preview:hover + .inline-toolbar, -.inline-toolbar:hover { - display: block; -} - -.inline-toolbar div, -.inline-toolbar .inline-media-control { - display: inline-block; - margin-top: 4px; - margin-left: 4px; - padding: 2px; - width: 20px; - height: 20px; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); - box-shadow: 0 1px 3px rgba(0,0,0,0.5); - background-color: #000; - background-color: rgba(0,0,0,0.9); - cursor: pointer; - color: white; - font-size: 20px; -} - -.ie8 .inline-toolbar div, -.ie7 .inline-toolbar div { - display: inline; - padding: 0; -} - -.inline-media-control span { - display: block; - width: 16px; - height: 16px; - margin: 2px; - background: url(/wp-includes/js/mediaelement/controls.png) 0 0 no-repeat; -} - -.inline-media-control.active span { - margin: 2px; - background-position: 0 -16px; -} - -.inline-media-control.paused span { - margin: 2px; - background-position: 0 0; -} - -audio#inline-media-node { - display: none; -} - -video#inline-media-node { - position: relative; - z-index: 5; - top: 0; - left: 0; -} - -.inline-video-wrap { - width: 100%; - height: auto; - position: absolute; - z-index: 5; - background: #000; - padding: 10px 0 5px; - top: 0; - left: 0; -} - .attachments-browser.hide-sidebar .attachments, .attachments-browser.hide-sidebar .uploader-inline { right: 0; @@ -2735,10 +2651,6 @@ video#inline-media-node { font-weight: 300; } -.media-frame.mode-bulk-edit .attachment-preview:hover ~ .inline-toolbar { - display: none; -} - .edit-attachment-frame .edit-media-header .left:before, .rtl .edit-attachment-frame .edit-media-header .right:before { content: '\f340'; diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 929e3d2fe3..f3b55261d0 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -419,11 +419,6 @@ function wp_print_media_templates() { <# } #> - <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #> -
-
-
- <# } #> <# if ( data.buttons.check ) { #>
<# } #>