diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index b1a8633d9731..4e24cf579bfa 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -232,9 +232,6 @@ div.sphinxsidebar { text-align: left; /* margin-left: -100%; */ } -div.sphinxsidebarwrapper { - padding-top: 28px -} div.sphinxsidebar h4, div.sphinxsidebar h3 { margin: 1em 0 0.5em 0; @@ -245,6 +242,11 @@ div.sphinxsidebar h4, div.sphinxsidebar h3 { background-color: #AFC1C4; } +div.sphinxsidebar h3 a { + /* workaround for table of contents heading, which is a link */ + color: white !important; +} + div.sphinxsidebar ul { padding-left: 1.5em; margin-top: 7px; @@ -258,6 +260,36 @@ div.sphinxsidebar ul ul { margin-left: 20px; } +div.sphinxsidebar #searchbox input { + border: 1px solid #aaa; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox form { + display: inline-block; + width: 100% +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; +} + +div.sphinxsidebar #searchbox input[type="submit"]:hover { + background: #ddd; +} + +div.sphinxsidebar .searchformwrapper { + display: block; +} + p { margin: 0.8em 0 0.8em 0; } @@ -813,6 +845,10 @@ figcaption { } } +#sidebar-donations { + margin-top: 28px; +} + .donate_button { background:#11557C; font-weight:normal; diff --git a/doc/_templates/donate_sidebar.html b/doc/_templates/donate_sidebar.html index 8fa765115d7b..1f0f1012f155 100644 --- a/doc/_templates/donate_sidebar.html +++ b/doc/_templates/donate_sidebar.html @@ -1,5 +1,5 @@ -
+ diff --git a/doc/_templates/pagesource.html b/doc/_templates/pagesource.html new file mode 100644 index 000000000000..54428f9d6910 --- /dev/null +++ b/doc/_templates/pagesource.html @@ -0,0 +1,7 @@ +{%- if show_source and has_source and sourcename %} + +{%- endif %} diff --git a/doc/conf.py b/doc/conf.py index d0a20da36c44..5dad15a26aa2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -242,9 +242,9 @@ def _check_deps(): # Custom sidebar templates, maps page names to templates. html_sidebars = { - 'index': ['donate_sidebar.html', 'searchbox.html'], - '**': ['localtoc.html', 'relations.html', - 'sourcelink.html', 'searchbox.html'] + 'index': ['searchbox.html', 'donate_sidebar.html'], + '**': ['searchbox.html', 'localtoc.html', 'relations.html', + 'pagesource.html'] } # If false, no module index is generated.