about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/rustdoc.css
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-26 15:46:53 +0000
committerbors <bors@rust-lang.org>2022-12-26 15:46:53 +0000
commitcaa64e5b5e7605a1c1428b2a402021bef83f3e1e (patch)
tree80506b0ba2203e126ddbea26813eae600e18202b /src/librustdoc/html/static/css/rustdoc.css
parent731e0bf721c1ec2c7843547e86b6157b40a437d1 (diff)
parent4ee16b8aea7f5f1f1c0f550e8357a9c68ff54c58 (diff)
downloadrust-caa64e5b5e7605a1c1428b2a402021bef83f3e1e.tar.gz
rust-caa64e5b5e7605a1c1428b2a402021bef83f3e1e.zip
Auto merge of #106149 - notriddle:notriddle/src-sidebar-toggle-pos, r=GuillaumeGomez
rustdoc: clean up src sidebar toggle position CSS

This PR makes the `464px` version of `#src-sidebar-toggle` the same as the `700px` version, with the button lower on the page so that it doesn't cover up the search form, and removes the left margin to make space for it.

## Before

![image](https://user-images.githubusercontent.com/1593513/209507474-0463e4b2-0bd4-497b-958c-ec4fdbb524fb.png)

## After

![image](https://user-images.githubusercontent.com/1593513/209507499-a32c1728-d4c9-46d9-821d-ba6f8d4d94d4.png)
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 5a94abab34a..1ba8d118b76 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -364,6 +364,10 @@ img {
 	line-height: 0;
 }
 
+.sub-logo-container {
+	margin-right: 32px;
+}
+
 .sub-logo-container > img {
 	height: 60px;
 	width: 60px;
@@ -671,9 +675,6 @@ nav.sub {
 .source nav.sub {
 	margin: 0 0 15px 0;
 }
-.source .search-form {
-	margin-left: 32px;
-}
 
 a {
 	text-decoration: none;
@@ -1833,13 +1834,6 @@ in storage.js
 		height: 35px;
 		width: 35px;
 	}
-
-	#src-sidebar-toggle {
-		top: 10px;
-	}
-	.source-sidebar-expanded #src-sidebar-toggle {
-		top: unset;
-	}
 }
 
 .variant,