Patch #29216 » replace_search_box_label_with_placeholder.diff
| app/views/layouts/base.html.erb (Arbeitskopie) | ||
|---|---|---|
|
<label for='q'>
|
||
|
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
||
|
</label>
|
||
|
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
|
||
|
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :placeholder => l(:label_search), :accesskey => accesskey(:quick_search) %>
|
||
|
<% end %>
|
||
|
<%= render_project_jump_box %>
|
||
|
</div>
|
||
| public/stylesheets/application.css (Arbeitskopie) | ||
|---|---|---|
|
#header h1 .breadcrumbs { display:block; font-size: .5em; font-weight: normal; }
|
||
|
#quick-search {float:right;}
|
||
|
#quick-search #q {width:130px; height:24px; box-sizing:border-box; vertical-align:middle; border:1px solid #ccc; border-radius:3px;}
|
||
|
#quick-search label { display:none; }
|
||
|
#quick-search #q {width:130px; height:24px; padding: 0 6px; box-sizing:border-box; vertical-align:middle; border:1px solid #ccc; border-radius:3px;}
|
||
|
#main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px; width: 100%;}
|
||
|
#main-menu ul {margin: 0; padding: 0; width: 100%; white-space: nowrap;}
|
||