Skip to content

Commit 661c507

Browse files
Rollup merge of #45849 - GuillaumeGomez:more-shortcut, r=QuietMisdreavus
Add "-" shortcut Fixes #45847. r? @Havvy
2 parents 6392a16 + 5e11698 commit 661c507

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ r##"<!DOCTYPE html>
105105
<dd>Switch tab</dd>
106106
<dt>&#9166;</dt>
107107
<dd>Go to active search result</dd>
108-
<dt>+</dt>
108+
<dt style="width:31px;">+ / -</dt>
109109
<dd>Collapse/expand all sections</dd>
110110
</dl>
111111
</div>

src/librustdoc/html/static/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
break;
214214

215215
case "+":
216+
case "-":
216217
ev.preventDefault();
217218
toggleAllDocs();
218219
break;

src/librustdoc/html/static/rustdoc.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,14 @@ body.blur > :not(#help) {
582582
display: block;
583583
margin-top: -1px;
584584
}
585-
#help dd { margin: 5px 33px; }
585+
#help dd { margin: 5px 35px; }
586586
#help .infos { padding-left: 0; }
587587
#help h1, #help h2 { margin-top: 0; }
588588
#help > div div {
589589
width: 50%;
590590
float: left;
591591
padding: 20px;
592+
padding-left: 17px;
592593
}
593594

594595
.stab {

0 commit comments

Comments
 (0)