add custom css for 'viewing-old-docs' message
This commit is contained in:
parent
d4bb108e3b
commit
2d77c962a8
3
conf.py
3
conf.py
@ -350,3 +350,6 @@ texinfo_documents = [
|
|||||||
intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
|
intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
|
||||||
"bus_device": ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
|
"bus_device": ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
|
||||||
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
|
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.add_stylesheet("customstyle.css")
|
||||||
|
13
docs/static/customstyle.css
vendored
13
docs/static/customstyle.css
vendored
@ -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 */
|
/* override table width restrictions */
|
||||||
@media screen and (min-width: 767px) {
|
@media screen and (min-width: 767px) {
|
||||||
|
Loading…
Reference in New Issue
Block a user