Widgets: Toggle widget arrow when widget is open/closed.
props MikeHansenMe. fixes #26748. git-svn-id: https://develop.svn.wordpress.org/trunk@28235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ed52ae7a3f
commit
a54c311e4f
|
@ -2270,7 +2270,8 @@ img {
|
|||
|
||||
.control-section.open .accordion-section-title:after,
|
||||
#customize-info.open .accordion-section-title:after,
|
||||
.nav-menus-php .menu-item-edit-active .item-edit:before {
|
||||
.nav-menus-php .menu-item-edit-active .item-edit:before,
|
||||
.widget.open .widget-top a.widget-action:after {
|
||||
content: '\f142';
|
||||
}
|
||||
|
||||
|
|
|
@ -50,10 +50,12 @@ wpWidgets = {
|
|||
css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';
|
||||
widget.css( css );
|
||||
}
|
||||
widget.addClass( 'open' );
|
||||
inside.slideDown('fast');
|
||||
} else {
|
||||
inside.slideUp('fast', function() {
|
||||
widget.attr( 'style', '' );
|
||||
widget.removeClass( 'open' );
|
||||
});
|
||||
}
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue