correct html5 search box

This commit is contained in:
danielvincent 2010-10-15 15:29:57 -07:00
parent 3b01e86f90
commit 47be7b1f0a
2 changed files with 8 additions and 2 deletions

View file

@ -47,8 +47,7 @@
%ul %ul
%li#global_search %li#global_search
= form_tag(people_path, :method => 'get') do = form_tag(people_path, :method => 'get') do
%label{:for => 'q'} Search = text_field_tag 'q', nil, :placeholder => "Search", :type => 'search', :results => 5
= text_field_tag 'q'
%li= link_to current_user.real_name, current_user.person %li= link_to current_user.real_name, current_user.person
%li= link_to "settings", edit_user_path(current_user) %li= link_to "settings", edit_user_path(current_user)

View file

@ -542,6 +542,7 @@ li.message .from .destroy_link
input[type='text'], input[type='text'],
input[type='password'], input[type='password'],
input[type="search"],
textarea textarea
:font :font
:family 'Arial', 'Helvetica', sans-serif :family 'Arial', 'Helvetica', sans-serif
@ -1019,3 +1020,9 @@ ul#settings_nav
:size 80px :size 80px
:display inline-block :display inline-block
input[type="search"]
:-webkit-appearance textfield
header
input[type="search"]
:width 200px