Make WordPress Core

Changeset 36422


Ignore:
Timestamp:
01/30/2016 01:45:37 PM (9 years ago)
Author:
afercia
Message:

After [36171] remove all the occurrences of the old CSS clearfix.

The old clearfix was applied to very specific items and defined multiple times
across CSS files. Uses the new generic .wp-clearfix utility class instead.

See #26396.

Location:
trunk/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r36396 r36422  
    975975}
    976976
    977 .inline-edit-row fieldset .inline-edit-group:after {
    978     content: ".";
    979     display: block;
    980     height: 0;
    981     clear: both;
    982     visibility: hidden;
    983 }
    984 
    985977.inline-edit-row p.submit {
    986978    clear: both;
  • trunk/src/wp-admin/css/nav-menus.css

    r36396 r36422  
    748748}
    749749
    750 /* Clearfix */
    751 #menu-item-name-wrap:after,
    752 #menu-item-url-wrap:after,
    753 #menu-name-label:after,
    754 #menu-settings-column .inside:after,
    755 #nav-menus-frame:after,
    756 .nav-menus-php #post-body-content:after,
    757 .nav-menus-php .button-controls:after,
    758 .nav-menus-php .major-publishing-actions:after,
    759 .nav-menus-php .menu-item-settings:after {
    760     clear: both;
    761     content: ".";
    762     display: block;
    763     height: 0;
    764     visibility: hidden;
    765 }
    766 
    767750#nav-menus-frame,
    768751.button-controls,
  • trunk/src/wp-admin/css/themes.css

    r36396 r36422  
    525525}
    526526
    527 .theme-overlay .theme-wrap:after {
    528     content: ".";
    529     display: block;
    530     height: 0;
    531     clear: both;
    532     visibility: hidden;
    533 }
    534 
    535527body.folded .theme-overlay .theme-wrap {
    536528    left: 70px;
     
    545537    overflow: auto;
    546538    padding: 2% 4%;
    547 }
    548 .theme-overlay .theme-about:after {
    549     content: ".";
    550     display: block;
    551     height: 0;
    552     clear: both;
    553     visibility: hidden;
    554539}
    555540
  • trunk/src/wp-admin/css/widgets.css

    r36396 r36422  
    231231/* Widgets Right */
    232232
    233 div#widgets-right:after {
    234     content: ".";
    235     display: block;
    236     height: 0;
    237     clear: both;
    238     visibility: hidden;
    239 }
    240 
    241233div#widgets-right .sidebars-column-1,
    242234div#widgets-right .sidebars-column-2 {
  • trunk/src/wp-admin/customize.php

    r36388 r36422  
    128128        </div>
    129129
    130         <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
     130        <div id="widgets-right" class="wp-clearfix"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
    131131        <div class="wp-full-overlay-sidebar-content" tabindex="-1">
    132132            <div id="customize-info" class="accordion-section customize-info">
  • trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php

    r36095 r36422  
    151151            </div>
    152152
    153             <div class="menu-item-settings" id="menu-item-settings-<?php echo $item_id; ?>">
     153            <div class="menu-item-settings wp-clearfix" id="menu-item-settings-<?php echo $item_id; ?>">
    154154                <?php if ( 'custom' == $item->type ) : ?>
    155155                    <p class="field-url description description-wide">
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r36334 r36422  
    14061406    ?>
    14071407
    1408             <div class="inline-edit-group">
     1408            <div class="inline-edit-group wp-clearfix">
    14091409                <label class="alignleft">
    14101410                    <span class="title"><?php _e( 'Password' ); ?></span>
     
    15381538        if ( $bulk ) : ?>
    15391539
    1540             <div class="inline-edit-group">
     1540            <div class="inline-edit-group wp-clearfix">
    15411541        <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    15421542            <label class="alignleft">
     
    15621562    <?php else : // $bulk ?>
    15631563
    1564             <div class="inline-edit-group">
     1564            <div class="inline-edit-group wp-clearfix">
    15651565            <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    15661566                <label class="alignleft">
     
    15791579    endif; // post_type_supports comments or pings ?>
    15801580
    1581             <div class="inline-edit-group">
     1581            <div class="inline-edit-group wp-clearfix">
    15821582                <label class="inline-edit-status alignleft">
    15831583                    <span class="title"><?php _e( 'Status' ); ?></span>
  • trunk/src/wp-admin/includes/nav-menu.php

    r36379 r36422  
    264264    <div class="customlinkdiv" id="customlinkdiv">
    265265        <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />
    266         <p id="menu-item-url-wrap">
     266        <p id="menu-item-url-wrap" class="wp-clearfix">
    267267            <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
    268268            <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" class="code menu-item-textbox" value="http://" />
    269269        </p>
    270270
    271         <p id="menu-item-name-wrap">
     271        <p id="menu-item-name-wrap" class="wp-clearfix">
    272272            <label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>
    273273            <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" class="regular-text menu-item-textbox" />
    274274        </p>
    275275
    276         <p class="button-controls">
     276        <p class="button-controls wp-clearfix">
    277277            <span class="add-to-menu">
    278278                <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" />
     
    541541        </div><!-- /.tabs-panel -->
    542542
    543         <p class="button-controls">
     543        <p class="button-controls wp-clearfix">
    544544            <span class="list-controls">
    545545                <a href="<?php
     
    732732        </div><!-- /.tabs-panel -->
    733733
    734         <p class="button-controls">
     734        <p class="button-controls wp-clearfix">
    735735            <span class="list-controls">
    736736                <a href="<?php
  • trunk/src/wp-admin/includes/theme.php

    r36015 r36422  
    589589    <script type="text/html" id="tmpl-customize-themes-details-view">
    590590        <div class="theme-backdrop"></div>
    591         <div class="theme-wrap">
     591        <div class="theme-wrap wp-clearfix">
    592592            <div class="theme-header">
    593593                <button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
     
    595595                <button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
    596596            </div>
    597             <div class="theme-about">
     597            <div class="theme-about wp-clearfix">
    598598                <div class="theme-screenshots">
    599599                <# if ( data.screenshot[0] ) { #>
  • trunk/src/wp-admin/nav-menus.php

    r36419 r36422  
    648648                </tbody>
    649649            </table>
    650             <p class="button-controls"><?php submit_button( __( 'Save Changes' ), 'primary left', 'nav-menu-locations', false ); ?></p>
     650            <p class="button-controls wp-clearfix"><?php submit_button( __( 'Save Changes' ), 'primary left', 'nav-menu-locations', false ); ?></p>
    651651            <?php wp_nonce_field( 'save-menu-locations' ); ?>
    652652            <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
     
    715715    <?php endif; ?>
    716716    </div><!-- /manage-menus -->
    717     <div id="nav-menus-frame">
     717    <div id="nav-menus-frame" class="wp-clearfix">
    718718    <div id="menu-settings-column" class="metabox-holder<?php if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { echo ' metabox-holder-disabled'; } ?>">
    719719
     
    749749                    <input type="hidden" name="menu" id="menu" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
    750750                    <div id="nav-menu-header">
    751                         <div class="major-publishing-actions">
     751                        <div class="major-publishing-actions wp-clearfix">
    752752                            <label class="menu-name-label" for="menu-name"><?php _e( 'Menu Name' ); ?></label>
    753753                            <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox" <?php echo $menu_name_val . $menu_name_aria_desc; ?> />
     
    758758                    </div><!-- END .nav-menu-header -->
    759759                    <div id="post-body">
    760                         <div id="post-body-content">
     760                        <div id="post-body-content" class="wp-clearfix">
    761761                            <?php if ( ! $add_new_screen ) : ?>
    762762                            <h3><?php _e( 'Menu Structure' ); ?></h3>
     
    823823                    </div><!-- /#post-body -->
    824824                    <div id="nav-menu-footer">
    825                         <div class="major-publishing-actions">
     825                        <div class="major-publishing-actions wp-clearfix">
    826826                            <?php if ( 0 != $menu_count && ! $add_new_screen ) : ?>
    827827                            <span class="delete-action">
  • trunk/src/wp-admin/themes.php

    r36270 r36422  
    403403<script id="tmpl-theme-single" type="text/template">
    404404    <div class="theme-backdrop"></div>
    405     <div class="theme-wrap">
     405    <div class="theme-wrap wp-clearfix">
    406406        <div class="theme-header">
    407407            <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
     
    409409            <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
    410410        </div>
    411         <div class="theme-about">
     411        <div class="theme-about wp-clearfix">
    412412            <div class="theme-screenshots">
    413413            <# if ( data.screenshot[0] ) { #>
  • trunk/src/wp-admin/widgets.php

    r36368 r36422  
    456456    $split = ceil( $sidebars_count / 2 );
    457457} else {
    458     $single_sidebar_class = ' class="single-sidebar"';
     458    $single_sidebar_class = ' single-sidebar';
    459459}
    460460
    461461?>
    462462<div class="widget-liquid-right">
    463 <div id="widgets-right"<?php echo $single_sidebar_class; ?>>
     463<div id="widgets-right" class="wp-clearfix<?php echo $single_sidebar_class; ?>">
    464464<div class="sidebars-column-1">
    465465<?php
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r36414 r36422  
    760760                <div class="accordion-section-content customlinkdiv">
    761761                    <input type="hidden" value="custom" id="custom-menu-item-type" name="menu-item[-1][menu-item-type]" />
    762                     <p id="menu-item-url-wrap">
     762                    <p id="menu-item-url-wrap" class="wp-clearfix">
    763763                        <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
    764764                        <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="http://">
    765765                    </p>
    766                     <p id="menu-item-name-wrap">
     766                    <p id="menu-item-name-wrap" class="wp-clearfix">
    767767                        <label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>
    768768                        <input id="custom-menu-item-name" name="menu-item[-1][menu-item-title]" type="text" class="regular-text menu-item-textbox">
Note: See TracChangeset for help on using the changeset viewer.