Ticket #29949: 29949.3.diff
File 29949.3.diff, 6.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
224 224 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 225 225 } 226 226 227 .collapsed .c ontrol-panel-back{228 display: none;227 .collapsed .customize-controls-close { 228 padding-right: 0; 229 229 } 230 230 231 231 .customize-controls-close:focus, … … 431 431 box-shadow: none !important; 432 432 -webkit-border-radius: 0 !important; 433 433 border-radius: 0 !important; 434 position: fixed; 435 left: 0; 436 bottom: 0; 434 437 } 435 438 436 437 439 .collapse-sidebar:active, 438 440 .collapse-sidebar:active .collapse-sidebar-label, 439 441 .collapse-sidebar:active .collapse-sidebar-arrow:before { … … 440 442 text-shadow: none; 441 443 } 442 444 443 .collapsed .collapse-sidebar-arrow:before { 444 color: #888; 445 446 /* Collapsed Mode */ 447 .collapsed .control-panel-back, 448 .expanded .expand-sidebar-label { 449 display: none; 445 450 } 446 451 452 .collapsed .accordion-section-content { 453 display: none !important; 454 } 455 456 .collapsed.in-sub-panel #customize-info, 457 .collapsed.in-sub-panel #customize-theme-controls > ul > .accordion-section, 458 .collapsed #customize-theme-controls .control-section.current-panel > h3.accordion-section-title { 459 left: 0; 460 } 461 462 @media screen and (min-width:600px) { 463 .collapsed #customize-preview { 464 left: 46px; 465 } 466 467 .wp-full-overlay.collapsed #customize-controls { 468 margin-left: 0; 469 width: 46px; 470 white-space: nowrap; 471 } 472 473 .collapsed .wp-full-overlay-main { 474 right: 0; 475 width: auto; 476 } 477 478 .collapsed #customize-info, 479 .collapsed #customize-controls .accordion-section-title:after { 480 display: none; 481 } 482 483 .collapsed .control-section .accordion-section-title, 484 .collapsed .control-panel .accordion-section-title { 485 white-space: nowrap; 486 overflow: hidden; 487 text-overflow: ellipsis; 488 } 489 490 .collapsed #customize-controls .wp-full-overlay-sidebar-content { 491 overflow-y: hidden; 492 } 493 494 /* No animation coming in, as it causes layout issues */ 495 .expanded.wp-full-overlay, 496 .expanded #customize-preview, 497 .expanded #customize-controls { 498 transition: none; 499 } 500 501 /* No animation going out, as it causes layout issues */ 502 .collapsed.wp-full-overlay, 503 .collapsed #customize-preview, 504 .collapsed #customize-controls { 505 transition: none; 506 } 507 } 508 509 447 510 /* Style for custom settings */ 448 511 449 512 /* -
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
1470 1470 1471 1471 /* Collapse Button */ 1472 1472 .wp-full-overlay a.collapse-sidebar { 1473 position: absolute;1473 position: fixed; 1474 1474 bottom: 12px; 1475 1475 left: 0; 1476 1476 z-index: 50; … … 1489 1489 color: #0074a2; 1490 1490 } 1491 1491 1492 .wp-full-overlay.collapsed .collapse-sidebar {1493 position: absolute;1494 left: 100%;1495 }1496 1497 1492 .wp-full-overlay .collapse-sidebar-arrow { 1498 1493 position: static; 1499 1494 margin-top: 0; -
src/wp-admin/customize.php
171 171 </div> 172 172 173 173 <div id="customize-footer-actions" class="wp-full-overlay-footer"> 174 <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">174 <a href="#" class="collapse-sidebar button-secondary"> 175 175 <span class="collapse-sidebar-arrow"></span> 176 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span> 176 <span class="collapse-sidebar-label"><?php _e( 'Collapse controls' ); ?></span> 177 <span class="expand-sidebar-label"><span class="screen-reader-text"><?php _e( 'Expand controls' ); ?></span></span> 177 178 </a> 178 179 </div> 179 180 </form> -
src/wp-admin/js/customize-controls.js
1197 1197 }); 1198 1198 1199 1199 $('.collapse-sidebar').on( 'click keydown', function( event ) { 1200 if ( event.type === 'keydown' && 13 !== event.which ) // enter1200 if ( event.type === 'keydown' && 13 !== event.which ) { // enter 1201 1201 return; 1202 } 1202 1203 1203 1204 overlay.toggleClass( 'collapsed' ).toggleClass( 'expanded' ); 1204 1205 event.preventDefault(); 1205 1206 }); 1206 1207 1208 // Expand Customizer controls on section icon click in collapsed mode. 1209 $('.accordion-section-title').on( 'click keydown', function( event ) { 1210 if ( event.type === 'keydown' && 13 !== event.which ) { // enter 1211 return; 1212 } else if ( overlay.hasClass( 'collapsed' ) ) { 1213 var section = $( this ).closest( '.control-section' ); 1214 if ( section.hasClass( 'control-panel' ) ) { 1215 if ( section.hasClass( 'current-panel' ) ) { 1216 // Prevent panel-expand from triggering. 1217 event.stopImmediatePropagation(); 1218 } else { 1219 if ( overlay.hasClass( 'in-sub-panel' ) ) { 1220 $( '.control-panel-back' ).trigger( 'click' ); 1221 } 1222 } 1223 } else { 1224 if ( section.hasClass( 'open' ) ) { 1225 // Prevent the section from trying to close. 1226 event.stopImmediatePropagation(); 1227 } 1228 else { 1229 // Close any open sections/panels. 1230 if ( overlay.hasClass( 'in-sub-panel' ) ) { 1231 $( '.control-panel-back' ).trigger( 'click' ); 1232 } else { 1233 $( '.control-section.open .accordion-section-title' ).trigger( 'click' ); 1234 } 1235 } 1236 } 1237 // Expand the controls. 1238 $( '.collapse-sidebar' ).trigger( 'click' ); 1239 } 1240 }); 1241 1207 1242 // Bind site title display to the corresponding field. 1208 1243 if ( title.length ) { 1209 1244 $( '#customize-control-blogname input' ).on( 'input', function() {