diff options
| author | Stephen Blott | 2016-04-22 16:55:02 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-22 16:55:04 +0100 |
| commit | a7446f09538e0b0314611c9d847016a85f735644 (patch) | |
| tree | 91a43d4b5171e38ea0832d1012bfcde8532fa3c3 | |
| parent | 4c707140985ae03e3c523f2e6e4b6cb4c8465236 (diff) | |
| download | vimium-a7446f09538e0b0314611c9d847016a85f735644.tar.bz2 | |
Nicer styling of command names in help dialog.
The commands names (in the help dialog) look nicer in italics. They
also format better that way.
| -rw-r--r-- | background_scripts/main.coffee | 5 | ||||
| -rw-r--r-- | content_scripts/vimium.css | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index cb978db3..653b61e7 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -124,9 +124,8 @@ 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}#{if showCommandNames then ":" else ""}" - html.push("<span class='vimiumReset commandName'>#{command}</span>") if showCommandNames + html.push "<td class='vimiumReset'></td><td class='vimiumReset vimiumHelpDescription'>", description + 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 cddfbc97..f4029509 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -236,8 +236,9 @@ div#vimiumHelpDialog td.vimiumHelpDescription { font-size:14px; } div#vimiumHelpDialog span.commandName { - font-family:"courier new"; - color: #555; + /* font-family:"courier new"; */ + /* color: #555; */ + font-style: italic; } /* Advanced commands are hidden by default until you show them. */ div#vimiumHelpDialog tr.advanced { display: none; } |
