From 7ba431abd2b84febdbc053155b4a8649dfbbdf85 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 4 Dec 2018 11:33:57 +0100 Subject: [PATCH 1/2] Fix line numbers display --- src/librustdoc/html/static/rustdoc.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index b6242457ae2b8..aa4fd4eb4d203 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -283,7 +283,7 @@ nav.sub { padding-left: 0; } -:not(.source) .example-wrap { +.rustdoc:not(.source) .example-wrap { display: inline-flex; margin-bottom: 10px; } @@ -301,7 +301,7 @@ nav.sub { text-align: right; } -:not(.source) .example-wrap > pre.rust { +.rustdoc:not(.source) .example-wrap > pre.rust { width: 100%; } From 21795445fff249bcd24ad75ac8d8cfb370f11e39 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Sun, 16 Dec 2018 09:11:25 -0600 Subject: [PATCH 2/2] backport #56844 --- src/librustdoc/html/static/rustdoc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index aa4fd4eb4d203..df4ced794fd8c 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -305,7 +305,7 @@ nav.sub { width: 100%; } -body:not(.source) .example-wrap > pre { +.rustdoc:not(.source) .example-wrap > pre { margin: 0; }