Make WordPress Core

Ticket #29949: 29949.4.diff

File 29949.4.diff, 5.7 KB (added by dancameron, 10 years ago)

Fixed patch to remove conflicts from merging into current trunk

  • src/wp-admin/css/customize-controls.css

     
    228228        transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out;
    229229}
    230230
    231 .collapsed .control-panel-back {
    232         display: none;
     231.collapsed .customize-controls-close {
     232        padding-right: 0;
    233233}
    234234
    235235.customize-controls-close:focus,
     
    469469        box-shadow: none !important;
    470470        -webkit-border-radius: 0 !important;
    471471        border-radius: 0 !important;
     472        position: fixed;
     473        left: 0;
     474        bottom: 0;
    472475}
    473476
    474 
    475477.collapse-sidebar:active,
    476478.collapse-sidebar:active .collapse-sidebar-label,
    477479.collapse-sidebar:active .collapse-sidebar-arrow:before {
    478480        text-shadow: none;
    479481}
    480482
    481 .collapsed .collapse-sidebar-arrow:before {
    482         color: #888;
     483
     484/* Collapsed Mode */
     485.collapsed .control-panel-back,
     486.expanded .expand-sidebar-label {
     487        display: none;
    483488}
    484489
     490.collapsed .accordion-section-content {
     491        display: none !important;
     492}
     493
     494.collapsed.in-sub-panel #customize-info,
     495.collapsed.in-sub-panel #customize-theme-controls > ul > .accordion-section,
     496.collapsed #customize-theme-controls .control-section.current-panel > h3.accordion-section-title {
     497        left: 0;
     498}
     499
     500@media screen and (min-width:600px) {
     501        .collapsed #customize-preview {
     502                left: 46px;
     503        }
     504
     505        .wp-full-overlay.collapsed #customize-controls {
     506                margin-left: 0;
     507                width: 46px;
     508                white-space: nowrap;
     509        }
     510
     511        .collapsed .wp-full-overlay-main {
     512                right: 0;
     513                width: auto;
     514        }
     515
     516        .collapsed #customize-info,
     517        .collapsed #customize-controls .accordion-section-title:after {
     518                display: none;
     519        }
     520
     521        .collapsed .control-section .accordion-section-title,
     522        .collapsed .control-panel .accordion-section-title {
     523                white-space: nowrap;
     524                overflow: hidden;
     525                text-overflow: ellipsis;
     526        }
     527
     528        .collapsed #customize-controls .wp-full-overlay-sidebar-content {
     529                overflow-y: hidden;
     530        }
     531
     532        /* No animation coming in, as it causes layout issues */
     533        .expanded.wp-full-overlay,
     534        .expanded #customize-preview,
     535        .expanded #customize-controls {
     536                transition: none;
     537        }
     538
     539        /* No animation going out, as it causes layout issues */
     540        .collapsed.wp-full-overlay,
     541        .collapsed #customize-preview,
     542        .collapsed #customize-controls {
     543                transition: none;
     544        }
     545}
     546
     547
    485548/* Style for custom settings */
    486549
    487550/*
  • src/wp-admin/css/customize-widgets.css

     
    394394        color: #777;
    395395}
    396396
    397 #customize-preview {
     397.in-sub-panel #customize-preview {
    398398        -webkit-transition: all 0.2s;
    399399        transition: all 0.2s;
    400400}
  • src/wp-admin/css/themes.css

     
    14681468
    14691469/* Collapse Button */
    14701470.wp-full-overlay a.collapse-sidebar {
    1471         position: absolute;
     1471        position: fixed;
    14721472        bottom: 12px;
    14731473        left: 0;
    14741474        z-index: 50;
     
    14871487        color: #0074a2;
    14881488}
    14891489
    1490 .wp-full-overlay.collapsed .collapse-sidebar {
    1491         position: absolute;
    1492         left: 100%;
    1493 }
    1494 
    14951490.wp-full-overlay .collapse-sidebar-arrow {
    14961491        position: static;
    14971492        margin-top: 0;
  • src/wp-admin/customize.php

     
    174174                </div>
    175175
    176176                <div id="customize-footer-actions" class="wp-full-overlay-footer">
    177                         <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
     177                        <a href="#" class="collapse-sidebar button-secondary">
    178178                                <span class="collapse-sidebar-arrow"></span>
    179                                 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
     179                                <span class="collapse-sidebar-label"><?php _e( 'Collapse controls' ); ?></span>
     180                                <span class="expand-sidebar-label"><span class="screen-reader-text"><?php _e( 'Expand controls' ); ?></span></span>
    180181                        </a>
    181182                </div>
    182183        </form>
  • src/wp-admin/js/customize-controls.js

     
    21122112                        event.preventDefault();
    21132113                });
    21142114
     2115                // Expand Customizer controls on section icon click in collapsed mode.
     2116                $('.accordion-section-title').on( 'click keydown', function( event ) {
     2117                        if ( isKeydownButNotEnterEvent( event ) ) { // enter
     2118                                return;
     2119                        } else if ( overlay.hasClass( 'collapsed' ) ) {
     2120                                var section = $( this ).closest( '.control-section' );
     2121                                if ( section.hasClass( 'control-panel' ) ) {
     2122                                        if ( section.hasClass( 'current-panel' ) ) {
     2123                                                // Prevent panel-expand from triggering.
     2124                                                event.stopImmediatePropagation();
     2125                                        } else {
     2126                                                if ( overlay.hasClass( 'in-sub-panel' ) ) {
     2127                                                        $( '.control-panel-back' ).trigger( 'click' );
     2128                                                }
     2129                                        }
     2130                                } else {
     2131                                        if ( section.hasClass( 'open' ) ) {
     2132                                                // Prevent the section from trying to close.
     2133                                                event.stopImmediatePropagation();
     2134                                        }
     2135                                        else {
     2136                                                // Close any open sections/panels.
     2137                                                if ( overlay.hasClass( 'in-sub-panel' ) ) {
     2138                                                        $( '.control-panel-back' ).trigger( 'click' );
     2139                                                } else {
     2140                                                        $( '.control-section.open .accordion-section-title' ).trigger( 'click' );
     2141                                                }
     2142                                        }
     2143                                }
     2144                                // Expand the controls.
     2145                                $( '.collapse-sidebar' ).trigger( 'click' );
     2146                        }
     2147                });
     2148
     2149
    21152150                // Bind site title display to the corresponding field.
    21162151                if ( title.length ) {
    21172152                        $( '#customize-control-blogname input' ).on( 'input', function() {