Ticket #23850: 23850-search-form-classes.patch
File 23850-search-form-classes.patch, 2.8 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/style.css
937 937 width: 100%; 938 938 } 939 939 940 .site-header .search form {940 .site-header .search-form { 941 941 position: absolute; 942 942 right: 20px; 943 943 top: 1px; 944 944 } 945 945 946 .site-header .searchform [type="search"], 947 .site-header .searchform [type="text"] { 946 .site-header .search-field { 948 947 background-color: transparent; 949 948 background-image: url(images/search-icon.png); 950 949 background-position: 5px center; … … 961 960 width: 0; 962 961 } 963 962 964 .site-header .searchform [type="search"]:focus, 965 .site-header .searchform [type="text"]:focus { 963 .site-header .search-field:focus { 966 964 background-color: #fff; 967 965 border: 2px solid #c3c0ab; 968 966 cursor: text; … … 2541 2539 } 2542 2540 2543 2541 /* Search widget */ 2544 .search form [type="submit"]{2542 .search-form .search-submit { 2545 2543 display: none; 2546 2544 } 2547 2545 2548 .widget .searchform [type="text"] {2549 width: 100%;2550 }2551 2552 2546 /* RSS Widget */ 2553 2547 .widget_rss .rss-date { 2554 2548 display: block; … … 3121 3115 (-webkit-min-device-pixel-ratio: 1.25), 3122 3116 (min-resolution: 120dpi) { 3123 3117 3124 .site-header .searchform [type="search"], 3125 .site-header .searchform [type="text"] { 3118 .site-header .search-field { 3126 3119 background-image: url(images/search-icon-2x.png); 3127 3120 } 3128 3121 -
wp-includes/general-template.php
165 165 $form = ob_get_clean(); 166 166 } else { 167 167 if ( 'html5' == $format ) { 168 $form = '<form role="search" method="get" class="searchform" action="' . esc_url( home_url( '/' ) ) . '"> 169 <label><span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span> 170 <input type="search" placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" /> 168 $form = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '"> 169 <label> 170 <span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span> 171 <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" /> 171 172 </label> 172 <input type="submit" class="search submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />173 <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> 173 174 </form>'; 174 175 } else { 175 176 $form = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url( home_url( '/' ) ) . '">