Skip to content

Commit 7545c22

Browse files
committed
Updated
1 parent e7a2ff4 commit 7545c22

File tree

2 files changed

+45
-17
lines changed

2 files changed

+45
-17
lines changed

_static/css/custom.css

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,49 @@
9393
}
9494

9595
.pytorch-left-menu-search input[type=text] {
96-
background-image: none;
96+
background-image: url("../images/search-icon.svg");
9797
}
9898

99-
.gsc-control-cse {
100-
padding-left: 0px !important;
101-
padding-bottom: 0px !important;
99+
.gsc-search-button-v2 {
100+
display: none;
102101
}
103102

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%;
108108
}
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;
111113
}
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;
114141
}

_templates/layout.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
<!-- Search box -->
4646
<div id="searchBox">
4747
<div class="searchbox" id="googleSearchBox">
48+
<div class="gs-search-image">
49+
<img src="../images/search-icon.svg">
50+
</div>
4851
<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>
5053
</div>
5154
<div id="sphinxSearchBox" style="display: none;">
5255
<div role="search">
@@ -58,13 +61,12 @@
5861
</div>
5962
</div>
6063
</div>
61-
<!-- Radio buttons for search selection -->
6264
<form id="searchForm">
63-
<label>
65+
<label style="margin-bottom: 1rem">
6466
<input type="radio" name="searchType" value="google" checked>
6567
Google Search
6668
</label>
67-
<label>
69+
<label style="margin-bottom: 1rem">
6870
<input type="radio" name="searchType" value="sphinx">
6971
Sphinx Search
7072
</label>
@@ -98,7 +100,6 @@
98100
});
99101
});
100102
</script>
101-
</script>
102103

103104
{% endblock %}
104105

0 commit comments

Comments
 (0)