Skip to content

Commit

Permalink
Merge pull request #3080 from sommersoft/4.x
Browse files Browse the repository at this point in the history
[4.x] Custom CSS For "Viewing Outdated Docs" Message
  • Loading branch information
tannewt committed Jun 29, 2020
2 parents d4bb108 + 2d77c96 commit 9637bae
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 @@ -350,3 +350,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 9637bae

Please sign in to comment.