diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css
index ecac256..6189b22 100644
a
|
b
|
|
27 | 27 | |
28 | 28 | .media-frame a { |
29 | 29 | border-bottom: none; |
| 30 | text-decoration: none; |
30 | 31 | color: #21759b; |
31 | 32 | } |
32 | 33 | |
33 | | .media-frame a:hover { |
34 | | color: #d54e21; |
35 | | } |
36 | | |
37 | 34 | .media-frame a.button { |
38 | 35 | color: #333; |
39 | 36 | } |
… |
… |
|
140 | 137 | |
141 | 138 | .media-modal-close { |
142 | 139 | position: absolute; |
143 | | text-decoration: none; |
144 | 140 | top: 0; |
145 | 141 | right: 0; |
146 | 142 | width: 50px; |
… |
… |
|
445 | 441 | line-height: 18px; |
446 | 442 | font-size: 14px; |
447 | 443 | color: #0074a2; |
448 | | text-decoration: none; |
449 | 444 | } |
450 | 445 | |
451 | 446 | .media-menu > a:hover { |
… |
… |
|
497 | 492 | height: 18px; |
498 | 493 | line-height: 18px; |
499 | 494 | font-size: 14px; |
500 | | text-decoration: none; |
501 | 495 | } |
502 | 496 | |
503 | 497 | .media-router > a:last-child { |
… |
… |
|
848 | 842 | font-size: 20px; |
849 | 843 | line-height: 20px; |
850 | 844 | text-align: center; |
851 | | text-decoration: none; |
852 | 845 | color: #464646; |
853 | 846 | background-color: #fff; |
854 | 847 | background-position: -96px 4px; |
… |
… |
|
1120 | 1113 | display: block; |
1121 | 1114 | } |
1122 | 1115 | |
1123 | | .media-uploader-status .upload-dismiss-errors { |
1124 | | text-decoration: none; |
1125 | | } |
1126 | | |
1127 | 1116 | .media-sidebar .media-uploader-status .upload-dismiss-errors { |
1128 | 1117 | position: absolute; |
1129 | 1118 | top: 0; |
… |
… |
|
1321 | 1310 | padding: 1px 8px; |
1322 | 1311 | margin: 1px 8px 1px -8px; |
1323 | 1312 | line-height: 16px; |
1324 | | text-decoration: none; |
1325 | 1313 | border-right: 1px solid #dfdfdf; |
1326 | 1314 | color: #21759B; |
1327 | 1315 | } |
… |
… |
|
1364 | 1352 | padding: 0; |
1365 | 1353 | margin: 0; |
1366 | 1354 | -webkit-box-shadow: none; |
1367 | | box-shadow: none; |
| 1355 | box-shadow: none; |
1368 | 1356 | } |
1369 | 1357 | |
1370 | 1358 | .media-selection .attachment .thumbnail { |
… |
… |
|
1574 | 1562 | |
1575 | 1563 | .attachment-info .advanced-toggle { |
1576 | 1564 | color: #666; |
1577 | | text-decoration: none; |
1578 | 1565 | display: block; |
1579 | 1566 | } |
1580 | 1567 | .attachment-info .advanced-toggle:hover { |
… |
… |
|
1600 | 1587 | .attachment-info .delete-attachment, |
1601 | 1588 | .attachment-info .trash-attachment { |
1602 | 1589 | display: block; |
1603 | | text-decoration: none; |
1604 | 1590 | white-space: nowrap; |
1605 | 1591 | } |
1606 | | |
| 1592 | .edit-attachment-frame .attachment-info .delete-attachment { |
| 1593 | display: inline; |
| 1594 | } |
1607 | 1595 | .attachment-info .refresh-attachment, |
1608 | 1596 | .attachment-details.needs-refresh .attachment-info .edit-attachment { |
1609 | 1597 | display: none; |
… |
… |
|
1844 | 1832 | |
1845 | 1833 | .image-details .advanced-toggle { |
1846 | 1834 | color: #666; |
1847 | | text-decoration: none; |
1848 | 1835 | display: block; |
1849 | 1836 | } |
1850 | 1837 | |
… |
… |
|
1998 | 1985 | left: 440px; |
1999 | 1986 | } |
2000 | 1987 | |
2001 | | .advanced-section, |
2002 | | .link-settings { |
2003 | | margin-top: 10px; |
2004 | | } |
2005 | | |
2006 | 1988 | /* Drag & drop on the editor upload */ |
2007 | 1989 | #wp-fullscreen-body .uploader-editor, |
2008 | 1990 | .wp-editor-wrap .uploader-editor { |
… |
… |
|
2754 | 2736 | } |
2755 | 2737 | .edit-attachment-frame .attachment-media-view { |
2756 | 2738 | float: left; |
| 2739 | position: relative; |
2757 | 2740 | width: 65%; |
2758 | 2741 | height: 100%; |
2759 | 2742 | } |
… |
… |
|
2774 | 2757 | max-height: calc( 100% - 42px ); /* leave space for actions underneath */ |
2775 | 2758 | } |
2776 | 2759 | |
2777 | | .edit-attachment-frame .delete-attachment { |
2778 | | float: right; |
2779 | | margin-top: 7px; |
2780 | | } |
2781 | | |
2782 | 2760 | .edit-attachment-frame .wp-media-wrapper { |
2783 | 2761 | margin-bottom: 12px; |
2784 | 2762 | } |
… |
… |
|
2799 | 2777 | background: #f3f3f3; |
2800 | 2778 | } |
2801 | 2779 | |
| 2780 | .edit-attachment-frame .attachment-media-view .attachment-actions { |
| 2781 | position: absolute; |
| 2782 | bottom: 0; |
| 2783 | left: 0; |
| 2784 | right: 0; |
| 2785 | padding: 12px 16px; |
| 2786 | } |
| 2787 | .edit-attachment-frame .attachment-info .attachment-actions { |
| 2788 | visibility: visible; |
| 2789 | } |
| 2790 | |
2802 | 2791 | .edit-attachment-frame input, |
2803 | 2792 | .edit-attachment-frame textarea { |
2804 | 2793 | padding: 6px 8px; |
2805 | 2794 | line-height: 16px; |
2806 | 2795 | } |
2807 | 2796 | |
2808 | | .edit-attachment-frame .attachment-info .details, |
2809 | | .edit-attachment-frame .attachment-info .settings { |
| 2797 | .edit-attachment-frame .attachment-info-section { |
2810 | 2798 | overflow: hidden; |
2811 | 2799 | float: none; |
2812 | 2800 | position: relative; |
… |
… |
|
2815 | 2803 | border-bottom: 1px solid #ddd; |
2816 | 2804 | } |
2817 | 2805 | |
| 2806 | .edit-attachment-frame .attachment-info-section:last-child { |
| 2807 | margin-bottom: 0; |
| 2808 | border-bottom: none; |
| 2809 | } |
| 2810 | |
2818 | 2811 | .edit-attachment-frame .attachment-info .setting { |
2819 | 2812 | display: block; |
2820 | 2813 | float: left; |
diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
index 0c912fb..f7acbfd 100644
a
|
b
|
|
349 | 349 | */ |
350 | 350 | media.view.MediaFrame.EditAttachments = media.view.MediaFrame.extend({ |
351 | 351 | |
352 | | className: 'edit-attachment-frame', |
| 352 | className: 'edit-attachment-frame media-frame', |
353 | 353 | template: media.template( 'edit-attachment-frame' ), |
354 | 354 | regions: [ 'title', 'content' ], |
355 | 355 | |
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index dafa2a9..fc6b826 100644
a
|
b
|
function wp_print_media_templates() { |
289 | 289 | </video> |
290 | 290 | </div> |
291 | 291 | <# } #> |
292 | | |
293 | 292 | <div class="attachment-actions"> |
294 | 293 | <# if ( 'image' === data.type && ! data.uploading ) { #> |
295 | 294 | <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a> |
296 | 295 | <# } #> |
297 | | |
298 | | <# if ( ! data.uploading && data.can.remove ) { #> |
299 | | <?php if ( MEDIA_TRASH ): ?> |
300 | | <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a> |
301 | | <?php else: ?> |
302 | | <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> |
303 | | <?php endif; ?> |
304 | | <# } #> |
305 | 296 | </div> |
306 | 297 | </div> |
307 | 298 | </div> |
… |
… |
function wp_print_media_templates() { |
310 | 301 | <span class="spinner"></span> |
311 | 302 | <span class="saved"><?php esc_html_e('Saved.'); ?></span> |
312 | 303 | </span> |
313 | | <div class="details"> |
| 304 | <div class="attachment-info-section details"> |
314 | 305 | <h3><?php _e('Attachment Details'); ?></h3> |
315 | 306 | <div class="filename setting"> |
316 | 307 | <span class="name"><?php _e( 'File name' ); ?></span> <span class="value">{{ data.filename }}</span> |
… |
… |
function wp_print_media_templates() { |
355 | 346 | </div> |
356 | 347 | </div> |
357 | 348 | |
358 | | <div class="settings advanced-section"> |
| 349 | <div class="attachment-info-section advanced-section"> |
359 | 350 | <h3><a class="advanced-toggle" href="#"><?php _e( 'Attachment Meta' ); ?></a></h3> |
360 | 351 | <div class="advanced-settings hidden"> |
361 | 352 | <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> |
… |
… |
function wp_print_media_templates() { |
405 | 396 | <div class="attachment-compat"></div> |
406 | 397 | </div> |
407 | 398 | </div> |
408 | | |
409 | | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> | |
410 | | <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> |
411 | | |
| 399 | <div class="attachment-info-section attachment-actions row-actions"> |
| 400 | <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> | |
| 401 | <# if ( ! data.uploading && data.can.remove ) { #> |
| 402 | <?php if ( MEDIA_TRASH ): ?> |
| 403 | <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a> | |
| 404 | <?php else: ?> |
| 405 | <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> | |
| 406 | <?php endif; ?> |
| 407 | <# } #> |
| 408 | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> |
| 409 | </div> |
412 | 410 | </div> |
413 | 411 | </script> |
414 | 412 | |