From 1d79d8be5619a4c51741dffd8d63d2db75a618f1 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 27 Aug 2018 21:51:56 +0200 Subject: [PATCH 1/2] Fix source automatic scroll --- src/librustdoc/html/static/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 88c25567d2963..51ed626782926 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -242,6 +242,7 @@ } } + highlightSourceLines(null); window.onhashchange = highlightSourceLines; // Gets the human-readable string for the virtual-key code of the From 04b4c40682c01cad8f9bc8d5b3907be91d6f81d4 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 27 Aug 2018 21:52:10 +0200 Subject: [PATCH 2/2] Fix invalid display of unstable messages --- src/librustdoc/html/static/rustdoc.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index ffe6a40b36998..870b024a3ba00 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -502,6 +502,7 @@ h4 > code, h3 > code, .invisible > code { margin-left: 33px; margin-top: -13px; } + .content .stability::before { content: '˪'; font-size: 30px; @@ -510,6 +511,10 @@ h4 > code, h3 > code, .invisible > code { left: -13px; } +#main > .stability { + margin-top: 0; +} + nav { border-bottom: 1px solid; padding-bottom: 10px;