about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-01-06 12:20:03 -0700
committerMichael Howell <michael@notriddle.com>2023-01-06 13:14:41 -0700
commit16a3c8032e634d3da53f8d4c0a875f369a9d4394 (patch)
tree0e54fd246f9817f89d8577ef6156892b8f97984b /src/librustdoc/html
parentafe8c4537c9009a251a31e8f022b7795fc305d4f (diff)
downloadrust-16a3c8032e634d3da53f8d4c0a875f369a9d4394.tar.gz
rust-16a3c8032e634d3da53f8d4c0a875f369a9d4394.zip
rustdoc: remove no-op CSS `.rustdoc.source .sidebar { width: 0 }`
This CSS was added in dc2c9723343c985740be09919236a6e96c4e4433,
before 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c when the sidebars
were merged.

Now that they are merged, the source sidebar is being pushed
off-screen anyway, so giving it zero width doesn't do much.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 05a12d3d4d4..d77b65ac603 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1598,14 +1598,10 @@ in storage.js
 
 	.sidebar.shown,
 	.source-sidebar-expanded .source .sidebar,
-	.sidebar:focus-within {
+	.rustdoc:not(.source) .sidebar:focus-within {
 		left: 0;
 	}
 
-	.rustdoc.source > .sidebar {
-		width: 0;
-	}
-
 	.mobile-topbar h2 {
 		padding-bottom: 0;
 		margin: auto 0.5em auto auto;