Make WordPress Core

Changeset 24524


Ignore:
Timestamp:
06/27/2013 08:45:12 PM (11 years ago)
Author:
nacin
Message:

Improve the HTML classes for the new html5 format in get_search_form().

Update Twenty Thirteen to reflect the changes.

props obenland.
fixes #23850.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/style.css

    r24516 r24524  
    917917}
    918918
    919 .site-header .searchform {
     919.site-header .search-form {
    920920    position: absolute;
    921921    right: 20px;
     
    923923}
    924924
    925 .site-header .searchform [type="search"],
    926 .site-header .searchform [type="text"] {
     925.site-header .search-field {
    927926    background-color: transparent;
    928927    background-image: url(images/search-icon.png);
     
    941940}
    942941
    943 .site-header .searchform [type="search"]:focus,
    944 .site-header .searchform [type="text"]:focus {
     942.site-header .search-field:focus {
    945943    background-color: #fff;
    946944    border: 2px solid #c3c0ab;
     
    25212519
    25222520/* Search widget */
    2523 .searchform [type="submit"] {
     2521.search-form .search-submit {
    25242522    display: none;
    2525 }
    2526 
    2527 .widget .searchform [type="text"] {
    2528     width: 100%;
    25292523}
    25302524
     
    30993093    (min-resolution: 120dpi) {
    31003094
    3101     .site-header .searchform [type="search"],
    3102     .site-header .searchform [type="text"] {
     3095    .site-header .search-field {
    31033096        background-image: url(images/search-icon-2x.png);
    31043097    }
  • trunk/wp-includes/general-template.php

    r24417 r24524  
    166166    } else {
    167167        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 &hellip;', '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 &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" />
    171172                </label>
    172                 <input type="submit" class="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
     173                <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
    173174            </form>';
    174175        } else {
Note: See TracChangeset for help on using the changeset viewer.