Skip to content

Commit c2bf210

Browse files
Rollup merge of #42011 - rap2hpoutre:patch-5, r=GuillaumeGomez
improve collapse toggle render (css) The `[-]` toggle for functions in docs _seems_ too big. It's just an impression, but it's something I noticed long time ago (maybe I have bad taste). I never thought to fix it, but, today I think: "Ok, why not suggest it.". Feel free to close without explanation! Preview changes below: From this: <img width="1003" alt="capture d ecran 2017-05-15 a 17 14 45" src="https://cloud.githubusercontent.com/assets/1575946/26064816/5c84de86-3992-11e7-976b-41c625cace0f.png"> To this: <img width="996" alt="capture d ecran 2017-05-15 a 17 15 02" src="https://cloud.githubusercontent.com/assets/1575946/26064854/78325dac-3992-11e7-88f6-2c43db43421c.png">
2 parents 6b4f3a7 + 7a50784 commit c2bf210

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,11 @@ a.test-arrow:hover{
617617
top: 0;
618618
}
619619

620+
h3 > .collapse-toggle, h4 > .collapse-toggle {
621+
font-size: 0.8em;
622+
top: 5px;
623+
}
624+
620625
.toggle-wrapper > .collapse-toggle {
621626
left: -24px;
622627
margin-top: 0px;

0 commit comments

Comments
 (0)