fix: Limit overflow-wrap: break-word to paragraphs and references (#5078)

Fixes #5073.

Thanks @martinthomson
This commit is contained in:
Lars Eggert 2023-02-06 19:40:46 +02:00 committed by GitHub
parent 1afce6669d
commit 35d124106a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,11 +43,13 @@
margin-bottom: var(--line);
margin-left: 3ch;
section > p, section > dl.references > dd {
/* Really long lines can wrap when all else fails.
* This won't affect <pre> or <table>, or cases where soft-wrapping occurs.
* Mostly this exists so that long URLs wrap properly in Safari, which
* doesn't break words at '/' like other browsers. */
overflow-wrap: break-word;
}
h1, h2, h3, h4, h5 {
font-weight: bold;