Changeset 24524
- Timestamp:
- 06/27/2013 08:45:12 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/style.css
r24516 r24524 917 917 } 918 918 919 .site-header .search form {919 .site-header .search-form { 920 920 position: absolute; 921 921 right: 20px; … … 923 923 } 924 924 925 .site-header .searchform [type="search"], 926 .site-header .searchform [type="text"] { 925 .site-header .search-field { 927 926 background-color: transparent; 928 927 background-image: url(images/search-icon.png); … … 941 940 } 942 941 943 .site-header .searchform [type="search"]:focus, 944 .site-header .searchform [type="text"]:focus { 942 .site-header .search-field:focus { 945 943 background-color: #fff; 946 944 border: 2px solid #c3c0ab; … … 2521 2519 2522 2520 /* Search widget */ 2523 .search form [type="submit"]{2521 .search-form .search-submit { 2524 2522 display: none; 2525 }2526 2527 .widget .searchform [type="text"] {2528 width: 100%;2529 2523 } 2530 2524 … … 3099 3093 (min-resolution: 120dpi) { 3100 3094 3101 .site-header .searchform [type="search"], 3102 .site-header .searchform [type="text"] { 3095 .site-header .search-field { 3103 3096 background-image: url(images/search-icon-2x.png); 3104 3097 } -
trunk/wp-includes/general-template.php
r24417 r24524 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 {
Note: See TracChangeset
for help on using the changeset viewer.