Skip to content

Commit

Permalink
Merge pull request #3073 from sommersoft/3.x
Browse files Browse the repository at this point in the history
[3.x] Custom CSS For "Viewing Outdated Docs" Message
  • Loading branch information
tannewt committed Jun 26, 2020
2 parents 7d17414 + aaa61c1 commit cf037a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,6 @@
intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
"bus_device": ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}

def setup(app):
app.add_stylesheet("customstyle.css")
13 changes: 13 additions & 0 deletions docs/static/customstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
}


/* custom CSS to sticky the ' viewing outdated version'
warning
*/
.document > .admonition {
position: sticky;
top: 0px;
background-color: salmon;
z-index: 2;
}

body {
overflow-x: unset!important;
}

/* override table width restrictions */
@media screen and (min-width: 767px) {
Expand Down

0 comments on commit cf037a9

Please sign in to comment.