From ada7efae9d86c25e351363a0ea6a895082e4eef5 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 24 Feb 2022 12:04:17 +0100 Subject: [PATCH] Fix bad handling of the source code viewer sidebar style to prevent the appearance of the logo --- src/librustdoc/html/static/css/rustdoc.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index f1e0a89883ab..3d1b8f172b9e 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -397,17 +397,17 @@ nav.sub { overflow-y: hidden; } -.source .sidebar > *:not(:first-child) { - transition: opacity 0.5s; +.source .sidebar > *:not(#sidebar-toggle) { opacity: 0; visibility: hidden; + transition: opacity 0.5s; } .source .sidebar.expanded { overflow-y: auto; } -.source .sidebar.expanded > * { +.source .sidebar.expanded > *:not(#sidebar-toggle) { opacity: 1; visibility: visible; }