Ticket #28844: 28844.diff
File 28844.diff, 7.2 KB (added by , 10 years ago) |
---|
-
src/wp-includes/css/media-views.css
diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index be3179a..8e41acf 100644
a b 118 118 z-index: 160000; 119 119 } 120 120 121 .upload-php .media-modal { 122 top: 0; 123 left: 0; 124 right: 0; 125 bottom: 0; 126 } 127 121 128 .wp-customizer .media-modal { 122 129 z-index: 560000; 123 130 } … … video#inline-media-node { 1532 1539 margin-top: 14px; 1533 1540 } 1534 1541 1535 .media-sidebar .settings-save-status { 1536 background: #f5f5f5; 1542 /** 1543 * Attachment Details 1544 */ 1545 .attachment-details { 1546 position: relative; 1547 overflow: auto; 1548 } 1549 1550 .attachment-details .settings-save-status { 1537 1551 float: right; 1538 1552 text-transform: none; 1539 1553 z-index: 10; 1540 1554 } 1541 1555 1542 . media-sidebar.settings-save-status .spinner {1556 .attachment-details .settings-save-status .spinner { 1543 1557 margin: 0 5px 0; 1544 1558 } 1545 1559 1546 . media-sidebar.settings-save-status .saved {1560 .attachment-details .settings-save-status .saved { 1547 1561 float: right; 1548 1562 display: none; 1549 1563 } 1550 1564 1551 . media-sidebar.save-waiting .settings-save-status .spinner,1552 . media-sidebar.save-complete .settings-save-status .saved {1565 .attachment-details.save-waiting .settings-save-status .spinner, 1566 .attachment-details.save-complete .settings-save-status .saved { 1553 1567 display: block; 1554 1568 } 1555 1569 1556 /**1557 * Attachment Details1558 */1559 .attachment-details {1560 position: relative;1561 overflow: auto;1562 }1563 1564 1570 .attachment-info { 1565 1571 overflow: hidden; 1566 1572 min-height: 60px; … … video#inline-media-node { 2671 2677 float: left; 2672 2678 text-align: center; 2673 2679 border: 0; 2680 border-bottom: 1px solid #ddd; 2674 2681 border-right: 1px solid #ddd; 2675 2682 } 2676 2683 … … video#inline-media-node { 2735 2742 right: 0; 2736 2743 left: 0; 2737 2744 } 2738 2739 .edit-attachment-frame .attachment-info { 2740 border-bottom: 0; 2741 border-right: 1px solid #ddd; 2742 bottom: 0; 2745 .edit-attachment-frame .attachment-media-view { 2743 2746 position: absolute; 2744 2747 top: 0; 2748 bottom: 0; 2745 2749 left: 0; 2746 right: 50%; 2747 margin-bottom: 0; 2748 padding: 2% 4% 0; 2749 height: 98%; /* 100% - padding percentage above */ 2750 right: 35%; 2750 2751 } 2751 2752 2752 2753 .edit-attachment-frame .attachment-info .thumbnail { … … video#inline-media-node { 2765 2766 box-shadow: none; 2766 2767 } 2767 2768 2769 .edit-attachment-frame .attachment-media-view .thumbnail { 2770 text-align: center; 2771 } 2772 2773 .edit-attachment-frame .attachment-media-view img { 2774 max-width: 100%; 2775 } 2776 2768 2777 .edit-attachment-frame .attachment-info .thumbnail img { 2769 2778 max-width: 100%; 2770 2779 max-height: 100%; … … video#inline-media-node { 2778 2787 margin-bottom: 12px; 2779 2788 } 2780 2789 2781 .edit-attachment-frame .attachment- fields{2782 bo ttom: 0;2783 padding: 2% 4%;2790 .edit-attachment-frame .attachment-info { 2791 border-bottom: 0; 2792 border-left: 1px solid #ddd; 2784 2793 position: absolute; 2794 margin-bottom: 0; 2795 height: 98%; /* 100% - padding percentage above */ 2796 padding: 2% 4% 0; 2785 2797 top: 0; 2786 left: 50%; 2798 bottom: 0; 2799 left: 65%; 2787 2800 right: 0; 2788 2801 } 2789 2802 2790 .edit-attachment-frame .attachment- fields.setting {2803 .edit-attachment-frame .attachment-info .setting { 2791 2804 display: block; 2792 2805 float: left; 2793 2806 width: 100%; 2794 2807 margin: 1px 0; 2795 2808 } 2796 2809 2797 .edit-attachment-frame .attachment- fields.setting label {2810 .edit-attachment-frame .attachment-info .setting label { 2798 2811 display: block; 2799 2812 } 2800 2813 2801 .edit-attachment-frame .attachment- fields.setting .link-to-custom {2814 .edit-attachment-frame .attachment-info .setting .link-to-custom { 2802 2815 margin: 3px 0; 2803 2816 } 2804 2817 2805 .edit-attachment-frame .attachment- fields.setting .name {2818 .edit-attachment-frame .attachment-info .setting .name { 2806 2819 min-width: 30%; 2807 2820 margin-right: 4%; 2808 2821 font-size: 12px; 2809 2822 text-align: right; 2810 2823 } 2811 2824 2812 .edit-attachment-frame .attachment- fields.setting select {2825 .edit-attachment-frame .attachment-info .setting select { 2813 2826 max-width: 65%; 2814 2827 } 2815 2828 2816 .edit-attachment-frame .attachment- fields.setting input[type="checkbox"],2817 .edit-attachment-frame .attachment- fields.field input[type="checkbox"] {2829 .edit-attachment-frame .attachment-info .setting input[type="checkbox"], 2830 .edit-attachment-frame .attachment-info .field input[type="checkbox"] { 2818 2831 width: 16px; 2819 2832 float: none; 2820 2833 margin: 8px 3px 0; 2821 2834 padding: 0; 2822 2835 } 2823 2836 2824 .edit-attachment-frame .attachment- fields.setting span {2837 .edit-attachment-frame .attachment-info .setting span { 2825 2838 float: left; 2826 2839 min-height: 22px; 2827 2840 padding-top: 8px; … … video#inline-media-node { 2830 2843 color: #666; 2831 2844 } 2832 2845 2833 .edit-attachment-frame .attachment- fields.setting input[type="text"],2834 .edit-attachment-frame .attachment- fields.setting input[type="password"],2835 .edit-attachment-frame .attachment- fields.setting input[type="number"],2836 .edit-attachment-frame .attachment- fields.setting input[type="search"],2837 .edit-attachment-frame .attachment- fields.setting input[type="email"],2838 .edit-attachment-frame .attachment- fields.setting input[type="url"],2839 .edit-attachment-frame .attachment- fields.setting textarea,2840 .edit-attachment-frame .attachment- fields.setting .value {2846 .edit-attachment-frame .attachment-info .setting input[type="text"], 2847 .edit-attachment-frame .attachment-info .setting input[type="password"], 2848 .edit-attachment-frame .attachment-info .setting input[type="number"], 2849 .edit-attachment-frame .attachment-info .setting input[type="search"], 2850 .edit-attachment-frame .attachment-info .setting input[type="email"], 2851 .edit-attachment-frame .attachment-info .setting input[type="url"], 2852 .edit-attachment-frame .attachment-info .setting textarea, 2853 .edit-attachment-frame .attachment-info .setting .value { 2841 2854 margin: 1px; 2842 2855 width: 65%; 2843 2856 float: right; … … video#inline-media-node { 2847 2860 box-sizing: border-box; 2848 2861 } 2849 2862 2850 .edit-attachment-frame .attachment- fields.setting textarea {2863 .edit-attachment-frame .attachment-info .setting textarea { 2851 2864 height: 62px; 2852 2865 resize: vertical; 2853 2866 } 2854 2867 2855 .edit-attachment-frame .attachment- fieldsselect {2868 .edit-attachment-frame .attachment-info select { 2856 2869 margin-top: 3px; 2857 2870 } 2858 2871 -
src/wp-includes/media-template.php
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 4dda581..641a1e7 100644
a b function wp_print_media_templates() { 265 265 <script type="text/html" id="tmpl-attachment-details-two-column"> 266 266 <h3> 267 267 <?php _e('Attachment Details'); ?> 268 269 <span class="settings-save-status">270 <span class="spinner"></span>271 <span class="saved"><?php esc_html_e('Saved.'); ?></span>272 </span>273 268 </h3> 274 <div class="attachment- info">269 <div class="attachment-media-view"> 275 270 <div class="thumbnail thumbnail-{{ data.type }}"> 276 271 <# if ( data.uploading ) { #> 277 272 <div class="media-progress-bar"><div></div></div> … … function wp_print_media_templates() { 296 291 </video> 297 292 </div> 298 293 <# } #> 294 </div> 295 <div class="attachment-info"> 296 <span class="settings-save-status"> 297 <span class="spinner"></span> 298 <span class="saved"><?php esc_html_e('Saved.'); ?></span> 299 </span> 299 300 <div class="details"> 300 301 <div class="filename"><strong><?php _e( 'File name:' ); ?></strong> {{ data.filename }}</div> 301 302 <div class="filename"><strong><?php _e( 'File type:' ); ?></strong> {{ data.mime }}</div> … … function wp_print_media_templates() { 326 327 <# } #> 327 328 </div> 328 329 </div> 329 </div>330 <div class="attachment-fields">331 330 <label class="setting" data-setting="url"> 332 331 <span class="name"><?php _e('URL'); ?></span> 333 332 <input type="text" value="{{ data.url }}" readonly />