File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Original file line number Diff line number Diff line change @@ -710,6 +710,33 @@ 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
+ font-weight : bold;
718
+ left : 0 ;
719
+ min-height : 3em ;
720
+ padding : 0.5em ;
721
+ position : fixed;
722
+ top : 0 ;
723
+ width : 100% ;
724
+ z-index : 10000 ;
725
+ }
726
+
727
+ # unreleased-message + div {
728
+ margin-top : 3em ;
729
+ }
730
+
731
+ # unreleased-message a {
732
+ color : # fff !important ;
733
+ text-shadow : 4px 4px 10px rgba (0 , 0 , 0 , 0.5 );
734
+ }
735
+
736
+ # unreleased-message a : hover {
737
+ text-shadow : 4px 4px 10px rgba (0 , 0 , 0 , 0.8 );
738
+ }
739
+
713
740
/* Fork me on GitHub "button" */
714
741
# forkongithub a {
715
742
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