Make WordPress Core

Changeset 29288


Ignore:
Timestamp:
07/24/2014 09:17:32 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: remove pencil icon from attachment hover and a bunch of unused CSS.

Fixes #28945.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r29287 r29288  
    10371037    content: '\f335';
    10381038    font-weight: 300;
    1039 }
    1040 
    1041 .inline-toolbar {
    1042     position: absolute;
    1043     top: 0;
    1044     left: 0;
    1045     display: none;
    1046     z-index: 100;
    1047 }
    1048 
    1049 .inline-toolbar .remove {
    1050     display: none;
    1051 }
    1052 
    1053 .active-video .inline-toolbar .remove {
    1054     display: inline-block;
    1055 }
    1056 
    1057 .attachment-preview:hover + .inline-toolbar,
    1058 .inline-toolbar:hover {
    1059     display: block;
    1060 }
    1061 
    1062 .inline-toolbar div,
    1063 .inline-toolbar .inline-media-control {
    1064     display: inline-block;
    1065     margin-top: 4px;
    1066     margin-left: 4px;
    1067     padding: 2px;
    1068     width: 20px;
    1069     height: 20px;
    1070     -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    1071     box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    1072     background-color: #000;
    1073     background-color: rgba(0,0,0,0.9);
    1074     cursor: pointer;
    1075     color: white;
    1076     font-size: 20px;
    1077 }
    1078 
    1079 .ie8 .inline-toolbar div,
    1080 .ie7 .inline-toolbar div {
    1081     display: inline;
    1082     padding: 0;
    1083 }
    1084 
    1085 .inline-media-control span {
    1086     display: block;
    1087     width: 16px;
    1088     height: 16px;
    1089     margin: 2px;
    1090     background: url(/wp-includes/js/mediaelement/controls.png) 0 0 no-repeat;
    1091 }
    1092 
    1093 .inline-media-control.active span {
    1094     margin: 2px;
    1095     background-position: 0 -16px;
    1096 }
    1097 
    1098 .inline-media-control.paused span {
    1099     margin: 2px;
    1100     background-position: 0 0;
    1101 }
    1102 
    1103 audio#inline-media-node {
    1104     display: none;
    1105 }
    1106 
    1107 video#inline-media-node {
    1108     position: relative;
    1109     z-index: 5;
    1110     top: 0;
    1111     left: 0;
    1112 }
    1113 
    1114 .inline-video-wrap {
    1115     width: 100%;
    1116     height: auto;
    1117     position: absolute;
    1118     z-index: 5;
    1119     background: #000;
    1120     padding: 10px 0 5px;
    1121     top: 0;
    1122     left: 0;
    11231039}
    11241040
     
    27362652}
    27372653
    2738 .media-frame.mode-bulk-edit .attachment-preview:hover ~ .inline-toolbar {
    2739     display: none;
    2740 }
    2741 
    27422654.edit-attachment-frame .edit-media-header .left:before,
    27432655.rtl .edit-attachment-frame .edit-media-header .right:before {
  • trunk/src/wp-includes/media-template.php

    r29283 r29288  
    420420            <# } #>
    421421        </div>
    422         <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
    423         <div class="inline-toolbar js--select-attachment">
    424             <div class="dashicons dashicons-edit edit edit-media"></div>
    425         </div>
    426         <# } #>
    427422        <# if ( data.buttons.check ) { #>
    428423            <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
Note: See TracChangeset for help on using the changeset viewer.