Fix search-icon when typing
This commit is contained in:
parent
0f285fd32d
commit
bee507b9f4
|
|
@ -1,29 +1,40 @@
|
|||
<style>
|
||||
input[type=text] {
|
||||
box-sizing: border-box;
|
||||
background-color: white;
|
||||
background-image: url('https://www.w3schools.com/css/searchicon.png');
|
||||
background-position: 10px 10px;
|
||||
background-repeat: no-repeat;
|
||||
padding: 12px 20px 12px 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
{{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
|
||||
<input
|
||||
type="search"
|
||||
type="text"
|
||||
class="form-control td-search-input"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
aria-label="{{ T "ui_search_placeholder" }}"
|
||||
autocomplete="off"
|
||||
>
|
||||
{{ else if .Site.Params.offlineSearch }}
|
||||
<div id="search-nav-container">
|
||||
<input
|
||||
type="search"
|
||||
type="text"
|
||||
id="search-input"
|
||||
autocomplete="off"
|
||||
class="form-control td-search-input"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
autocomplete="off"
|
||||
>
|
||||
<div id="search-results" class="container"></div>
|
||||
</div>
|
||||
{{ else if .Site.Params.k8s_search }}
|
||||
<input
|
||||
type="search"
|
||||
type="text"
|
||||
class="form-control td-search-input"
|
||||
name="q"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
placeholder=" {{ T "ui_search_placeholder" }}"
|
||||
aria-label="{{ T "ui_search_placeholder" }}"
|
||||
autocomplete="off"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue