summary refs log tree commit diff
path: root/src/librustdoc/html/static/css
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-10-19 20:08:30 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-10-19 20:08:30 -0700
commit8f80d86d85ca88e69f423eae88db3adc1e277f24 (patch)
tree5160d8585e6f605946782c4c7f5f5fd4862df331 /src/librustdoc/html/static/css
parent24a71cbdd7bd1f27029334eacc247e70d21b5765 (diff)
downloadrust-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.css7
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;
 }