8000 add custom css for 'viewing-old-docs' message · domdfcoding/circuitpython@2d77c96 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d77c96

Browse files
committed
add custom css for 'viewing-old-docs' message
1 parent d4bb108 commit 2d77c96

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,6 @@
350350
intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
351351
"bus_device": ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
352352
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
353+
354+
def setup(app):
355+
app.add_stylesheet("customstyle.css")

docs/static/customstyle.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111

1212

13+
/* custom CSS to sticky the ' viewing outdated version'
14+
warning
15+
*/
16+
.document > .admonition {
17+
position: sticky;
18+
top: 0px;
19+
background-color: salmon;
20+
z-index: 2;
21+
}
22+
23+
body {
24+
overflow-x: unset!important;
25+
}
1326

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

0 commit comments

Comments
 (0)
0