diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index 82132e3..32d5827 100644
|
|
h3.customize-section-title { |
430 | 430 | width: 300px; |
431 | 431 | } |
432 | 432 | |
| 433 | .in-sub-panel #customize-info { |
| 434 | height: 0; |
| 435 | } |
| 436 | |
| 437 | .in-sub-panel #customize-theme-controls > ul > .control-section:not(.current-panel) { |
| 438 | height: 0; |
| 439 | } |
| 440 | |
433 | 441 | .in-sub-panel #customize-theme-controls .accordion-section.current-panel { |
434 | 442 | width: 100%; |
435 | 443 | } |
diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 8fcf08b..086472b 100644
|
|
|
1333 | 1333 | } |
1334 | 1334 | |
1335 | 1335 | // Note: there is a second argument 'args' passed |
1336 | | var position, scroll, |
1337 | | panel = this, |
| 1336 | var panel = this, |
1338 | 1337 | accordionSection = panel.container.closest( '.accordion-section' ), |
1339 | 1338 | overlay = accordionSection.closest( '.wp-full-overlay' ), |
1340 | 1339 | container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ), |
… |
… |
|
1342 | 1341 | topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ), |
1343 | 1342 | backBtn = accordionSection.find( '.customize-panel-back' ), |
1344 | 1343 | panelTitle = accordionSection.find( '.accordion-section-title' ).first(), |
1345 | | content = accordionSection.find( '.control-panel-content' ), |
1346 | | headerActionsHeight = $( '#customize-header-actions' ).height(); |
| 1344 | content = accordionSection.find( '.control-panel-content' ); |
1347 | 1345 | |
1348 | 1346 | if ( expanded ) { |
1349 | 1347 | |
… |
… |
|
1361 | 1359 | |
1362 | 1360 | content.show( 0, function() { |
1363 | 1361 | content.parent().show(); |
1364 | | position = content.offset().top; |
1365 | | scroll = container.scrollTop(); |
1366 | | content.css( 'margin-top', ( headerActionsHeight - position - scroll ) ); |
1367 | 1362 | accordionSection.addClass( 'current-panel' ); |
1368 | 1363 | overlay.addClass( 'in-sub-panel' ); |
1369 | 1364 | container.scrollTop( 0 ); |