File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Original file line number Diff line number Diff line change @@ -710,6 +710,30 @@ figcaption {
710
710
text-align : center;
711
711
}
712
712
713
+ /* "Go to released version" message. */
714
+ # unreleased-message {
715
+ background : # d62728 ;
716
+ box-sizing : border-box;
717
+ color : # fff ;
718
+ font-weight : bold;
719
+ left : 0 ;
720
+ min-height : 3em ;
721
+ padding : 0.5em ;
722
+ position : fixed;
723
+ top : 0 ;
724
+ width : 100% ;
725
+ z-index : 10000 ;
726
+ }
727
+
728
+ # unreleased-message + div {
729
+ margin-top : 3em ;
730
+ }
731
+
732
+ # unreleased-message a {
733
+ color : # fff ;
734
+ text-decoration : underline dotted;
735
+ }
736
+
713
737
/* Fork me on GitHub "button" */
714
738
# forkongithub a {
715
739
background : # FF7F0E ;
Original file line number Diff line number Diff line change @@ -162,6 +162,14 @@ <h3>{{ _('Navigation') }}</h3>
162
162
163
163
{% block relbar1 %}
164
164
165
+ {%- if '+' in release %}
166
+ < div id ="unreleased-message ">
167
+ You are reading documentation for the unreleased version of Matplotlib.
168
+ < a href ="https://matplotlib.org/search.html?q={{ title | striptags | urlencode }}&check_keywords=yes&area=default ">
169
+ Try searching for the released version of this page instead?
170
+ </ a >
171
+ </ div >
172
+ {%- endif %}
165
173
< div style ="background-color: white; text-align: left; padding: 10px 10px 15px 15px; position: relative; ">
166
174
{%- if builder in ('htmlhelp', 'devhelp', 'latex') %}
167
175
< a href ="{{ pathto('index') }} "> < img src ="{{pathto( "_static /logo2.png", 1) }}" width="540px " border ="0 " alt ="matplotlib "/> </ a >
You can’t perform that action at this time.
0 commit comments