mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Docs: add inline search form on help page
Referring to "the search docs box on the left" doesn't make sense on mobile (which hides search in the hamburger menu). Instead, just include a search form at that point in the (html) docs.
This commit is contained in:
13
docs/_static/anymail-theme.css
vendored
13
docs/_static/anymail-theme.css
vendored
@@ -43,3 +43,16 @@ table.sticky-left th:first-of-type[colspan] > p {
|
||||
.rst-content a:visited code.xref {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
|
||||
/* Inline search forms (Anymail addition) */
|
||||
.anymail-inline-search-form {
|
||||
margin-top: -1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.anymail-inline-search-form input[type=search] {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
border-radius: 50px;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,17 @@ Here's how to contact the Anymail community:
|
||||
|
||||
**"How do I...?"**
|
||||
|
||||
If the *Search docs* box on the left doesn't find an answer,
|
||||
.. raw:: html
|
||||
|
||||
<div class="anymail-inline-search-form" role="search">
|
||||
<form class="wy-form" action="../search/" method="get">
|
||||
<input type="search" name="q" placeholder="Search docs">
|
||||
<input type="hidden" name="check_keywords" value="yes">
|
||||
<input type="hidden" name="area" value="default">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
If searching the docs doesn't find an answer,
|
||||
ask a question in the GitHub `Anymail discussions`_ forum.
|
||||
|
||||
**"I'm getting an error or unexpected behavior..."**
|
||||
|
||||
Reference in New Issue
Block a user