WordPress.org

Make WordPress Core

Ticket #32843: 32843.4.diff

File 32843.4.diff, 2.3 KB (added by valendesigns, 6 years ago)

Move CSS

  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index 5e0eb68..4635efd 100644
    body { 
    227227        background: #fff;
    228228}
    229229
     230div.customize-section-description {
     231        margin-top: 22px;
     232}
     233
     234div.customize-section-description p:first-child {
     235        margin-top: 0;
     236}
     237
     238div.customize-section-description p:last-child {
     239        margin-bottom: 0;
     240}
     241
    230242#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
    231243        border-bottom: 1px solid #ddd;
    232244        padding: 12px 12px 12px 12px;
  • src/wp-admin/css/customize-nav-menus.css

    diff --git src/wp-admin/css/customize-nav-menus.css src/wp-admin/css/customize-nav-menus.css
    index 136f94e..53e1ff3 100644
     
    408408.menu-item-depth-11 > .menu-item-bar { margin-right: 220px; }
    409409
    410410/* Submenu left margin. */
    411 /* @todo menu-item-transport seems entirely unused. */
    412411.menu-item-depth-0  .menu-item-transport { margin-left: 0;      }
    413412.menu-item-depth-1  .menu-item-transport { margin-left: -20px;  }
    414413.menu-item-depth-3  .menu-item-transport { margin-left: -60px;  }
  • src/wp-admin/css/nav-menus.css

    diff --git src/wp-admin/css/nav-menus.css src/wp-admin/css/nav-menus.css
    index 142d598..2483113 100644
    li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar { 
    531531        margin-top: 13px;
    532532}
    533533
     534/* Hide the transport list when it's empty */
     535.menu-item .menu-item-transport:empty {
     536        display: none;
     537}
     538
    534539/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
    535540.menu-item-depth-0 { margin-left: 0px; }
    536541.menu-item-depth-1 { margin-left: 30px; }
  • src/wp-includes/class-wp-customize-section.php

    diff --git src/wp-includes/class-wp-customize-section.php src/wp-includes/class-wp-customize-section.php
    index d98d3bd..7f2d52c 100644
    class WP_Customize_Section { 
    363363                                                </h3>
    364364                                        </div>
    365365                                        <# if ( data.description ) { #>
    366                                                 <p class="description customize-section-description">{{{ data.description }}}</p>
     366                                                <div class="description customize-section-description">
     367                                                        {{{ data.description }}}
     368                                                </div>
    367369                                        <# } #>
    368370                                </li>
    369371                        </ul>