Mercurial > p > roundup > code
diff doc/_static/style.css @ 7297:673d8e0d3abf
Prevent examples from blowing outside the viewport.
Overflow wasn't being triggered in multiple cases. Force break on
whitespace and overflow-wrap anywhere.
This seems to work from 350px mobile to desktop sizes.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 04 May 2023 18:18:18 -0400 |
| parents | 7435320ea041 |
| children | 1a221cf0758b |
line wrap: on
line diff
--- a/doc/_static/style.css Wed May 03 11:11:45 2023 -0400 +++ b/doc/_static/style.css Thu May 04 18:18:18 2023 -0400 @@ -313,3 +313,9 @@ /* remove solid black border when focus is around the main section due to activation of skip-link. Page jumps there, that's enough. */ #main:focus-visible {outline: none;} + +/* Prevent examples from extending outside the viewport */ +div.highlight > pre { + overflow-wrap: anywhere; + white-space: break-spaces; +}
