diff options
| author | Will Crichton <wcrichto@cs.stanford.edu> | 2021-10-19 20:08:30 -0700 |
|---|---|---|
| committer | Will Crichton <wcrichto@cs.stanford.edu> | 2021-10-19 20:08:30 -0700 |
| commit | 8f80d86d85ca88e69f423eae88db3adc1e277f24 (patch) | |
| tree | 5160d8585e6f605946782c4c7f5f5fd4862df331 /src/librustdoc/html/static/css | |
| parent | 24a71cbdd7bd1f27029334eacc247e70d21b5765 (diff) | |
| download | rust-8f80d86d85ca88e69f423eae88db3adc1e277f24.tar.gz rust-8f80d86d85ca88e69f423eae88db3adc1e277f24.zip | |
Small scrape-example fixes
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 49bdb2455ac..ae97c86762c 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -453,11 +453,16 @@ nav.sub { text-decoration: underline; } -.rustdoc:not(.source) .example-wrap > pre:not(.line-numbers) { +.rustdoc:not(.source) .example-wrap > pre:not(.line-number) { width: 100%; overflow-x: auto; } +.rustdoc:not(.source) .example-wrap > pre.line-numbers { + width: auto; + overflow-x: visible; +} + .rustdoc .example-wrap > pre { margin: 0; } |
