Improve docs sidebar layout (#5568)

Improve docs sidebar layout
This commit is contained in:
Bruno Oliveira 2019-07-08 19:24:48 -03:00 committed by GitHub
commit 628ff4d619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,15 @@
{#
basic/searchbox.html with heading removed.
#}
{%- 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"
placeholder="Search"/>
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endif %}

View File

@ -106,14 +106,14 @@ div.sphinxsidebar h3,
div.sphinxsidebar h4 { div.sphinxsidebar h4 {
font-family: {{ header_font }}; font-family: {{ header_font }};
color: #444; color: #444;
font-size: 24px; font-size: 21px;
font-weight: normal; font-weight: normal;
margin: 0 0 5px 0; margin: 16px 0 0 0;
padding: 0; padding: 0;
} }
div.sphinxsidebar h4 { div.sphinxsidebar h4 {
font-size: 20px; font-size: 18px;
} }
div.sphinxsidebar h3 a { div.sphinxsidebar h3 a {

View File

@ -165,18 +165,18 @@ html_favicon = "img/pytest1favi.ico"
html_sidebars = { html_sidebars = {
"index": [ "index": [
"slim_searchbox.html",
"sidebarintro.html", "sidebarintro.html",
"globaltoc.html", "globaltoc.html",
"links.html", "links.html",
"sourcelink.html", "sourcelink.html",
"searchbox.html",
], ],
"**": [ "**": [
"slim_searchbox.html",
"globaltoc.html", "globaltoc.html",
"relations.html", "relations.html",
"links.html", "links.html",
"sourcelink.html", "sourcelink.html",
"searchbox.html",
], ],
} }