From 8b0feb86222cfbe46d3c20fd760b7935fa60ed2d Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 23 Sep 2022 10:32:17 -0700 Subject: [PATCH] rustdoc: remove no-op mobile CSS `#source-sidebar { z-index: 11 }` This rule became redundant in 07e3f998b1ceb4b8d2a7992782e60f5e776aa114. When `#source-sidebar` became nested below `.sidebar`, it went from being `position: fixed` to `position: static`, and according to MDN's [z-index] documentation, this means it has no effect. [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index --- src/librustdoc/html/static/css/rustdoc.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 3461d083c60..651f05284ff 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1922,10 +1922,6 @@ in storage.js plus the media query with (min-width: 701px) border-bottom: 1px solid; } - #source-sidebar { - z-index: 11; - } - #main-content > .line-numbers { margin-top: 0; }