Make WordPress Core

Ticket #28655: 28655.6.patch

File 28655.6.patch, 2.0 KB (added by gauravmittal1995, 10 years ago)

Creation of a new class, also hides it on collapse

  • wp-admin/customize.php

     
    108108                                submit_button( $save_text, 'primary save', 'save', false );
    109109                        ?>
    110110                        <span class="spinner"></span>
    111                         <a class="back button" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>">
     111                        <a class="back customize-controls-close" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>">
    112112                                <?php _e( 'Cancel' ); ?>
    113113                        </a>
    114114                </div>
  • wp-admin/css/customize-controls.css

     
    212212#customize-header-actions a.back {
    213213        position: relative;
    214214        left: 0;
     215        visibility: hidden;
    215216        -webkit-transition: left ease-in-out .18s;
    216217        transition: left ease-in-out .18s;
    217218}
    218219
    219 .in-sub-panel #customize-header-actions a.back {
     220#customize-header-actions .customize-controls-close {
     221        position: relative;
     222        left: 0;
     223        -webkit-transition: left ease-in-out .18s;
     224        transition: left ease-in-out .18s;
     225}
     226
     227
     228.customize-controls-close:before {
     229        font: normal 30px/1.5 dashicons;
     230        color: #000;
     231        width:30px;
     232        padding: 9px 9px 7.5px 9px; 
     233        content: "\f335"; 
     234        position: relative;
     235        visibility: visible;
     236        top: 0px;
     237        border-right: 1px solid #ddd;
     238}
     239
     240.customize-controls-close:hover::before { 
     241        background-color: #0074a2; 
     242        color: #fff; 
     243        outline: none;
     244
     245
     246.in-sub-panel #customize-header-actions a.back {       
    220247        left: -120px;
    221248}
    222249
     250.in-sub-panel #customize-header-actions .customize-controls-close:before {     
     251        left: -120px;
     252}
     253
    223254.wp-full-overlay-sidebar .wp-full-overlay-header {
    224255        -webkit-transition: padding ease-in-out .18s;
    225256        transition: padding ease-in-out .18s;
     257        padding: 0 15px 0 0;
    226258}
    227259
    228260.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header {