mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Theme Customizer: Don't expand theme title if there are no details to show. props nacin, fixes #20757, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -28,6 +28,10 @@ body {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.cannot-expand .customize-section-title {
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.customize-section-content {
|
||||
display: none;
|
||||
padding: 10px 20px 15px;
|
||||
@@ -84,6 +88,10 @@ body {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cannot-expand .customize-section-title:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customize-section.open .customize-section-title:after {
|
||||
margin-top: -1px;
|
||||
border-width: 0 6px 6px;
|
||||
|
||||
@@ -594,11 +594,15 @@
|
||||
});
|
||||
|
||||
// Temporary accordion code.
|
||||
$('.customize-section-title').click( function() {
|
||||
$('.customize-section-title').click( function( event ) {
|
||||
var clicked = $( this ).parents( '.customize-section' );
|
||||
|
||||
if ( clicked.hasClass('cannot-expand') )
|
||||
return;
|
||||
|
||||
$( '.customize-section' ).not( clicked ).removeClass( 'open' );
|
||||
clicked.toggleClass( 'open' );
|
||||
return false;
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
// Button bindings.
|
||||
|
||||
Reference in New Issue
Block a user