diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:25:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:25:40 +0000 |
commit | cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a (patch) | |
tree | 18dcde1a8d1f5570a77cd0c361de3b490d02c789 /sphinx/themes/basic/searchfield.html | |
parent | Initial commit. (diff) | |
download | sphinx-be21195fae81d3ed2bf307cc2df9ad6779da83b0.tar.xz sphinx-be21195fae81d3ed2bf307cc2df9ad6779da83b0.zip |
Adding upstream version 7.2.6.upstream/7.2.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sphinx/themes/basic/searchfield.html')
-rw-r--r-- | sphinx/themes/basic/searchfield.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sphinx/themes/basic/searchfield.html b/sphinx/themes/basic/searchfield.html new file mode 100644 index 0000000..1286be0 --- /dev/null +++ b/sphinx/themes/basic/searchfield.html @@ -0,0 +1,23 @@ +{# + basic/searchfield.html + ~~~~~~~~~~~~~~~~~~~~~~ + + Sphinx sidebar template: search field. + This component is similar to searchbox.html but does not include an + extra heading ("Quick search"). Instead, it uses a placeholder text + in the search field. + + :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- if pagename != "search" and builder != "singlehtml" %} +<div id="searchbox" style="display: none" role="search"> + <div class="searchformwrapper"> + <form class="search" action="{{ pathto('search') }}" method="get"> + <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/> + <input type="submit" value="{{ _('Go') }}" /> + </form> + </div> +</div> +<script>document.getElementById('searchbox').style.display = "block"</script> +{%- endif %} |