From 22f49b78251ff6760844fc391c5554e6a86e294f Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 12 Apr 2018 09:53:32 +0100 Subject: [PATCH] Backport PR #11028: Add note concerning python2 support on doc start page --- doc/_static/mpl.css | 17 +++++++++++++---- doc/_templates/sidebar_announcement.html | 5 +++++ doc/conf.py | 3 ++- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 doc/_templates/sidebar_announcement.html diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 20c2b26b9660..e460fd569823 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -309,11 +309,11 @@ h2 { margin: 0.5em 0 0.2em 0; padding-top: 0.5em; font-size: 1.7em; - padding: 0; } h3 { margin: 0.2em 0 0.1em 0; + padding-top: 0.5em; font-size: 1.2em; } @@ -846,14 +846,12 @@ figcaption { } #sidebar-donations { - margin-top: 28px; + margin-top: 40px; } .donate_button { background:#11557C; font-weight:normal; - border:solid 1px #fff; - outline: solid 1px #11557C; clear: both; display: block; width:200px; @@ -864,6 +862,7 @@ figcaption { color:#fff; text-decoration: none; margin: 30px auto 0; + border-radius: 6px; z-index:1; transition: background .25s ease; } @@ -972,3 +971,13 @@ p.sphx-glr-signature a.reference.external { font-weight: 400; } +.sidebar-announcement { + border: 1px solid #11557C; + background: #eff9ff; + padding: 2px; + margin-top: 40px; +} + +.sidebar-announcement p { + margin: 0.4em 0.4em 0.6em 0.4em; +} diff --git a/doc/_templates/sidebar_announcement.html b/doc/_templates/sidebar_announcement.html new file mode 100644 index 000000000000..66de835a7a9e --- /dev/null +++ b/doc/_templates/sidebar_announcement.html @@ -0,0 +1,5 @@ + diff --git a/doc/conf.py b/doc/conf.py index 5dad15a26aa2..4d01737af70b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -242,7 +242,8 @@ def _check_deps(): # Custom sidebar templates, maps page names to templates. html_sidebars = { - 'index': ['searchbox.html', 'donate_sidebar.html'], + 'index': ['searchbox.html', 'sidebar_announcement.html', + 'donate_sidebar.html'], '**': ['searchbox.html', 'localtoc.html', 'relations.html', 'pagesource.html'] }