Ticket #29949: 29949.4.diff
File 29949.4.diff, 5.7 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
228 228 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 229 229 } 230 230 231 .collapsed .c ontrol-panel-back{232 display: none;231 .collapsed .customize-controls-close { 232 padding-right: 0; 233 233 } 234 234 235 235 .customize-controls-close:focus, … … 469 469 box-shadow: none !important; 470 470 -webkit-border-radius: 0 !important; 471 471 border-radius: 0 !important; 472 position: fixed; 473 left: 0; 474 bottom: 0; 472 475 } 473 476 474 475 477 .collapse-sidebar:active, 476 478 .collapse-sidebar:active .collapse-sidebar-label, 477 479 .collapse-sidebar:active .collapse-sidebar-arrow:before { 478 480 text-shadow: none; 479 481 } 480 482 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; 483 488 } 484 489 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 485 548 /* Style for custom settings */ 486 549 487 550 /* -
src/wp-admin/css/customize-widgets.css
394 394 color: #777; 395 395 } 396 396 397 #customize-preview {397 .in-sub-panel #customize-preview { 398 398 -webkit-transition: all 0.2s; 399 399 transition: all 0.2s; 400 400 } -
src/wp-admin/css/themes.css
1468 1468 1469 1469 /* Collapse Button */ 1470 1470 .wp-full-overlay a.collapse-sidebar { 1471 position: absolute;1471 position: fixed; 1472 1472 bottom: 12px; 1473 1473 left: 0; 1474 1474 z-index: 50; … … 1487 1487 color: #0074a2; 1488 1488 } 1489 1489 1490 .wp-full-overlay.collapsed .collapse-sidebar {1491 position: absolute;1492 left: 100%;1493 }1494 1495 1490 .wp-full-overlay .collapse-sidebar-arrow { 1496 1491 position: static; 1497 1492 margin-top: 0; -
src/wp-admin/customize.php
174 174 </div> 175 175 176 176 <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"> 178 178 <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> 180 181 </a> 181 182 </div> 182 183 </form> -
src/wp-admin/js/customize-controls.js
2112 2112 event.preventDefault(); 2113 2113 }); 2114 2114 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 2115 2150 // Bind site title display to the corresponding field. 2116 2151 if ( title.length ) { 2117 2152 $( '#customize-control-blogname input' ).on( 'input', function() {