rustdoc: remove no-op CSS from .docblock-short
The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead. These rules definitely became obsolete by https://github.com/rust-lang/rust/pull/77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
This commit is contained in:
parent
62cc869245
commit
1c05d4b02a
1 changed files with 0 additions and 2 deletions
|
@ -579,8 +579,6 @@ ul.block, .block li {
|
||||||
.docblock-short {
|
.docblock-short {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
/* Wrap non-pre code blocks (`text`) but not (```text```). */
|
/* Wrap non-pre code blocks (`text`) but not (```text```). */
|
||||||
.docblock :not(pre) > code,
|
.docblock :not(pre) > code,
|
||||||
|
|
Loading…
Add table
Reference in a new issue