PyAPI Docs: Fix "On this page" covering content

Sphinx CSS "hides" the _On this page_ pane by setting its `position` to `fixed` and `right` to `-15em`—this assumes it has a fixed `width` of `15em`, which it doesn't if it is overridden to `auto`.

Fixes #148347; caused by [45fee7d851][0], which also affects the 4.5 LTS docs.

[0]: 45fee7d851

Pull Request: https://projects.blender.org/blender/blender/pulls/148603
This commit is contained in:
Nathan Burnham 2025-10-23 04:22:48 +02:00 • committed by Aaron Carlisle
parent 2c555a604a
commit 0e6ea19853

View file

@ -15,9 +15,12 @@ body {
--color-api-name: #e87d0d;
}
/* Increase the width of "On this page" region. */
.main > .toc-drawer {
width: auto;
/* Increase the width of "On this page" region,
* but not when it's being "hidden" by being pushed 15em off the right edge… */
@media (width > 82em) {
.toc-drawer {
width: auto;
}
}
h1,