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
This commit is contained in:
parent
1b01b92dc6
commit
dd76aeea5b
@ -1038,90 +1038,6 @@
|
|||||||
font-weight: 300;
|
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 .attachments,
|
||||||
.attachments-browser.hide-sidebar .uploader-inline {
|
.attachments-browser.hide-sidebar .uploader-inline {
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -2735,10 +2651,6 @@ video#inline-media-node {
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-frame.mode-bulk-edit .attachment-preview:hover ~ .inline-toolbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.edit-attachment-frame .edit-media-header .left:before,
|
.edit-attachment-frame .edit-media-header .left:before,
|
||||||
.rtl .edit-attachment-frame .edit-media-header .right:before {
|
.rtl .edit-attachment-frame .edit-media-header .right:before {
|
||||||
content: '\f340';
|
content: '\f340';
|
||||||
|
@ -419,11 +419,6 @@ function wp_print_media_templates() {
|
|||||||
<a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
|
<a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
</div>
|
||||||
<# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
|
|
||||||
<div class="inline-toolbar js--select-attachment">
|
|
||||||
<div class="dashicons dashicons-edit edit edit-media"></div>
|
|
||||||
</div>
|
|
||||||
<# } #>
|
|
||||||
<# if ( data.buttons.check ) { #>
|
<# if ( data.buttons.check ) { #>
|
||||||
<a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
|
<a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
|
||||||
<# } #>
|
<# } #>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user