From 84a68aedb85526ea0a4afbe590d2dccb9cd0c704 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 7 Dec 2019 17:36:50 +0100 Subject: [PATCH] Doc: Move search field into nav bar --- doc/_static/mpl.css | 16 +++++++++++++--- doc/_templates/layout.html | 5 +++++ doc/conf.py | 6 ++---- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 5baf7c6d180a..e7d20e6eccbe 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -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 { @@ -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; - } \ No newline at end of file + } + + nav.main-nav li.nav-right{ + margin: 6px 15px 0 auto; + } + + nav.main-nav input { + border: 0; + padding: 3px 6px; + width: 198px; + } diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 939e05e1ca82..31a103ad9fdf 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -50,6 +50,11 @@
  • Examples
  • Tutorials
  • Contributing
  • + {%- endblock %} diff --git a/doc/conf.py b/doc/conf.py index 3beabe44eabb..cc712dd34f91 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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. 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