Skip to content

Commit e155cb3

Browse files
committed
move search icon inside search button
1 parent 71355cf commit e155cb3

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

docs/_static/custom.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,8 @@ div.admonition.admonition-todo>.admonition-title::before {
194194
padding-bottom: 0;
195195
}
196196

197-
#search-form .search-icon {
198-
left: 1.5625rem;
199-
}
200-
201197
input#q {
202198
border-radius: .25rem 0 0 .25rem;
203-
padding-left: 2.1875rem;
204199
}
205200

206201
.form-control:focus {
@@ -284,14 +279,6 @@ input#search-input {
284279
border-radius: .25rem 0 0 .25rem;
285280
}
286281

287-
.search-icon {
288-
position: absolute;
289-
color: #a4a6a7;
290-
left: .625rem;
291-
z-index: 100;
292-
align-self: center;
293-
}
294-
295282
.input-group-text kbd {
296283
padding: 0rem 0.4rem;
297284
font-size: 135%;

docs/_templates/search.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
5050
<div class="input-group col-xl-8 mb-2">
5151
<label for="q" class="sr-only">Search string
5252
</label>
53-
<i class="fas fa-search fa-lg search-icon" aria-hidden="true"></i>
5453
<input
5554
type="search" name="q" id="q"
5655
class="form-control"
@@ -71,7 +70,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
7170
><i class="fas fa-times"></i></button>
7271
</div>
7372
<div class="input-group-append">
74-
<button type="submit" class="btn btn-primary">{{ _('search') }}</button>
73+
<button type="submit" class="btn btn-primary"><i class="fas fa-search fa-lg" aria-hidden="true"></i></button>
7574
</div>
7675
</div>
7776
</div>

0 commit comments

Comments
 (0)