diff options
| author | Ivan Tham <pickfire@riseup.net> | 2021-01-31 00:45:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 00:45:19 +0800 |
| commit | 4a2a5f078000f3040fd155dce036a553a2af0a27 (patch) | |
| tree | de5d8a287ea63a3ea532c1efc3a193622ace2611 /src/librustdoc/html | |
| parent | 7ce1b3b24491cbe10669cbe2b5733c2fe7cfe5b7 (diff) | |
| download | rust-4a2a5f078000f3040fd155dce036a553a2af0a27.tar.gz rust-4a2a5f078000f3040fd155dce036a553a2af0a27.zip | |
Fix ascii art text wrapping in mobile
Fix #81377
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 8dad26dced9..e938d84f75f 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -156,6 +156,7 @@ code, pre, a.test-arrow { } .docblock pre code, .docblock-short pre code, .docblock code.spotlight { padding: 0; + padding-right: 1ex; } .docblock code.spotlight :last-child { padding-bottom: 0.6em; @@ -404,9 +405,6 @@ nav.sub { text-overflow: ellipsis; margin: 0; } -.docblock code, .docblock-short code { - white-space: pre-wrap; -} .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 { border-bottom: 1px solid; |
