Skip to content

Commit

Permalink
fix: background colors breaking at horizontal scrolling on smaller de…
Browse files Browse the repository at this point in the history
…vices

The body now grows to fit all the content, which makes the background
colors of the theme no longer break
  • Loading branch information
Lukas Engelter committed Aug 16, 2023
1 parent 65fd5be commit f1ce4da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -80,6 +80,9 @@ Bugs fixed
* #11473: Type annotations containing :py:data:`~typing.Literal` enumeration
values now render correctly.
Patch by Bénédikt Tran.
* #11594: HTML Theme: Enhancements to horizontal scrolling on smaller
devices in the ``agogo`` theme.
Patch by Lukas Engelter.

Testing
-------
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/agogo/static/agogo.css_t
Expand Up @@ -19,6 +19,10 @@ body {
line-height: 1.4em;
color: black;
background-color: {{ theme_bgcolor }};

/* fix for background colors breaking at horizontal
scrolling on smaller devices */
min-width: fit-content;
}


Expand Down

0 comments on commit f1ce4da

Please sign in to comment.