Make WordPress Core

Ticket #59371: 59371.diff

File 59371.diff, 2.8 KB (added by joedolson, 3 years ago)

Update order of buttons & center.

  • src/wp-admin/css/themes.css

     
    506506        z-index: 30;
    507507        box-sizing: border-box;
    508508        border-top: 1px solid #f0f0f1;
     509        display: flex;
     510        justify-content: center;
    509511}
    510512
    511513.theme-overlay .theme-actions a {
     
    521523
    522524.broken-themes a.delete-theme,
    523525.theme-overlay .theme-actions .delete-theme {
    524         color: #d63638;
     526        color: #b32d2e;
    525527        text-decoration: none;
    526528        border-color: transparent;
    527529        box-shadow: none;
     
    528530        background: transparent;
    529531}
    530532
    531 .theme-overlay .theme-actions .delete-theme {
    532         position: absolute;
    533         right: 10px;
    534         bottom: 5px;
    535 }
    536 
    537533.broken-themes a.delete-theme:hover,
    538534.broken-themes a.delete-theme:focus,
    539535.theme-overlay .theme-actions .delete-theme:hover,
    540536.theme-overlay .theme-actions .delete-theme:focus {
    541         background: #d63638;
     537        background: #b32d2e;
    542538        color: #fff;
    543         border-color: #d63638;
     539        border-color: #b32d2e;
    544540}
    545541
    546542.theme-overlay .theme-actions .active-theme,
  • src/wp-admin/themes.php

     
    12051205                                        /* translators: %s: Theme name. */
    12061206                                        $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
    12071207                                        ?>
     1208                                        <# if ( ! data.blockTheme ) { #>
     1209                                                <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a>
     1210                                        <# } #>
    12081211                                        <# if ( data.actions.activate ) { #>
    12091212                                                <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
    12101213                                        <# } #>
    1211                                         <# if ( ! data.blockTheme ) { #>
    1212                                                 <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a>
    1213                                         <# } #>
    12141214                                <# } else { #>
    12151215                                        <?php
    12161216                                        /* translators: %s: Theme name. */
    12171217                                        $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
    12181218                                        ?>
     1219                                        <# if ( ! data.blockTheme ) { #>
     1220                                                <a class="button button-primary hide-if-no-customize disabled"><?php _e( 'Live Preview' ); ?></a>
     1221                                        <# } #>
    12191222                                        <# if ( data.actions.activate ) { #>
    12201223                                                <a class="button disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
    12211224                                        <# } #>
    1222                                         <# if ( ! data.blockTheme ) { #>
    1223                                                 <a class="button button-primary hide-if-no-customize disabled"><?php _e( 'Live Preview' ); ?></a>
    1224                                         <# } #>
    12251225                                <# } #>
    12261226                        </div>
    12271227