+doc show warning if browsing outdated docs
This commit is contained in:
parent
72906553ed
commit
99fcc6b191
2 changed files with 32 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
{% set script_files = script_files + ['_static/effects.highlight.js'] %}
|
||||
{% set script_files = script_files + ['_static/scrollTo.js'] %}
|
||||
{% set script_files = script_files + ['_static/contentsFix.js'] %}
|
||||
{% set script_files = script_files + ['_static/warnOldDocs.js'] %}
|
||||
{% set script_files = script_files + ['_static/ga.js'] %}
|
||||
{% set css_files = css_files + ['_static/prettify.css'] %}
|
||||
{% set css_files = css_files + ['_static/base.css'] %}
|
||||
|
|
|
|||
|
|
@ -177,3 +177,34 @@ strong {color: #0B5567; }
|
|||
.section-marker { position: absolute; width: 1em; margin-left: -1em; display: block; text-decoration: none; visibility: hidden; text-align: center; font-weight: normal; }
|
||||
.section-marker:hover { text-decoration: none; }
|
||||
.section h2:hover > a,.section h3:hover > a,.section h4:hover > a,.section h5:hover > a { visibility: visible; }
|
||||
|
||||
|
||||
/* floaty warning about old version of docs */
|
||||
#floaty-warning {
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin-bottom: 0;
|
||||
z-index: 99999;
|
||||
width: 100%;
|
||||
background-color: rgb(84, 180, 204);
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#floaty-warning a {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#close-floaty-window {
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
right: 2em;
|
||||
color: white;
|
||||
font-weight: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue