Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 084d7b3

Browse files
intelkevinputnammvincerx
authored andcommitted
Added a magnifying glass icon to the search field and changed placeholder text. (#734)
* Adding magnifying glass to search field. Signed-off-by: Kevin Putnam <[email protected]> * Moved magnifying glass to the left and shifted text to right in search field. Signed-off-by: Kevin Putnam <[email protected]> * Embedded image in css to avoid sticky path issues. Signed-off-by: Kevin Putnam <[email protected]> * Reverting to relative path to .css Signed-off-by: Kevin Putnam <[email protected]>
1 parent 1b42641 commit 084d7b3

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{%- if builder != 'singlehtml' %}
2+
<div role="search">
3+
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
4+
<input type="text" name="q" id="clear-docs-search" placeholder="{{ _('Search documentation') }}" results="0"/>
5+
<input type="hidden" name="check_keywords" value="yes" />
6+
<input type="hidden" name="area" value="default" />
7+
</form>
8+
</div>
9+
{%- endif %}
827 Bytes
Loading

source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
.wy-side-nav-search input[type=text] {
3737
border-radius: 0px;
3838
padding: 0px 0px;
39+
padding-left: 20px;
3940
box-shadow: none;
4041
border: 0;
4142
outline: 0;
@@ -284,3 +285,9 @@ div.admonition ul {
284285
div#trademarks {
285286
color: gray;
286287
}
288+
289+
290+
#clear-docs-search {
291+
background: url(./mag-glass.png) left no-repeat;
292+
background-size: 15px 15px;
293+
}

0 commit comments

Comments
 (0)