Add "-" shortcut

This commit is contained in:
Guillaume Gomez
2017-11-07 22:44:18 +01:00
parent 7f6417e9b7
commit 5e116985eb
3 changed files with 4 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ r##"<!DOCTYPE html>
<dd>Switch tab</dd> <dd>Switch tab</dd>
<dt>&#9166;</dt> <dt>&#9166;</dt>
<dd>Go to active search result</dd> <dd>Go to active search result</dd>
<dt>+</dt> <dt style="width:31px;">+ / -</dt>
<dd>Collapse/expand all sections</dd> <dd>Collapse/expand all sections</dd>
</dl> </dl>
</div> </div>

View File

@@ -213,6 +213,7 @@
break; break;
case "+": case "+":
case "-":
ev.preventDefault(); ev.preventDefault();
toggleAllDocs(); toggleAllDocs();
break; break;

View File

@@ -582,13 +582,14 @@ body.blur > :not(#help) {
display: block; display: block;
margin-top: -1px; margin-top: -1px;
} }
#help dd { margin: 5px 33px; } #help dd { margin: 5px 35px; }
#help .infos { padding-left: 0; } #help .infos { padding-left: 0; }
#help h1, #help h2 { margin-top: 0; } #help h1, #help h2 { margin-top: 0; }
#help > div div { #help > div div {
width: 50%; width: 50%;
float: left; float: left;
padding: 20px; padding: 20px;
padding-left: 17px;
} }
.stab { .stab {