Patch #29216 » 0001-Compact-search-input.patch
| app/views/layouts/base.html.erb | ||
|---|---|---|
|
<div class="flyout-menu__search">
|
||
|
<%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
||
|
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
||
|
<%= label_tag 'flyout-search', '⚲'.html_safe, :class => 'search-magnifier search-magnifier--flyout' %>
|
||
|
<%= text_field_tag 'q', @question, :id => 'flyout-search', :class => 'small js-search-input', :placeholder => l(:label_search) %>
|
||
|
<%= label_tag 'flyout-search', '⚲'.html_safe, :class => 'icon-search-magnifier search-magnifier--flyout' %>
|
||
|
<%= search_field_tag 'q', @question, :id => 'flyout-search', :class => 'small js-search-input', :placeholder => l(:label_search) %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<% end %>
|
||
| ... | ... | |
|
<%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
||
|
<%= hidden_field_tag 'scope', default_search_project_scope, :id => nil %>
|
||
|
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
||
|
<label for='q'>
|
||
|
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project, :scope => default_search_project_scope}, :accesskey => accesskey(:search) %>:
|
||
|
</label>
|
||
|
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search),
|
||
|
<%= link_to '⚲'.html_safe, {:controller => 'search', :action => 'index', :id => @project, :scope => default_search_project_scope}, :accesskey => accesskey(:search), :class => 'icon-search-magnifier search-magnifier', :title => l(:label_search) %>
|
||
|
<%= search_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search),
|
||
|
:placeholder => l(:label_search),
|
||
|
:data => {
|
||
|
:auto_complete => true,
|
||
|
:issues_url => auto_complete_issues_path(:q => '')
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
#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 #q {width: 130px; height: 24px; box-sizing: border-box; vertical-align: middle; border: 1px solid #ccc; border-radius:3px; padding-left: 27px; font-size: 12px;}
|
||
|
#quick-search > form {position: relative;}
|
||
|
#quick-search .search-magnifier {
|
||
|
z-index: 1;
|
||
|
position: absolute;
|
||
|
left: 5px;
|
||
|
top: -10px;
|
||
|
font-size: 25px;
|
||
|
}
|
||
|
#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;}
|
||
|
#main-menu li {
|
||
| ... | ... | |
|
.contextual>*:not(:first-child), .buttons>.icon:not(:first-child), .contextual .journal-actions>*:not(:first-child) { margin-left: 5px; }
|
||
|
/* search magnifier icon */
|
||
|
.icon-search-magnifier {
|
||
|
font-family: Verdana !important;
|
||
|
color: #bbb !important;
|
||
|
text-decoration: none !important;
|
||
|
cursor: pointer;
|
||
|
-webkit-transform: rotate(-45deg);
|
||
|
-moz-transform: rotate(45deg);
|
||
|
-o-transform: rotate(45deg);
|
||
|
}
|
||
|
img.gravatar {
|
||
|
vertical-align: middle;
|
||
|
border-radius: 20%;
|
||
| public/stylesheets/responsive.css | ||
|---|---|---|
|
content: '\2261';
|
||
|
}
|
||
|
/* search magnifier icon */
|
||
|
.search-magnifier {
|
||
|
font-family: Verdana;
|
||
|
color: #bbb;
|
||
|
cursor: pointer;
|
||
|
-webkit-transform: rotate(-45deg);
|
||
|
-moz-transform: rotate(45deg);
|
||
|
-o-transform: rotate(45deg);
|
||
|
}
|
||
|
.search-magnifier--flyout {
|
||
|
font-size: 25px;
|
||
|
line-height: 54px;
|
||
| ... | ... | |
|
padding-right: 8px;
|
||
|
}
|
||
|
.flyout-menu__search input[type='text'] {
|
||
|
.flyout-menu__search input[type='text'], .flyout-menu__search input[type='search'] {
|
||
|
line-height: 2;
|
||
|
width: 100%;
|
||