Make WordPress Core


Ignore:
Timestamp:
01/14/2015 10:13:03 PM (9 years ago)
Author:
helen
Message:

List tables: Use CSS :nth-child() selectors for zebra striping.

Note that this does not fix issues related to comment quick edit. Internal linking also continues to use the .alternate class for now. IE8 and below gracefully degrade by not having zebra striping.

There is some hoop jumping with adding an extra table row to maintain zebra striping during quick edit. Documenting that here for future reference; it is also in the inline documentation.

fixes #30981 and #26060. see #25060.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/import.php

    r27469 r31181  
    7777    uasort( $importers, '_usort_by_first_member' );
    7878?>
    79 <table class="widefat importers">
     79<table class="widefat importers striped">
    8080
    8181<?php
    82     $alt = '';
    8382    foreach ($importers as $importer_id => $data) {
    8483        $action = '';
     
    109108        }
    110109
    111         $alt = $alt ? '' : ' class="alternate"';
    112110        echo "
    113             <tr$alt>
     111            <tr>
    114112                <td class='import-system row-title'>$action</td>
    115113                <td class='desc'>{$data[1]}</td>
Note: See TracChangeset for help on using the changeset viewer.