From 3b2d34d86b75ec6acafcfa32ead9dd45e7d012a4 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 12 Apr 2024 01:12:59 +0300 Subject: [PATCH] Set search input z-index with Bootstrap utility class z-index here keeps "Where is this?" above the input when the input is focused. --- app/assets/stylesheets/common.scss | 4 ---- app/views/layouts/_search.html.erb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 1ccdc7871..42046c0a6 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -815,10 +815,6 @@ tr.turn:hover { } .search_form { - #query { - z-index: 0; - } - .describe_location { font-size: 10px; } diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index c7939aa01..5d612dd78 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -3,7 +3,7 @@
- <%= 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" %>
<%= 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") %>
-- 2.39.5