8000 Merge pull request #3073 from sommersoft/3.x · flummer/circuitpython@cf037a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf037a9

Browse files
authored
Merge pull request adafruit#3073 from sommersoft/3.x
[3.x] Custom CSS For "Viewing Outdated Docs" Message
2 parents 7d17414 + aaa61c1 commit cf037a9

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
@@ -345,3 +345,6 @@
345345
intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
346346
"bus_device": ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
347347
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
348+
349+
def setup(app):
350+
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