Skip to content

Commit b2bd518

Browse files
committed
Apply no-wrap to container
1 parent 6787cd6 commit b2bd518

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

python_docs_theme/static/pydoctheme.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ form.inline-search input[type='submit'] {
8484

8585
div.document {
8686
display: flex;
87+
/* Don't let long code literals extend beyond the right side of the screen */
88+
overflow-wrap: break-word;
89+
}
90+
91+
/* Don't let long code literals extend beyond the right side of the screen */
92+
span.pre {
93+
white-space: unset;
8794
}
8895

8996
div.sphinxsidebar {
@@ -368,11 +375,6 @@ div.genindex-jumpbox a {
368375
body {
369376
margin-top: 40px;
370377
}
371-
/* Don't let long code literals extend beyond the right side of the screen */
372-
span.pre {
373-
overflow-wrap: break-word;
374-
white-space: unset;
375-
}
376378

377379
/* Top navigation bar */
378380
.mobile-nav {

0 commit comments

Comments
 (0)