From 084d7b34682170a71e402e4f9326c763e3a144aa Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Fri, 23 Aug 2019 11:46:35 -0700 Subject: [PATCH] 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 * Moved magnifying glass to the left and shifted text to right in search field. Signed-off-by: Kevin Putnam * Embedded image in css to avoid sticky path issues. Signed-off-by: Kevin Putnam * Reverting to relative path to .css Signed-off-by: Kevin Putnam --- .../_themes/otc_tcs_sphinx_theme/searchbox.html | 9 +++++++++ .../otc_tcs_sphinx_theme/static/mag-glass.png | Bin 0 -> 827 bytes .../otc_tcs_sphinx_theme/static/tcs_theme.css | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 source/_themes/otc_tcs_sphinx_theme/searchbox.html create mode 100644 source/_themes/otc_tcs_sphinx_theme/static/mag-glass.png diff --git a/source/_themes/otc_tcs_sphinx_theme/searchbox.html b/source/_themes/otc_tcs_sphinx_theme/searchbox.html new file mode 100644 index 00000000..1647a8df --- /dev/null +++ b/source/_themes/otc_tcs_sphinx_theme/searchbox.html @@ -0,0 +1,9 @@ +{%- if builder != 'singlehtml' %} +
+
+ + + +
+
+{%- endif %} \ No newline at end of file diff --git a/source/_themes/otc_tcs_sphinx_theme/static/mag-glass.png b/source/_themes/otc_tcs_sphinx_theme/static/mag-glass.png new file mode 100644 index 0000000000000000000000000000000000000000..67c376bec08f7a1b94f761d6f32e145d9e97cedb GIT binary patch literal 827 zcmeAS@N?(olHy`uVBq!ia0vp^DnP8v!OXzGxaUqr3y{ND9OUlAuG?%lih@84fmR(9mbk&23ndzs z900OQ!2l=)6ghnOFpvQ!>+0%&YzU~YuLm*?9XbRP0MV6|l|aMcjH;?CAiKJ{8px=r zsR3$fY;0_AZ}08xoiJg-O#>%?$8L?dkVsC!iC2_P|SF@gzTkuij=6%D|{$;jHPW{*~ z{3h9Bq1=fAnd4RGCs>@hqus@;>E7REX4ZA)d8X&Wvi*<0uDiT#+Vx7WNqhe~CZF+t zt95ZnhSAQYEMNVvX!?5oTO76}eZH0Rrghft#@9t>|55riVasTYHu#G+_e_bo_b2+ dt9sHI?iLBZ-|j(^ihz;E;OXk;vd$@?2>`ieo_zoS literal 0 HcmV?d00001 diff --git a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css index 1d34e00f..d3a39bee 100644 --- a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css +++ b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css @@ -36,6 +36,7 @@ .wy-side-nav-search input[type=text] { border-radius: 0px; padding: 0px 0px; + padding-left: 20px; box-shadow: none; border: 0; outline: 0; @@ -284,3 +285,9 @@ div.admonition ul { div#trademarks { color: gray; } + + +#clear-docs-search { + background: url(./mag-glass.png) left no-repeat; + background-size: 15px 15px; +}