Skip to content

Commit caa64e5

Browse files
committed
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)
2 parents 731e0bf + 4ee16b8 commit caa64e5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/librustdoc/html/static/css/rustdoc.css

+4-10
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ img {
364364
line-height: 0;
365365
}
366366

367+
.sub-logo-container {
368+
margin-right: 32px;
369+
}
370+
367371
.sub-logo-container > img {
368372
height: 60px;
369373
width: 60px;
@@ -671,9 +675,6 @@ nav.sub {
671675
.source nav.sub {
672676
margin: 0 0 15px 0;
673677
}
674-
.source .search-form {
675-
margin-left: 32px;
676-
}
677678

678679
a {
679680
text-decoration: none;
@@ -1833,13 +1834,6 @@ in storage.js
18331834
height: 35px;
18341835
width: 35px;
18351836
}
1836-
1837-
#src-sidebar-toggle {
1838-
top: 10px;
1839-
}
1840-
.source-sidebar-expanded #src-sidebar-toggle {
1841-
top: unset;
1842-
}
18431837
}
18441838

18451839
.variant,

0 commit comments

Comments
 (0)