Skip to content

Commit 82b84bf

Browse files
Rollup merge of #85860 - pickfire:patch-5, r=GuillaumeGomez
Fix details rustdoc toggle for blanket impl In the meantime, allow all of the details to have the same top. Before ![image](https://user-images.githubusercontent.com/4687791/120214139-a673ed00-c266-11eb-9154-3a8148199c8f.png) ![image](https://user-images.githubusercontent.com/4687791/120214232-c5727f00-c266-11eb-8bda-871e6e04819e.png) After ![image](https://user-images.githubusercontent.com/4687791/120214121-9d831b80-c266-11eb-8c33-db1317c42375.png) ![image](https://user-images.githubusercontent.com/4687791/120214273-d4f1c800-c266-11eb-89ee-0f2b7c2e5bdb.png) I stumbled across this while wanting to do a details button for the layout.
2 parents f4d3f32 + 2970479 commit 82b84bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/static/rustdoc.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -1468,13 +1468,12 @@ details.rustdoc-toggle > summary.hideme::before {
14681468
details.rustdoc-toggle > summary:not(.hideme)::before {
14691469
position: absolute;
14701470
left: -23px;
1471-
top: initial;
1471+
top: 3px;
14721472
}
14731473

14741474
.impl-items > details.rustdoc-toggle > summary:not(.hideme)::before,
14751475
.undocumented > details.rustdoc-toggle > summary:not(.hideme)::before {
14761476
position: absolute;
1477-
top: 3px;
14781477
left: -2px;
14791478
}
14801479

0 commit comments

Comments
 (0)