Ticket #16539: rwi_searchidtoclass.diff
File rwi_searchidtoclass.diff, 5.0 KB (added by , 14 years ago) |
---|
-
wp-includes/general-template.php
157 157 return; 158 158 } 159 159 160 $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >160 $form = '<form role="search" method="get" class="searchform" action="' . home_url( '/' ) . '" > 161 161 <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> 162 162 <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') .'" /> 164 164 </div> 165 165 </form>'; 166 166 -
wp-content/themes/twentyeleven/searchform.php
7 7 * @since Twenty Eleven 1.0 8 8 */ 9 9 ?> 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( '/' ) ); ?>"> 11 11 <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label> 12 12 <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' ); ?>" /> 14 14 </form> -
wp-content/themes/twentyeleven/style.css
278 278 width: auto; 279 279 } 280 280 /* Make sure the logo and search form don't collide */ 281 .one-column #branding #searchform {281 .one-column #branding .searchform { 282 282 right: 40px; 283 283 top: 4em; 284 284 } … … 462 462 line-height: 1.2em; 463 463 padding: 4px 10px 4px 28px; 464 464 } 465 input #searchsubmit {465 input.searchsubmit { 466 466 display: none; 467 467 } 468 468 … … 620 620 } 621 621 622 622 /* Search Form */ 623 #branding #searchform {623 #branding .searchform { 624 624 position: absolute; 625 625 top: 3.8em; 626 626 right: 7.6%; 627 627 text-align: right; 628 628 } 629 #branding #searchform div {629 #branding .searchform div { 630 630 margin: 0; 631 631 } 632 632 #branding #s { … … 646 646 background-color: #f9f9f9; 647 647 width: 196px; 648 648 } 649 #branding #searchsubmit {649 #branding .searchsubmit { 650 650 display: none; 651 651 } 652 #branding .only-search #searchform {652 #branding .only-search .searchform { 653 653 top: 5px; 654 654 z-index: 1; 655 655 } … … 665 665 #branding .only-search #s:focus { 666 666 background-color: #bbb; 667 667 } 668 #branding .with-image #searchform {668 #branding .with-image .searchform { 669 669 top: auto; 670 670 bottom: -27px; 671 671 } … … 1276 1276 /* =error404 1277 1277 ----------------------------------------------- */ 1278 1278 1279 .error404 #main #searchform {1279 .error404 #main .searchform { 1280 1280 background: #f9f9f9; 1281 1281 border: 1px solid #ddd; 1282 1282 border-width: 1px 0; … … 1761 1761 .widget_search #s { 1762 1762 width: 77%; 1763 1763 } 1764 .widget_search #searchsubmit {1764 .widget_search .searchsubmit { 1765 1765 background: #ddd; 1766 1766 border: 1px solid #ccc; 1767 1767 -webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); … … 1773 1773 position: relative; 1774 1774 top: -2px; 1775 1775 } 1776 .widget_search #searchsubmit:active {1776 .widget_search .searchsubmit:active { 1777 1777 background: #1982d1; 1778 1778 border-color: #0861a5; 1779 1779 -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); … … 2398 2398 margin-right: 0; 2399 2399 } 2400 2400 /* Make sure the logo and search form don't collide */ 2401 #branding #searchform {2401 #branding .searchform { 2402 2402 top: 1.625em !important; 2403 2403 } 2404 2404 /* Floated content doesn't work well at this size */ … … 2512 2512 #site-description { 2513 2513 font-size: 10pt; 2514 2514 } 2515 #branding #searchform {2515 #branding .searchform { 2516 2516 display: none; 2517 2517 } 2518 2518 #branding img { -
wp-content/themes/twentyeleven/colors/dark.css
253 253 254 254 /* =error404 255 255 ----------------------------------------------- */ 256 .error404 #main #searchform {256 .error404 #main .searchform { 257 257 background: #060606; 258 258 border-color: #222; 259 259 } … … 406 406 } 407 407 408 408 /* Search Widget */ 409 .widget_search #searchsubmit {409 .widget_search .searchsubmit { 410 410 background: #222; 411 411 border-color: #333; 412 412 -webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); … … 414 414 box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09); 415 415 color: #777; 416 416 } 417 .widget_search #searchsubmit:active {417 .widget_search .searchsubmit:active { 418 418 -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); 419 419 -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1); 420 420 box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);