From 8627a853135cd63e15d207db1f67a6bbe2149e8e Mon Sep 17 00:00:00 2001 From: Thomas A Caswell <tcaswell@gmail.com> Date: Thu, 12 Apr 2018 23:30:52 -0400 Subject: [PATCH] DOC: Add summer-fellowship banner --- doc/_static/mpl.css | 20 ++++++++++++++++++++ doc/_templates/layout.html | 6 ++++++ 2 files changed, 26 insertions(+) diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index e460fd569823..5ecf1d909edb 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -768,6 +768,26 @@ figcaption { text-align: center; } + +/* "Summer Fellowship" message. */ +#summer-fellowship { + background: #11557C; + box-sizing: border-box; + color: #fffa; + font-weight: bold; + left: 0; + min-height: 3em; + padding: 0.5em; + top: 0; + width: 100%; + z-index: 10000; +} + +#summer-fellowship a { + color: #fff; + text-decoration:underline; +} + /* "Go to released version" message. */ #unreleased-message { background: #d62728; diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index f0d0ec778f5d..3161ea610904 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -172,6 +172,12 @@ <h3>{{ _('Navigation') }}</h3> </a> </div> {%- endif %} +<div id="summer-fellowship"> + Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. + <a href="https://www.numfocus.org/programs/john-hunter-technology-fellowship"> + Apply now! + </a> +</div> <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px; position: relative;"> {%- if builder in ('htmlhelp', 'devhelp', 'latex') %} <a href="{{ pathto('index') }}">