Commit dedbe4f 1 parent 326b0f1 commit dedbe4f Copy full SHA for dedbe4f
File tree 2 files changed +30
-4
lines changed
2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Search
2
-
3
- .td-search-input {
2
+ .td-search-wrapper {
3
+ position : relative ;
4
4
background : transparent ;
5
5
max-width : 90% ;
6
+ }
7
+
8
+ .td-search-wrapper .td-search-input {
9
+ width : 100% ;
10
+ text-indent : 1.25em ;
6
11
7
12
& .form-control :focus {
8
13
border-color : lighten ($primary , 60% );
14
19
border-radius : 1rem ;
15
20
}
16
21
17
- font-family : $font-family-base , $font-awesome-font-name ;
22
+ font-family : $font-family-base ;
23
+ }
24
+
25
+ .td-search-wrapper .fa {
26
+ // Make this consistent with placeholder formatting.
27
+ color : $input-placeholder-color ;
28
+
29
+ // Vertically center the content.
30
+ display : flex ;
31
+ justify-content : center ;
32
+ align-items :center ;
33
+ height : 100% ;
34
+
35
+ // Position this on the left of the input.
36
+ position : absolute ;
37
+ left : 0.75em ;
38
+
39
+ // Click-through to the underlying input.
40
+ pointer-events : none ;
18
41
}
19
42
20
43
.popover.offline-search-result {
Original file line number Diff line number Diff line change 1
1
{{ if .Site.Params.gcs_engine_id -}}
2
- < input type ="search " class ="form-control td-search-input " placeholder =" {{ T "ui_search " }}" aria-label="{{ T "ui_search " }}" autocomplete="off ">
2
+ < div class ="td-search-wrapper ">
3
+ < i class ="fa fa-search "> </ i >
4
+ < input type ="search " class ="form-control td-search-input " placeholder ="{{ T "ui_search " }}" aria-label="{{ T "ui_search " }}" autocomplete="off ">
5
+ </ div >
3
6
{{ else if .Site.Params.algolia_docsearch -}}
4
7
< div id ="docsearch "> </ div >
5
8
{{ else if .Site.Params.offlineSearch -}}
You can’t perform that action at this time.
0 commit comments