mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 04:27:58 +01:00
added version info to help file, fixed font size for tables
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -83,7 +83,10 @@ function help(section, easter)
|
||||
ret += "<br/>";
|
||||
}
|
||||
if (commands[i][HELP])
|
||||
{
|
||||
ret += commands[i][HELP]; // the help description
|
||||
ret += "<br/>";
|
||||
}
|
||||
}
|
||||
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
|
||||
'<link rel="stylesheet" href="chrome://vimperator/content/default.css" type="text/css">'+
|
||||
'</head><body><pre style="white-space: -moz-pre-wrap !important;"><table class="main"><tr><td>' + // should change that to: white-space: pre-wrap; once CSS3 hits firefox
|
||||
'<span class="version">version ' + g_vimperator_version + '</span>'+
|
||||
header +
|
||||
introduction +
|
||||
mappings +
|
||||
|
||||
Reference in New Issue
Block a user