Make WordPress Core

Changeset 40671


Ignore:
Timestamp:
05/15/2017 06:50:50 PM (8 years ago)
Author:
westonruter
Message:

Customize: Fix alignment of natural-width media buttons in site icon control.

Amends [40653].
Props afercia.
Fixes #40220.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r40653 r40671  
    711711}
    712712
     713/* Remove descender space. */
    713714.customize-control .thumbnail-image,
    714715.customize-control-header .current,
    715716.customize-control .wp-media-wrapper.wp-video {
    716717    line-height: 0;
     718}
     719
     720/* Remove descender space. */
     721.customize-control-site_icon .favicon-preview .browser-preview {
     722    vertical-align: top;
    717723}
    718724
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r39145 r40671  
    205205                <?php if ( current_user_can( 'upload_files' ) ): ?>
    206206                <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
    207                 <button type="button" class="button new" id="header_image-button"  aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
    208                 <div style="clear:both"></div>
     207                <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
    209208                <?php endif; ?>
    210209            </div>
  • trunk/src/wp-includes/customize/class-wp-customize-media-control.php

    r37426 r40671  
    193193                    <button type="button" class="button remove-button">{{ data.button_labels.remove }}</button>
    194194                    <button type="button" class="button upload-button control-focus" id="{{ data.settings['default'] }}-button">{{ data.button_labels.change }}</button>
    195                     <div style="clear:both"></div>
    196195                    <# } #>
    197196                </div>
     
    209208                    <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button">{{ data.button_labels.select }}</button>
    210209                    <# } #>
    211                     <div style="clear:both"></div>
    212210                </div>
    213211            </div>
  • trunk/src/wp-includes/customize/class-wp-customize-site-icon-control.php

    r40314 r40671  
    6363            <div class="attachment-media-view">
    6464                <# if ( data.attachment.sizes ) { #>
    65                     <div class="site-icon-preview">
     65                    <div class="site-icon-preview wp-clearfix">
    6666                        <div class="favicon-preview">
    6767                            <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
     
    7979                        <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
    8080                        <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button>
    81                         <div style="clear:both"></div>
    8281                    <# } #>
    8382                </div>
     
    9594                        <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button>
    9695                    <# } #>
    97                     <div style="clear:both"></div>
    9896                </div>
    9997            </div>
Note: See TracChangeset for help on using the changeset viewer.