From 310a267998db2b7f98a01b6be37214637dccf5c1 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Thu, 25 Jun 2020 23:07:35 -0500 Subject: [PATCH 1/2] conf.py: add sphinx setup directive to use 'customstyle.css' --- conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf.py b/conf.py index 03d100f121..f514cd48cf 100644 --- a/conf.py +++ b/conf.py @@ -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") From aaa61c1a6ae7a863c9d00c6a60618854758e0bf3 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Thu, 25 Jun 2020 23:11:38 -0500 Subject: [PATCH 2/2] docs/customstyle.css: add viewing-outdate-version-message CSS tweaks --- docs/static/customstyle.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/static/customstyle.css b/docs/static/customstyle.css index 6c964b762c..1136edcd31 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) {