Skip to content

Commit 9a2f057

Browse files
authored
Merge pull request #16826 from tacaswell/doc_gsoc_banner
DOC: GSOC and JHEP banners
2 parents fa773f6 + c1653c5 commit 9a2f057

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

doc/_static/mpl.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,30 @@ figcaption {
926926
#unreleased-message a {
927927
color: #fff;
928928
text-decoration:underline;
929+
930+
}
931+
932+
/* top-banner style message. */
933+
#annc-banner {
934+
box-sizing: border-box;
935+
left: 0;
936+
min-height: 3em;
937+
padding: 0.7em;
938+
top: 0;
939+
width: 100%;
940+
z-index: 10000;
941+
background-image: linear-gradient(90deg, #440154, #482475, #414487, #355f8d, #2a788e, #21908d, #22a884, #42be71, #7ad151, #bddf26, #bddf26);
942+
padding: 5px
943+
}
944+
945+
#annc-banner a {
946+
font-weight: bold;
947+
}
948+
949+
#annc-banner p{
950+
background-color: rgba(255, 255, 255, .8);
951+
padding: 13px;
952+
margin:0;
929953
}
930954

931955
/* Fork me on GitHub "button" */

doc/_templates/layout.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<li><a href="{{ pathto('contents') }}">contents</a> &raquo;</li>
66
{%- endblock %}
77

8+
89
{%- block relbar1 %}{{ relbar() }}{% endblock %}
910
{%- block relbar2 %}{% endblock %}
1011

@@ -27,7 +28,25 @@
2728
Try searching for the released version of this page instead?
2829
</a>
2930
</div>
31+
3032
{%- endif %}
33+
34+
35+
<div id="annc-banner">
36+
<p>Matplotlib is partcipating in GSOC 2020!
37+
<a href="https://discourse.matplotlib.org/t/gsoc-due-march-31-18-00utc/20975"> See discourse for details.
38+
</a>
39+
Apply by March 31, 2020.</p>
40+
</div>
41+
42+
<div id="annc-banner">
43+
<p>John Hunter Excellence in Plotting Contest 2020
44+
<a href="https://jhepc.github.io/about.html"> submissions are open!
45+
</a>
46+
Entries are due June 1, 2020.</p>
47+
</div>
48+
49+
3150
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px; position: relative;">
3251
{%- if builder in ('htmlhelp', 'devhelp', 'latex') %}
3352
<a href="{{ pathto('index') }}">

0 commit comments

Comments
 (0)