From 20eda22cbf36b5e9bf9fe28c53790c30fb31c9d3 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 25 Nov 2021 15:33:38 +0100 Subject: Update the first heading indent rule so it is only applied on the first heading of the top doc block --- src/librustdoc/html/static/css/rustdoc.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/librustdoc/html/static/css') diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index bfad5106951..479b5210f9e 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1129,15 +1129,17 @@ h3.variant { margin-top: 3px; } -.docblock > .section-header:first-child { +.top-doc .docblock > .section-header:first-child { margin-left: 15px; - margin-top: 0; } - -.docblock > .section-header:first-child:hover > a:before { +.top-doc .docblock > .section-header:first-child:hover > a:before { left: -10px; } +.docblock > .section-header:first-child { + margin-top: 0; +} + :target > code, :target > .code-header { opacity: 1; } -- cgit 1.4.1-3-g733a5