Skip to content

Commit 3f3dabb

Browse files
Rollup merge of #34921 - GuillaumeGomez:css_fix, r=steveklabnik
[CSS] Fix unwanted top margin for toggle wrapper Fixes top margin. Before: ![before](https://cloud.githubusercontent.com/assets/3050060/16950833/72b2b956-4dc2-11e6-9d27-24507871b5a8.png) After (check "A view into a single entry in map" toggle wrapper more precisely): ![after](https://cloud.githubusercontent.com/assets/3050060/16950839/7835c6fc-4dc2-11e6-901a-ae8c4191baca.png) r? @steveklabnik
2 parents d62f8dd + 4a2116b commit 3f3dabb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,11 @@ span.since {
636636
margin-right: 5px;
637637
}
638638

639-
.enum > .toggle-wrapper > .collapse-toggle, .struct > .toggle-wrapper > .collapse-toggle {
639+
.toggle-wrapper > .collapse-toggle {
640640
left: 0;
641+
}
642+
643+
.variant + .toggle-wrapper > a {
641644
margin-top: 5px;
642645
}
643646

0 commit comments

Comments
 (0)