Ticket #33229: 33229.patch
File 33229.patch, 3.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
273 273 left: -100%; 274 274 } 275 275 276 .section-open .control-panel-back {277 display: none;278 }279 280 276 .accordion-sub-container.control-panel-content { 281 277 display: none; 282 278 position: absolute; … … 329 325 border-left: 1px solid #ddd; 330 326 } 331 327 332 .control-panel-back {333 display: block;334 position: fixed;335 top: 0;336 z-index: 99;337 left: -48px;338 width: 45px;339 height: 45px;340 padding-right: 2px;341 background: #eee;342 border-right: 1px solid #ddd;343 cursor: pointer;344 -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out;345 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out;346 }347 348 328 .customize-panel-back, 349 329 .customize-section-back { 350 330 display: block; … … 367 347 height: 70px; 368 348 } 369 349 370 .ios .control-panel-back,371 350 .ios .customize-panel-back, 372 351 .ios .customize-section-back { 373 352 -webkit-transition: left 0s; … … 374 353 transition: left 0s; 375 354 } 376 355 377 .collapsed .control-panel-back,378 356 .ios .customize-panel-back { 379 357 display: none; 380 358 } … … 396 374 .customize-overlay-close:hover, 397 375 .customize-controls-close:focus, 398 376 .customize-controls-close:hover, 399 .control-panel-back:focus,400 .control-panel-back:hover,401 377 .customize-controls-preview-toggle:focus, 402 378 .customize-controls-preview-toggle:hover { 403 379 background: #ddd; … … 436 412 left: 13px; 437 413 } 438 414 439 .control-panel-back:before {440 font: normal 20px/45px dashicons;441 content: "\f341";442 position: relative;443 top: 1px;444 left: 13px;445 }446 447 415 .wp-full-overlay-sidebar .wp-full-overlay-header { 448 416 -webkit-transition: padding ease-in-out .18s; 449 417 transition: padding ease-in-out .18s; -
src/wp-admin/customize.php
136 136 <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>"> 137 137 <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span> 138 138 </a> 139 <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>140 139 </div> 141 140 <div class="secondary-actions"> 142 141 <button type="button" class="customize-overlay-close"> -
src/wp-admin/js/customize-controls.js
3387 3387 event.preventDefault(); 3388 3388 }); 3389 3389 3390 // Go back to the top-level Customizer accordion.3391 $( '#customize-header-actions' ).on( 'click keydown', '.control-panel-back', function( event ) {3392 if ( api.utils.isKeydownButNotEnterEvent( event ) ) {3393 return;3394 }3395 3396 event.preventDefault(); // Keep this AFTER the key filter above3397 api.panel.each( function ( panel ) {3398 panel.collapse();3399 });3400 });3401 3402 3390 closeBtn.keydown( function( event ) { 3403 3391 if ( 9 === event.which ) // tab 3404 3392 return;