From ca2f10f25f3b0b86deab9f87df619a90ba23b171 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Wed, 2 May 2007 04:18:33 +0000 Subject: [PATCH] added version info to help file, fixed font size for tables --- chrome/content/vimperator/default.css | 7 +++++++ chrome/content/vimperator/help.js | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/chrome/content/vimperator/default.css b/chrome/content/vimperator/default.css index 7480ab29..75036dc3 100644 --- a/chrome/content/vimperator/default.css +++ b/chrome/content/vimperator/default.css @@ -1,3 +1,8 @@ +/* the text in the tables is too large without that */ +table { + font-size: 1.0em; +} + table.main { border-width: 0px; border-style: none; @@ -68,7 +73,9 @@ table.settings { background-color: rgb(240, 250, 230); } + .command { font-weight: bold; color: #632610; } .mapping { font-weight: bold; color: #102663; } .setting { font-weight: bold; color: #106326; } .argument { color: #6A97D4; } +.version { position:absolute; top:10px; right:2%; color:#B0B0B0; text-align:right; } diff --git a/chrome/content/vimperator/help.js b/chrome/content/vimperator/help.js index 0179a575..6af725c5 100644 --- a/chrome/content/vimperator/help.js +++ b/chrome/content/vimperator/help.js @@ -83,7 +83,10 @@ function help(section, easter) ret += "
"; } if (commands[i][HELP]) + { ret += commands[i][HELP]; // the help description + ret += "
"; + } } else ret += "Sorry, no help available"; @@ -182,6 +185,7 @@ function help(section, easter) // XXX: stylesheet broken here? Have to add it in the vimperator.xul file ''+ '
' + // should change that to: white-space: pre-wrap; once CSS3 hits firefox + 'version ' + g_vimperator_version + ''+ header + introduction + mappings +