Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix layout issues in agogo theme on smaller devices #11594

Merged
merged 2 commits into from Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -86,6 +86,9 @@ Bugs fixed
Patch by Bénédikt Tran.
* #11591: Fix support for C coverage in ``sphinx.ext.coverage`` extension.
Patch by Stephen Finucane.
* #11594: HTML Theme: Enhancements to horizontal scrolling on smaller
devices in the ``agogo`` theme.
Patch by Lukas Engelter.

Testing
-------
Expand Down
10 changes: 6 additions & 4 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 Expand Up @@ -131,8 +135,7 @@ dt:target, .highlighted {
/* Header */

div.header {
padding-top: 10px;
padding-bottom: 10px;
padding: 1em;
}

div.header .headertitle {
Expand Down Expand Up @@ -169,8 +172,7 @@ img.logo {
/* Content */
div.content-wrapper {
background-color: white;
padding-top: 20px;
padding-bottom: 20px;
padding: 1em;
}

div.document {
Expand Down