about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-09-28 13:07:20 +0900
committerGitHub <noreply@github.com>2022-09-28 13:07:20 +0900
commitce15514df969522d507c6ab63f7472dc2c45d86c (patch)
treeb083faa67f72acdb8852235d1bc9263a83c1d69e
parentae2028817a9612b47d40093c95d886c2db97a526 (diff)
parentc0245b16baf98f88cba708c19b5a8fc514781b34 (diff)
downloadrust-ce15514df969522d507c6ab63f7472dc2c45d86c.tar.gz
rust-ce15514df969522d507c6ab63f7472dc2c45d86c.zip
Rollup merge of #102380 - notriddle:notriddle/rustdoc-source-sidebar, r=camelid
rustdoc: remove redundant mobile `.source > .sidebar` CSS

When the source sidebar and standard sidebar had most of their code merged in 07e3f998b1ceb4b8d2a7992782e60f5e776aa114, the properties `z-index: 11`, `margin: 0`, and `position: fixed` were already being set on the `.sidebar` class, so no need to repeat them.

https://github.com/rust-lang/rust/blob/57ee5cf5a93923dae9c98bffb11545fc3a31368d/src/librustdoc/html/static/css/rustdoc.css#L1742-L1754
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index c8ea5bef37a..0ea6d9c38b6 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1776,9 +1776,6 @@ in storage.js plus the media query with (min-width: 701px)
 	}
 
 	.rustdoc.source > .sidebar {
-		position: fixed;
-		margin: 0;
-		z-index: 11;
 		width: 0;
 	}