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

* Add overflow-wrap to links inside paragraphs

* Add regression test for very long URLs

* Build theme.css for https://github.com/readthedocs/sphinx_rtd_theme/pull/1193

* build theme.css for https://github.com/readthedocs/sphinx_rtd_theme/pull/1193

* Build theme.css for https://github.com/readthedocs/sphinx_rtd_theme/pull/1193

Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
This commit is contained in:
Ana Costa 2022-08-27 21:27:59 +01:00 committed by GitHub
parent 918ca5bed8
commit ba0dc62448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -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
====

File diff suppressed because one or more lines are too long

View File

@ -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