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

CSS: Add overflow-wrap to links inside paragraphs #1193

Merged
merged 8 commits into from
Aug 27, 2022
4 changes: 4 additions & 0 deletions docs/demo/demo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ should be grouped in pairs).``

If the ``--pep-references`` option was supplied, there should be a live link to PEP 258 here.

.. regression test for https://github.com/readthedocs/sphinx_rtd_theme/pull/1193

Very long URLs should be wrapped so lines do not overflow and cause horizontal scrolling: https://www.google.com/search?hl=en&q=very%20long%20url%20example%20of%20a%20url%20that%20is%20extremely%20long%20you%20probably%20want%20to%20avoid%20it%20but%20here%20we%20are

Math
====

Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/sass/_theme_rst.sass
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@
&:hover .headerlink
opacity: 1

// Make links inside paragraphs wrap when they are too long
p a
overflow-wrap: anywhere
// Consistent font sizing for table typography
.wy-table
th, td
Expand Down