Changeset 22154
- Timestamp:
- 10/10/2012 06:47:22 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/editor-style.css
r20906 r22154 255 255 margin-top: 0.4em; 256 256 } 257 img { 257 img, 258 .editor-attachment { 258 259 border: 1px solid #ddd; 259 260 padding: 6px; -
trunk/wp-content/themes/twentytwelve/editor-style.css
r21617 r22154 290 290 -------------------------------------------------------------- */ 291 291 292 img { 292 img, 293 .editor-attachment { 293 294 border: 0; 294 295 border-radius: 3px; -
trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css
r22120 r22154 143 143 144 144 /* WordPress TinyMCE Previews */ 145 div.wp-view-wrap, 146 div.wp-view { 145 .wp-view-wrap { 147 146 position: relative; 148 147 display: inline-block; 149 148 } 150 149 151 div.wp-view-wrap img { 150 .wp-view-wrap * { 151 font-family: sans-serif; 152 font-weight: normal; 153 } 154 155 .wp-view-wrap img { 152 156 display: block; 153 157 border: 0; 154 158 padding: 0; 155 159 margin: 0; 156 } 157 158 .spinner { 159 background: #fff url("../../../../../../../wp-admin/images/wpspin_light.gif") no-repeat center center; 160 } 161 162 .close { 163 display: none;160 border-radius: 0; 161 box-shadow: none; 162 } 163 164 .wp-view-wrap .overlay { 165 opacity: 0; 166 display: block; 167 content: ''; 164 168 position: absolute; 165 169 top: 0; 170 left: 0; 166 171 right: 0; 167 height: 26px; 168 width: 26px; 169 font-size: 26px; 172 bottom: 0; 173 box-shadow: inset 0 0 45px rgba( 0, 0, 0, 0.3 ); 174 /*box-shadow: 175 inset 0 60px 30px -30px rgba( 0, 0, 0, 0.2 ), 176 inset 0 -60px 30px -30px rgba( 0, 0, 0, 0.2 );*/ 177 overflow: hidden; 178 179 -webkit-transition: opacity 100ms ease-in-out; 180 -moz-transition: opacity 100ms ease-in-out; 181 -ms-transition: opacity 100ms ease-in-out; 182 -o-transition: opacity 100ms ease-in-out; 183 transition: opacity 100ms ease-in-out; 184 } 185 186 .wp-view-wrap:hover .overlay { 187 opacity: 1; 188 } 189 190 .wp-view-wrap .spinner { 191 background: #fff url("../../../../../../../wp-admin/images/wpspin_light.gif") no-repeat center center; 192 } 193 194 .wp-view-wrap .button { 195 position: absolute; 196 height: 22px; 170 197 line-height: 22px; 198 font-size: 14px; 171 199 text-align: center; 172 200 cursor: pointer; 173 201 color: #464646; 202 203 background: #f3f3f3; 204 background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4)); 205 background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4); 206 background-image: -moz-linear-gradient(top, #fefefe, #f4f4f4); 207 background-image: -ms-linear-gradient(top, #fefefe, #f4f4f4); 208 background-image: -o-linear-gradient(top, #fefefe, #f4f4f4); 209 background-image: linear-gradient(to bottom, #fefefe, #f4f4f4); 210 211 box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.2 ); 212 border-radius: 2px; 213 } 214 215 .wp-view-wrap .button:hover { 216 box-shadow: 217 0 0 0 1px rgba( 0, 0, 0, 0.6 ), 218 0 0 10px rgba( 255, 255, 255, 0.4 ); 174 219 background: #fff; 220 background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3)); 221 background-image: -webkit-linear-gradient(top, #fff, #f3f3f3); 222 background-image: -moz-linear-gradient(top, #fff, #f3f3f3); 223 background-image: -ms-linear-gradient(top, #fff, #f3f3f3); 224 background-image: -o-linear-gradient(top, #fff, #f3f3f3); 225 background-image: linear-gradient(to bottom, #fff, #f3f3f3); 226 color: #333; 227 } 228 229 .wp-view-wrap .close, 230 .wp-view-wrap .edit { 231 display: none; 232 } 233 234 .wp-view-wrap .close { 235 top: 5px; 236 right: 5px; 237 width: 22px; 238 font-size: 22px; 239 line-height: 20px; 240 } 241 242 .wp-view-wrap .edit { 243 bottom: 5px; 244 right: 5px; 245 padding: 0 10px; 175 246 } 176 247 177 248 .editor-attachment:hover .close, 178 .editor-gallery:hover .close { 249 .editor-gallery:hover .close, 250 .editor-gallery:hover .edit { 179 251 display: block; 180 252 } … … 184 256 margin-top: 10px; 185 257 margin-right: 10px; 186 padding: 4px; 187 border: 1px solid #dfdfdf; 258 overflow: hidden; 188 259 } 189 260 … … 194 265 } 195 266 267 .editor-attachment img, 268 .editor-attachment .overlay { 269 border-radius: inherit; 270 } 271 272 .editor-attachment-preview { 273 position: relative; 274 } 275 196 276 .editor-gallery { 277 position: relative; 197 278 min-height: 150px; 198 279 min-width: 150px; 199 margin: 1px; 200 border: 4px solid #fff; 280 margin: 5px 15px 15px 5px; 201 281 box-shadow: 202 0 0 0 1px #ccc, 203 5px 5px 0 0 #fff, 204 5px 5px 0 1px #ccc, 205 10px 10px 0 0 #fff, 206 10px 10px 0 1px #ccc; 207 } 208 .editor-gallery .close { 209 top: 1px; 210 right: 1px; 211 } 282 0 0 0 4px #fff, 283 0 0 0 5px #ccc, 284 5px 5px 0 4px #fff, 285 5px 5px 0 5px #ccc, 286 10px 10px 0 4px #fff, 287 10px 10px 0 5px #ccc; 288 } -
trunk/wp-includes/media.php
r22144 r22154 1363 1363 1364 1364 <script type="text/html" id="tmpl-editor-attachment"> 1365 <% if ( url ) { %> 1366 <img src="<%- url %>" width="<%- width %>" height="<%- height %>" draggable="false" /> 1367 <% } %> 1368 1369 <% if ( uploading ) { %> 1370 <div class="media-progress-bar"><div></div></div> 1371 <% } %> 1372 <div class="close">×</div> 1365 <div class="editor-attachment-preview"> 1366 <% if ( url ) { %> 1367 <img src="<%- url %>" width="<%- width %>" height="<%- height %>" draggable="false" /> 1368 <% } %> 1369 1370 <% if ( uploading ) { %> 1371 <div class="media-progress-bar"><div></div></div> 1372 <% } %> 1373 <div class="overlay"> 1374 <div class="button close">×</div> 1375 </div> 1376 </div> 1373 1377 <div class="describe"></div> 1374 1378 </script> … … 1378 1382 <img src="<%- url %>" draggable="false" /> 1379 1383 <% } %> 1380 <div class="close">×</div> 1384 1385 <div class="overlay"> 1386 <div class="button close">×</div> 1387 <div class="button edit"><?php _e('Edit'); ?></div> 1388 </div> 1381 1389 </script> 1382 1390 <?php
Note: See TracChangeset
for help on using the changeset viewer.