From a7446f09538e0b0314611c9d847016a85f735644 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 22 Apr 2016 16:55:02 +0100 Subject: 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. --- background_scripts/main.coffee | 5 ++--- 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 "" if description html.push "#{bindings}" - html.push "", - "#{description}#{if showCommandNames then ":" else ""}" - html.push("#{command}") if showCommandNames + html.push "", description + html.push("(#{command})") if showCommandNames else html.push "", bindings html.push("") 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; } -- cgit v1.2.3