replace_search_box_label_with_placeholder.diff

Bernhard Rohloff, 2018-07-10 06:50

Download (1.56 KB)

View differences:

app/views/layouts/base.html.erb (Arbeitskopie)
80 80
        <label for='q'>
81 81
          <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
82 82
        </label>
83
        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
83
		<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :placeholder => l(:label_search), :accesskey => accesskey(:quick_search) %>
84 84
        <% end %>
85 85
        <%= render_project_jump_box %>
86 86
    </div>
public/stylesheets/application.css (Arbeitskopie)
32 32
#header h1 .breadcrumbs { display:block; font-size: .5em; font-weight: normal; }
33 33

  
34 34
#quick-search {float:right;}
35
#quick-search #q {width:130px; height:24px; box-sizing:border-box; vertical-align:middle; border:1px solid #ccc; border-radius:3px;}
35
#quick-search label { display:none; }
36
#quick-search #q {width:130px; height:24px; padding: 0 6px; box-sizing:border-box; vertical-align:middle; border:1px solid #ccc; border-radius:3px;}
36 37

  
37 38
#main-menu {position: absolute;  bottom: 0px;  left:6px; margin-right: -500px; width: 100%;}
38 39
#main-menu ul {margin: 0;  padding: 0; width: 100%; white-space: nowrap;}