mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user