File tree Expand file tree Collapse file tree 2 files changed +45
-17
lines changed Expand file tree Collapse file tree 2 files changed +45
-17
lines changed Original file line number Diff line number Diff line change 93
93
}
94
94
95
95
.pytorch-left-menu-search input [type = text ] {
96
- background-image : none ;
96
+ background-image : url ( "../images/search-icon.svg" ) ;
97
97
}
98
98
99
- .gsc-control-cse {
100
- padding-left : 0px !important ;
101
- padding-bottom : 0px !important ;
99
+ .gsc-search-button-v2 {
100
+ display : none;
102
101
}
103
102
104
- .gsc-search-button .gsc-search-button-v2 : focus {
105
- border : transparent !important ;
106
- outline : none;
107
- box-shadow : none;
103
+ .gsc-input-box {
104
+ border : 1px solid # ffffff ;
105
+ background-color : # f3f4f7 ;
106
+ border-radius : 0 ;
107
+ width : 100% ;
108
108
}
109
- .gsc-search-button-v2 : active {
110
- border : none !important ;
109
+
110
+ .gsc-input-box {
111
+ background-image : url ("../images/search-icon.svg" );
112
+ background-repeat : no-repeat;
111
113
}
112
- .gsc-search-button-v2 {
113
- border : none !important ;
114
+
115
+ .gsc-input {
116
+ background-image : url ("../images/search-icon.svg" );
117
+ background-repeat : no-repeat;
118
+ background-size : 18px 18px ;
119
+ background-position : 12px 10px ;
120
+ font-size : 1rem ;
121
+ color : # 262626 ;
122
+ }
123
+
124
+ .gsst_a .gscb_a {
125
+ display : none;
126
+ }
127
+
128
+ .gsc-control-cse {
129
+ padding-bottom : 0 ;
130
+ }
131
+
132
+ form .gsc-search-box {
133
+ margin-bottom : 0 ;
134
+ padding-bottom : 0 ;
135
+ }
136
+
137
+ .gs-search-image {
138
+ width : 16px ;
139
+ height : 16px ;
140
+ margin-right : 5px ;
114
141
}
Original file line number Diff line number Diff line change 45
45
<!-- Search box -->
46
46
< div id ="searchBox ">
47
47
< div class ="searchbox " id ="googleSearchBox ">
48
+ < div class ="gs-search-image ">
49
+ < img src ="../images/search-icon.svg ">
50
+ </ div >
48
51
< script async src ="https://cse.google.com/cse.js?cx=e65585f8c3ea1440e "> </ script >
49
- < div class ="gcse-search "> </ div >
52
+ < div class ="gcse-search " data-placeholder =" Search " > </ div >
50
53
</ div >
51
54
< div id ="sphinxSearchBox " style ="display: none; ">
52
55
< div role ="search ">
58
61
</ div >
59
62
</ div >
60
63
</ div >
61
- <!-- Radio buttons for search selection -->
62
64
< form id ="searchForm ">
63
- < label >
65
+ < label style =" margin-bottom: 1rem " >
64
66
< input type ="radio " name ="searchType " value ="google " checked >
65
67
Google Search
66
68
</ label >
67
- < label >
69
+ < label style =" margin-bottom: 1rem " >
68
70
< input type ="radio " name ="searchType " value ="sphinx ">
69
71
Sphinx Search
70
72
</ label >
98
100
} ) ;
99
101
} ) ;
100
102
</ script >
101
- </ script>
102
103
103
104
{% endblock %}
104
105
You can’t perform that action at this time.
0 commit comments