diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-06-26 10:01:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-26 10:01:59 -0700 |
| commit | cf037a94b79759eff5994e6ddedcdfe020c14cf9 (patch) | |
| tree | dc19f9b95a736c9322eb72c472d1aae81c02bd27 | |
| parent | 7d174143f955c3367200bde073b8b81838e8ca01 (diff) | |
| parent | aaa61c1a6ae7a863c9d00c6a60618854758e0bf3 (diff) | |
Merge pull request #3073 from sommersoft/3.x3.x
[3.x] Custom CSS For "Viewing Outdated Docs" Message
| -rw-r--r-- | conf.py | 3 | ||||
| -rw-r--r-- | docs/static/customstyle.css | 13 |
2 files changed, 16 insertions, 0 deletions
@@ -345,3 +345,6 @@ texinfo_documents = [ 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") diff --git a/docs/static/customstyle.css b/docs/static/customstyle.css index 6c964b762..1136edcd3 100644 --- a/docs/static/customstyle.css +++ b/docs/static/customstyle.css @@ -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) { |
