diff options
| author | Stephen Blott | 2016-04-19 13:07:43 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-22 14:52:45 +0100 |
| commit | 4a670aaa3d121834685a672acc904f9824721824 (patch) | |
| tree | ff0588cc60b6a345ef0840d08f08ba82ad701be6 | |
| parent | 1115f2719c3e647ca1c1764c1b8a0140211bf3fa (diff) | |
| download | vimium-4a670aaa3d121834685a672acc904f9824721824.tar.bz2 | |
Help dialog; better formatting of command names.
This needs more work.
| -rw-r--r-- | background_scripts/main.coffee | 5 | ||||
| -rw-r--r-- | content_scripts/vimium.css | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 9689dd79..23b7ab48 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -124,8 +124,9 @@ helpDialogHtmlForCommand = (html, isAdvanced, bindings, description, showCommand html.push "<tr class='vimiumReset #{"advanced" if isAdvanced}'>" if description html.push "<td class='vimiumReset'>#{bindings}</td>" - html.push "<td class='vimiumReset'></td><td class='vimiumReset vimiumHelpDescription'>", description - html.push("<span class='vimiumReset commandName'>(#{command})</span>") if showCommandNames + html.push "<td class='vimiumReset'></td><td class='vimiumReset vimiumHelpDescription'>", + "#{description}#{if showCommandNames then ":" else ""}" + html.push("<span class='vimiumReset commandName'>#{command}</span>") if showCommandNames else html.push "<td class='vimiumReset' colspan='3' style='text-align: left;'>", bindings html.push("</td></tr>") diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index 18908692..6037c9c2 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -231,7 +231,10 @@ div#vimiumHelpDialog td.vimiumHelpDescription { font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:14px; } -div#vimiumHelpDialog div.commandName { font-family:"courier new"; } +div#vimiumHelpDialog span.commandName { + font-family:"courier new"; + color: #555; +} /* Advanced commands are hidden by default until you show them. */ div#vimiumHelpDialog tr.advanced { display: none; } div#vimiumHelpDialog.showAdvanced tr.advanced { display: table-row; } |
