Make WordPress Core

Ticket #38222: trac-38222_2.diff

File trac-38222_2.diff, 1.6 KB (added by delawski, 8 years ago)
  • src/wp-admin/css/customize-controls.css

    diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css
    index 27def3f..15927a6 100644
    a b body { 
    193193        border-left: 4px solid #fff;
    194194}
    195195
     196#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title {
     197        color: #555;
     198        background-color: #fff;
     199        border-left: 4px solid #fff;
     200}
     201
    196202#customize-theme-controls .accordion-section-title:after {
    197203        content: "\f345";
    198204        color: #a0a5aa;
    p.customize-section-description { 
    11891195        margin: 0 0 15px;
    11901196}
    11911197
     1198#customize-controls .customize-themes-panel .accordion-section-title:hover,
    11921199#customize-controls .customize-themes-panel .accordion-section-title {
    11931200        margin: 15px -8px;
    11941201}
  • src/wp-admin/js/customize-controls.js

    diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
    index 8ca8318..25145a1 100644
    a b  
    12671267
    12681268                                overlay.addClass( 'in-themes-panel' );
    12691269                                section.addClass( 'current-panel' );
     1270                                _.delay( panel.renderScreenshots, 10 ); // Wait for the controls
     1271                                panel.$customizeSidebar.on( 'scroll.customize-themes-section', _.throttle( panel.renderScreenshots, 300 ) );
    12701272
    12711273                        } else if ( ! expanded && section.hasClass( 'current-panel' ) ) {
    12721274                                panel._animateChangeExpanded( function() {
     
    12831285
    12841286                                overlay.removeClass( 'in-themes-panel' );
    12851287                                section.removeClass( 'current-panel' );
     1288                                panel.$customizeSidebar.off( 'scroll.customize-themes-section' );
    12861289                        }
    12871290                },
    12881291