Make WordPress Core

Ticket #15355: garyc40.15355.2.diff

File garyc40.15355.2.diff, 2.7 KB (added by garyc40, 13 years ago)

correct search box padding when X button is displayed

  • wp-admin/css/colors-classic.dev.css

    diff --git wp-admin/css/colors-classic.dev.css wp-admin/css/colors-classic.dev.css
    index 26cb708..39abbd2 100644
    table.widefat span.spam a, 
    675675}
    676676
    677677.tagchecklist span a,
    678 #bulk-titles div a {
     678#bulk-titles div a,
     679#clear-search {
    679680        background: url(../images/xit.gif) no-repeat;
    680681}
    681682
    682683.tagchecklist span a:hover,
    683 #bulk-titles div a:hover {
     684#bulk-titles div a:hover,
     685#clear-search:hover {
    684686        background: url(../images/xit.gif) no-repeat -10px 0;
    685687}
    686688
  • wp-admin/css/colors-fresh.dev.css

    diff --git wp-admin/css/colors-fresh.dev.css wp-admin/css/colors-fresh.dev.css
    index 6325917..feac81d 100644
    table.widefat span.spam a, 
    675675}
    676676
    677677.tagchecklist span a,
    678 #bulk-titles div a {
     678#bulk-titles div a,
     679#clear-search {
    679680        background: url(../images/xit.gif) no-repeat;
    680681}
    681682
    682683.tagchecklist span a:hover,
    683 #bulk-titles div a:hover {
     684#bulk-titles div a:hover,
     685#clear-search:hover {
    684686        background: url(../images/xit.gif) no-repeat -10px 0;
    685687}
    686688
  • wp-admin/css/wp-admin.dev.css

    diff --git wp-admin/css/wp-admin.dev.css wp-admin/css/wp-admin.dev.css
    index ce194eb..73d4f32 100644
    p.search-box { 
    270270        margin: -5px 0 0;
    271271}
    272272
     273p.search-box span {
     274        display:inline-block;
     275        position:relative;
     276}
     277
     278#clear-search {
     279        display:none;
     280        height:10px;
     281        width:10px;
     282        text-decoration:none;
     283        position:absolute;
     284        right:5px;
     285        top:7px;
     286        text-indent:-999em;
     287}
     288
     289.searching #clear-search {
     290        display:block;
     291}
     292
     293.searching input {
     294        padding-right:17px;
     295}
     296
    273297
    274298/*------------------------------------------------------------------------------
    275299  3.0 - Actions
  • wp-admin/includes/class-wp-list-table.php

    diff --git wp-admin/includes/class-wp-list-table.php wp-admin/includes/class-wp-list-table.php
    index 13a688c..4480e62 100644
    class WP_List_Table { 
    195195                        return;
    196196
    197197                $input_id = $input_id . '-search-input';
    198 
    199198?>
    200199<p class="search-box">
    201200        <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
    202         <input type="text" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
     201        <span<?php echo is_search() ? ' class="searching"' : ''; ?>>
     202                <input type="text" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
     203                <a id="clear-search" title="<?php _e( 'Clear search results' ); ?>" class="ntdelbutton" href="<?php echo remove_query_arg( array( 's', 'action', 'action2' ) ); ?>">X</a>
     204        </span>
    203205        <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
    204206</p>
    205207<?php