1
- < style >
2
- input [type = text ] {
1
+ < head >
2
+ < style >
3
+ .search-bar {
4
+ display : flex;
5
+ align-items : center;
6
+ background-color : # fff ;
7
+ border : 1px solid # ccc ;
8
+ border-radius : 20px ;
9
+ padding : 4px ;
10
+ width : 50vw ;
11
+ }
12
+
13
+ .search-bar : focus-within {
14
+ border : 2.5px solid rgba (47 , 135 , 223 , 0.7 );
15
+ }
16
+
17
+ .search-bar i .fas {
18
+ margin-right : 10px ;
19
+ }
20
+
21
+ .td-search-input {
22
+ font-family : 'Your Preferred Font' , sans-serif;
23
+ }
24
+
25
+ .search-input {
26
+ flex : 1 ;
3
27
box-sizing : border-box;
4
- background-color : white;
5
- background-image : url ('https://www.w3schools.com/css/searchicon.png' );
6
- background-position : 10px 10px ;
7
- background-repeat : no-repeat;
8
- padding : 12px 20px 12px 40px ;
28
+ border : none;
29
+ outline : none;
30
+ padding : 8px ;
31
+ font-size : 16px ;
32
+ border-radius : 15px ;
33
+ }
34
+
35
+ /* Adjust the placeholder font style */
36
+ .search-input ::placeholder {
37
+ font-style : normal;
38
+ font-weight : normal;
39
+ font-size : 16px ;
40
+ color : # aaa ;
9
41
}
10
42
</ style >
43
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css ">
44
+ </ head >
11
45
12
- {{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
13
- < input
14
- type ="text "
15
- class ="form-control td-search-input "
16
- placeholder =" {{ T "ui_search_placeholder " }}"
17
- aria-label="{{ T "ui_search_placeholder " }}"
18
- autocomplete="off "
19
- >
20
- {{ else if .Site.Params.offlineSearch }}
21
- < div id ="search-nav-container ">
46
+ < body >
47
+ {{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
48
+ < div class ="search-bar ">
49
+ < i class ="fas fa-search "> </ i >
50
+ < input
51
+ type ="search "
52
+ class ="search-input td-search-input "
53
+ placeholder ="{{ T "ui_search_placeholder " }}"
54
+ aria-label="{{ T "ui_search_placeholder " }}"
55
+ autocomplete="off "
56
+ >
57
+ </ div >
58
+ {{ else if .Site.Params.offlineSearch }}
59
+ < div class ="search-bar " id ="search-nav-container ">
60
+ < i class ="fas fa-search "> </ i >
22
61
< input
23
- type ="text "
62
+ type ="search "
63
+ class ="search-input td-search-input "
24
64
id ="search-input "
65
+ placeholder ="{{ T "ui_search_placeholder " }}"
66
+ aria-label="{{ T "ui_search_placeholder " }}"
25
67
autocomplete="off "
26
- class ="form-control td-search-input "
27
- placeholder =" {{ T "ui_search_placeholder " }}"
68
+ >
69
+ </ div >
70
+ {{ else if .Site.Params.k8s_search }}
71
+ < div class ="search-bar ">
72
+ < i class ="fas fa-search "> </ i >
73
+ < input
74
+ type ="search "
75
+ name ="q "
76
+ class ="search-input td-search-input "
77
+ placeholder ="{{ T "ui_search_placeholder " }}"
78
+ aria-label="{{ T "ui_search_placeholder " }}"
28
79
autocomplete="off "
29
80
>
30
- < div id ="search-results " class ="container "> </ div >
31
81
</ div >
32
- {{ else if .Site.Params.k8s_search }}
33
- < input
34
- type ="text "
35
- class ="form-control td-search-input "
36
- name ="q "
37
- placeholder =" {{ T "ui_search_placeholder " }}"
38
- aria-label="{{ T "ui_search_placeholder " }}"
39
- autocomplete="off "
40
- >
41
- {{ end }}
82
+ {{ end }}
83
+ </ body >
0 commit comments