Skip to content

Backport PR #15859 on branch v3.2.x (Doc: Move search field into nav bar) #15882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ div.viewcode-block:target {
border: 1px solid #11557C;
background: #eff9ff;
padding: 2px;
margin-top: 40px;
margin-top: 1em;
}

.sidebar-announcement p {
Expand All @@ -1162,11 +1162,21 @@ nav.main-nav{
margin: 8px 15px;
list-style-type: none;
}

nav.main-nav a{
color: white;
}

nav.main-nav a:hover{
text-decoration: underline;
}
}

nav.main-nav li.nav-right{
margin: 6px 15px 0 auto;
}

nav.main-nav input {
border: 0;
padding: 3px 6px;
width: 198px;
}
5 changes: 5 additions & 0 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
<li><a href="{{ pathto('gallery/index') }}">Examples</a></li>
<li><a href="{{ pathto('tutorials/index') }}">Tutorials</a></li>
<li><a href="{{ pathto('devel/index') }}">Contributing</a></li>
<li class="nav-right">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" placeholder="Search"/>
</form>
</li>
</ul>
</nav>
{%- endblock %}
Expand Down
6 changes: 2 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ def _check_dependencies():

# Custom sidebar templates, maps page names to templates.
html_sidebars = {
'index': ['searchbox.html', 'sidebar_announcement.html',
'donate_sidebar.html'],
'**': ['searchbox.html', 'localtoc.html', 'relations.html',
'pagesource.html']
'index': ['sidebar_announcement.html', 'donate_sidebar.html'],
'**': ['localtoc.html', 'relations.html', 'pagesource.html']
}

# If false, no module index is generated.
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy