Make WordPress Core

Ticket #37980: 37980.3.diff

File 37980.3.diff, 1.6 KB (added by kkoppenhaver, 8 years ago)
  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index 5118b60..c424c5e 100644
    h3.customize-section-title { 
    365365        display: block;
    366366}
    367367
    368 .panel-meta.customize-info .accordion-section-title {
     368#customize-controls .panel-meta.customize-info .accordion-section-title {
    369369        margin-left: 48px;
     370        border-left: none;
    370371}
    371372
    372 #customize-controls .panel-meta.customize-info .accordion-section-title:hover {
     373#customize-controls .panel-meta.customize-info .accordion-section-title:hover,
     374#customize-controls .cannot-expand:hover .accordion-section-title,
     375#customize-controls .cannot-expand:focus .accordion-section-title,
     376#customize-controls .cannot-expand .accordion-section-title:hover,
     377#customize-controls .cannot-expand .accordion-section-title:focus {
    373378        background: #fff;
    374379        color: #555;
    375         border-left: none;
     380        border-left-color: #fff;
    376381}
    377382
    378383.customize-controls-close:focus,
  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 7078cfd..e042974 100644
     
    614614                attachEvents: function () {
    615615                        var section = this;
    616616
     617                        if ( section.container.hasClass( 'cannot-expand' ) ) {
     618                                return;
     619                        }
     620
    617621                        // Expand/Collapse accordion sections on click.
    618622                        section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) {
    619623                                if ( api.utils.isKeydownButNotEnterEvent( event ) ) {