Make WordPress Core

Ticket #29056: 29056.diff

File 29056.diff, 6.7 KB (added by ericlewis, 11 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 ecac256..6189b22 100644
    a b  
    2727
    2828.media-frame a {
    2929        border-bottom: none;
     30        text-decoration: none;
    3031        color: #21759b;
    3132}
    3233
    33 .media-frame a:hover {
    34         color: #d54e21;
    35 }
    36 
    3734.media-frame a.button {
    3835        color: #333;
    3936}
     
    140137
    141138.media-modal-close {
    142139        position: absolute;
    143         text-decoration: none;
    144140        top: 0;
    145141        right: 0;
    146142        width: 50px;
     
    445441        line-height: 18px;
    446442        font-size: 14px;
    447443        color: #0074a2;
    448         text-decoration: none;
    449444}
    450445
    451446.media-menu > a:hover {
     
    497492        height: 18px;
    498493        line-height: 18px;
    499494        font-size: 14px;
    500         text-decoration: none;
    501495}
    502496
    503497.media-router > a:last-child {
     
    848842        font-size: 20px;
    849843        line-height: 20px;
    850844        text-align: center;
    851         text-decoration: none;
    852845        color: #464646;
    853846        background-color: #fff;
    854847        background-position: -96px 4px;
     
    11201113        display: block;
    11211114}
    11221115
    1123 .media-uploader-status .upload-dismiss-errors {
    1124         text-decoration: none;
    1125 }
    1126 
    11271116.media-sidebar .media-uploader-status .upload-dismiss-errors {
    11281117        position: absolute;
    11291118        top: 0;
     
    13211310        padding: 1px 8px;
    13221311        margin: 1px 8px 1px -8px;
    13231312        line-height: 16px;
    1324         text-decoration: none;
    13251313        border-right: 1px solid #dfdfdf;
    13261314        color: #21759B;
    13271315}
     
    13641352        padding: 0;
    13651353        margin: 0;
    13661354        -webkit-box-shadow: none;
    1367         box-shadow: none; 
     1355        box-shadow: none;
    13681356}
    13691357
    13701358.media-selection .attachment .thumbnail {
     
    15741562
    15751563.attachment-info .advanced-toggle {
    15761564        color: #666;
    1577         text-decoration: none;
    15781565        display: block;
    15791566}
    15801567.attachment-info .advanced-toggle:hover {
     
    16001587.attachment-info .delete-attachment,
    16011588.attachment-info .trash-attachment {
    16021589        display: block;
    1603         text-decoration: none;
    16041590        white-space: nowrap;
    16051591}
    1606 
     1592.edit-attachment-frame .attachment-info .delete-attachment {
     1593        display: inline;
     1594}
    16071595.attachment-info .refresh-attachment,
    16081596.attachment-details.needs-refresh .attachment-info .edit-attachment {
    16091597        display: none;
     
    18441832
    18451833.image-details .advanced-toggle {
    18461834        color: #666;
    1847         text-decoration: none;
    18481835        display: block;
    18491836}
    18501837
     
    19981985        left: 440px;
    19991986}
    20001987
    2001 .advanced-section,
    2002 .link-settings {
    2003         margin-top: 10px;
    2004 }
    2005 
    20061988/* Drag & drop on the editor upload */
    20071989#wp-fullscreen-body .uploader-editor,
    20081990.wp-editor-wrap .uploader-editor {
     
    27542736}
    27552737.edit-attachment-frame .attachment-media-view {
    27562738        float: left;
     2739        position: relative;
    27572740        width: 65%;
    27582741        height: 100%;
    27592742}
     
    27742757        max-height: calc( 100% - 42px ); /* leave space for actions underneath */
    27752758}
    27762759
    2777 .edit-attachment-frame .delete-attachment {
    2778         float: right;
    2779         margin-top: 7px;
    2780 }
    2781 
    27822760.edit-attachment-frame .wp-media-wrapper {
    27832761        margin-bottom: 12px;
    27842762}
     
    27992777        background: #f3f3f3;
    28002778}
    28012779
     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
    28022791.edit-attachment-frame input,
    28032792.edit-attachment-frame textarea {
    28042793        padding: 6px 8px;
    28052794        line-height: 16px;
    28062795}
    28072796
    2808 .edit-attachment-frame .attachment-info .details,
    2809 .edit-attachment-frame .attachment-info .settings {
     2797.edit-attachment-frame .attachment-info-section {
    28102798        overflow: hidden;
    28112799        float: none;
    28122800        position: relative;
     
    28152803        border-bottom: 1px solid #ddd;
    28162804}
    28172805
     2806.edit-attachment-frame .attachment-info-section:last-child {
     2807        margin-bottom: 0;
     2808        border-bottom: none;
     2809}
     2810
    28182811.edit-attachment-frame .attachment-info .setting {
    28192812        display: block;
    28202813        float: left;
  • src/wp-includes/js/media-grid.js

    diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
    index 0c912fb..f7acbfd 100644
    a b  
    349349         */
    350350        media.view.MediaFrame.EditAttachments = media.view.MediaFrame.extend({
    351351
    352                 className: 'edit-attachment-frame',
     352                className: 'edit-attachment-frame media-frame',
    353353                template: media.template( 'edit-attachment-frame' ),
    354354                regions:   [ 'title', 'content' ],
    355355
  • src/wp-includes/media-template.php

    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() { 
    289289                                        </video>
    290290                                </div>
    291291                                <# } #>
    292 
    293292                                <div class="attachment-actions">
    294293                                        <# if ( 'image' === data.type && ! data.uploading ) { #>
    295294                                                <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a>
    296295                                        <# } #>
    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                                         <# } #>
    305296                                </div>
    306297                        </div>
    307298                </div>
    function wp_print_media_templates() { 
    310301                                <span class="spinner"></span>
    311302                                <span class="saved"><?php esc_html_e('Saved.'); ?></span>
    312303                        </span>
    313                         <div class="details">
     304                        <div class="attachment-info-section details">
    314305                                <h3><?php _e('Attachment Details'); ?></h3>
    315306                                <div class="filename setting">
    316307                                        <span class="name"><?php _e( 'File name' ); ?></span> <span class="value">{{ data.filename }}</span>
    function wp_print_media_templates() { 
    355346                                </div>
    356347                        </div>
    357348
    358                         <div class="settings advanced-section">
     349                        <div class="attachment-info-section advanced-section">
    359350                                <h3><a class="advanced-toggle" href="#"><?php _e( 'Attachment Meta' ); ?></a></h3>
    360351                                <div class="advanced-settings hidden">
    361352                                        <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
    function wp_print_media_templates() { 
    405396                                        <div class="attachment-compat"></div>
    406397                                </div>
    407398                        </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>
    412410                </div>
    413411        </script>
    414412