Make WordPress Core

Ticket #25095: 25095.diff

File 25095.diff, 2.2 KB (added by obenland, 13 years ago)
  • wp-content/themes/twentyfourteen/searchform.php

     
    1 <?php
    2 /**
    3  * The template for displaying search forms in Twenty Fourteen
    4  *
    5  * @package WordPress
    6  * @subpackage Twenty_Fourteen
    7  */
    8 ?>
    9 <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    10         <label>
    11                 <span class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'twentyfourteen' ); ?></span>
    12                 <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentyfourteen' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php _ex( 'Search for:', 'label', 'twentyfourteen' ); ?>">
    13         </label>
    14         <input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentyfourteen' ); ?>">
    15 </form>
  • wp-content/themes/twentyfourteen/style.css

     
    381381}
    382382input[type="text"],
    383383input[type="email"],
     384input[type="search"],
    384385input[type="password"],
    385386textarea {
    386387        border: 1px solid rgba(0, 0, 0, 0.1);
     
    391392}
    392393input[type="text"]:focus,
    393394input[type="email"]:focus,
     395input[type="search"]:focus,
     396input[type="password"]:focus,
    394397textarea:focus {
    395398        color: #2b2b2b;
    396399}
    397400input[type="text"],
    398401input[type="email"],
     402input[type="search"],
    399403input[type="password"] {
    400404        padding: 8px 10px;
    401405        padding: 0.8rem 1.0rem;
     
    20932097}
    20942098.widget-area input[type="text"],
    20952099.widget-area input[type="email"],
     2100.widget-area input[type="search"],
    20962101.widget-area input[type="password"],
    20972102.widget-area textarea {
    20982103        background-color: #2b2b2b;
     
    22532258}
    22542259.content-sidebar input[type="text"],
    22552260.content-sidebar input[type="email"],
     2261.content-sidebar input[type="search"],
    22562262.content-sidebar input[type="password"],
    22572263.content-sidebar textarea {
    22582264        background-color: #fff;