fix: Limit overflow-wrap: break-word
to paragraphs and references (#5078)
Fixes #5073. Thanks @martinthomson
This commit is contained in:
parent
1afce6669d
commit
35d124106a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue