WordPress.org

Make WordPress Core

Ticket #16539: rwi_searchidtoclass.diff

File rwi_searchidtoclass.diff, 5.0 KB (added by ryanimel, 4 years ago)
  • wp-includes/general-template.php

     
    157157                return; 
    158158        } 
    159159 
    160         $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" > 
     160        $form = '<form role="search" method="get" class="searchform" action="' . home_url( '/' ) . '" > 
    161161        <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> 
    162162        <input type="text" value="' . get_search_query() . '" name="s" id="s" /> 
    163         <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> 
     163        <input type="submit" class="searchsubmit" value="'. esc_attr__('Search') .'" /> 
    164164        </div> 
    165165        </form>'; 
    166166 
  • wp-content/themes/twentyeleven/searchform.php

     
    77 * @since Twenty Eleven 1.0 
    88 */ 
    99?> 
    10         <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 
     10        <form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 
    1111                <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label> 
    1212                <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> 
    13                 <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> 
     13                <input type="submit" class="submit searchsubmit" name="submit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> 
    1414        </form> 
  • wp-content/themes/twentyeleven/style.css

     
    278278        width: auto; 
    279279} 
    280280/* Make sure the logo and search form don't collide */ 
    281 .one-column #branding #searchform { 
     281.one-column #branding .searchform { 
    282282        right: 40px; 
    283283        top: 4em; 
    284284} 
     
    462462        line-height: 1.2em; 
    463463        padding: 4px 10px 4px 28px; 
    464464} 
    465 input#searchsubmit { 
     465input.searchsubmit { 
    466466        display: none; 
    467467} 
    468468 
     
    620620} 
    621621 
    622622/* Search Form */ 
    623 #branding #searchform { 
     623#branding .searchform { 
    624624        position: absolute; 
    625625        top: 3.8em; 
    626626        right: 7.6%; 
    627627        text-align: right; 
    628628} 
    629 #branding #searchform div { 
     629#branding .searchform div { 
    630630        margin: 0; 
    631631} 
    632632#branding #s { 
     
    646646        background-color: #f9f9f9; 
    647647        width: 196px; 
    648648} 
    649 #branding #searchsubmit { 
     649#branding .searchsubmit { 
    650650        display: none; 
    651651} 
    652 #branding .only-search #searchform { 
     652#branding .only-search .searchform { 
    653653        top: 5px; 
    654654        z-index: 1; 
    655655} 
     
    665665#branding .only-search #s:focus { 
    666666        background-color: #bbb; 
    667667} 
    668 #branding .with-image #searchform { 
     668#branding .with-image .searchform { 
    669669        top: auto; 
    670670        bottom: -27px; 
    671671} 
     
    12761276/* =error404 
    12771277----------------------------------------------- */ 
    12781278 
    1279 .error404 #main #searchform { 
     1279.error404 #main .searchform { 
    12801280        background: #f9f9f9; 
    12811281        border: 1px solid #ddd; 
    12821282        border-width: 1px 0; 
     
    17611761.widget_search #s { 
    17621762        width: 77%; 
    17631763} 
    1764 .widget_search #searchsubmit { 
     1764.widget_search .searchsubmit { 
    17651765        background: #ddd; 
    17661766        border: 1px solid #ccc; 
    17671767        -webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); 
     
    17731773        position: relative; 
    17741774        top: -2px; 
    17751775} 
    1776 .widget_search #searchsubmit:active { 
     1776.widget_search .searchsubmit:active { 
    17771777        background: #1982d1; 
    17781778        border-color: #0861a5; 
    17791779        -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); 
     
    23982398                margin-right: 0; 
    23992399        } 
    24002400        /* Make sure the logo and search form don't collide */ 
    2401         #branding #searchform { 
     2401        #branding .searchform { 
    24022402                top: 1.625em !important; 
    24032403        } 
    24042404        /* Floated content doesn't work well at this size */ 
     
    25122512        #site-description { 
    25132513                font-size: 10pt; 
    25142514        } 
    2515         #branding #searchform { 
     2515        #branding .searchform { 
    25162516                display: none; 
    25172517        } 
    25182518        #branding img { 
  • wp-content/themes/twentyeleven/colors/dark.css

     
    253253 
    254254/* =error404 
    255255----------------------------------------------- */ 
    256 .error404 #main #searchform { 
     256.error404 #main .searchform { 
    257257        background: #060606; 
    258258        border-color: #222; 
    259259} 
     
    406406} 
    407407 
    408408/* Search Widget */ 
    409 .widget_search #searchsubmit { 
     409.widget_search .searchsubmit { 
    410410        background: #222; 
    411411        border-color: #333; 
    412412        -webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); 
     
    414414        box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); 
    415415        color: #777; 
    416416} 
    417 .widget_search #searchsubmit:active { 
     417.widget_search .searchsubmit:active { 
    418418        -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); 
    419419        -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); 
    420420        box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);