Set search input z-index with Bootstrap utility class
z-index here keeps "Where is this?" above the input when the input is focused.
This commit is contained in:
parent
8bb126938f
commit
3b2d34d86b
2 changed files with 1 additions and 5 deletions
|
@ -815,10 +815,6 @@ tr.turn:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.search_form {
|
.search_form {
|
||||||
#query {
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.describe_location {
|
.describe_location {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="row gx-2 mx-0">
|
<div class="row gx-2 mx-0">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="input-group flex-nowrap">
|
<div class="input-group flex-nowrap">
|
||||||
<%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm", :dir => "auto" %>
|
<%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm z-0", :dir => "auto" %>
|
||||||
<div class="input-group-text border-start-0 p-0 position-relative">
|
<div class="input-group-text border-start-0 p-0 position-relative">
|
||||||
<%= button_tag t("site.search.where_am_i"), :type => "button", :class => "describe_location position-absolute end-0 me-1 btn btn-sm btn-outline-primary border-0 bg-transparent", :title => t("site.search.where_am_i_title") %>
|
<%= button_tag t("site.search.where_am_i"), :type => "button", :class => "describe_location position-absolute end-0 me-1 btn btn-sm btn-outline-primary border-0 bg-transparent", :title => t("site.search.where_am_i_title") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue