From 6787cd68befbef6a7be35f53fd40dfdd0263e698 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 27 Jul 2023 14:10:40 +0300 Subject: [PATCH 1/2] Don't let long code literals extend beyond the right side of the screen --- python_docs_theme/static/pydoctheme.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 005bbca..68aad06 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -368,6 +368,11 @@ div.genindex-jumpbox a { body { margin-top: 40px; } + /* Don't let long code literals extend beyond the right side of the screen */ + span.pre { + overflow-wrap: break-word; + white-space: unset; + } /* Top navigation bar */ .mobile-nav { From b2bd51807f28c208771f7ffdb59e8115ab7110ed Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 30 Jul 2023 12:16:52 +0300 Subject: [PATCH 2/2] Apply no-wrap to container --- python_docs_theme/static/pydoctheme.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 68aad06..ce032f1 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -84,6 +84,13 @@ form.inline-search input[type='submit'] { div.document { display: flex; + /* Don't let long code literals extend beyond the right side of the screen */ + overflow-wrap: break-word; +} + +/* Don't let long code literals extend beyond the right side of the screen */ +span.pre { + white-space: unset; } div.sphinxsidebar { @@ -368,11 +375,6 @@ div.genindex-jumpbox a { body { margin-top: 40px; } - /* Don't let long code literals extend beyond the right side of the screen */ - span.pre { - overflow-wrap: break-word; - white-space: unset; - } /* Top navigation bar */ .mobile-nav { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy