Customize: Fix loading of theme screenshots in themes section and remove erroneous borders on hover.

Fixes regressions introduced in [38648].

Props delawski, mckernanin.
See #34391.
Fixes #38222.


git-svn-id: https://develop.svn.wordpress.org/trunk@39153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter
2016-11-07 21:46:43 +00:00
parent 750d78a8e3
commit c0f007b691
2 changed files with 10 additions and 0 deletions

View File

@@ -193,6 +193,12 @@ body {
border-left: 4px solid #fff;
}
#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title {
color: #555;
background-color: #fff;
border-left: 4px solid #fff;
}
#customize-theme-controls .accordion-section-title:after {
content: "\f345";
color: #a0a5aa;
@@ -1189,6 +1195,7 @@ p.customize-section-description {
margin: 0 0 15px;
}
#customize-controls .customize-themes-panel .accordion-section-title:hover,
#customize-controls .customize-themes-panel .accordion-section-title {
margin: 15px -8px;
}

View File

@@ -1267,6 +1267,8 @@
overlay.addClass( 'in-themes-panel' );
section.addClass( 'current-panel' );
_.delay( panel.renderScreenshots, 10 ); // Wait for the controls
panel.$customizeSidebar.on( 'scroll.customize-themes-section', _.throttle( panel.renderScreenshots, 300 ) );
} else if ( ! expanded && section.hasClass( 'current-panel' ) ) {
panel._animateChangeExpanded( function() {
@@ -1283,6 +1285,7 @@
overlay.removeClass( 'in-themes-panel' );
section.removeClass( 'current-panel' );
panel.$customizeSidebar.off( 'scroll.customize-themes-section' );
}
},