1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 14:02:28 +01:00

use the hl-Title class for the completion widget title

This commit is contained in:
Doug Kearns
2008-09-16 16:09:14 +00:00
parent 2fe5bd2913
commit 0d2e00eb6b
8 changed files with 15 additions and 15 deletions

View File

@@ -203,7 +203,7 @@ liberator.Addressbook = function () //{{{
else
{
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>Name</th><th>Address</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>Name</th><th>Address</th></tr>";
for (var i = 0; i < addresses.length; i++)
{
var displayName = liberator.util.escapeHTML(liberator.util.clip(addresses[i][0], 50));

View File

@@ -235,7 +235,7 @@ liberator.Bookmarks = function () //{{{
{
var sh = getWebNavigation().sessionHistory;
var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "jumps") + "<br/>" + "<table>";
list += "<tr style=\"text-align: left;\" class=\"hl-Title\"><th colspan=\"2\">jump</th><th>title</th><th>URI</th></tr>";
list += "<tr class=\"hl-Title\" align=\"left\"><th colspan=\"2\">jump</th><th>title</th><th>URI</th></tr>";
var num = -sh.index;
for (var i = 0; i < sh.count; i++)
@@ -501,7 +501,7 @@ liberator.Bookmarks = function () //{{{
var title, url, tags, keyword, extra;
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>title</th><th>URL</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>title</th><th>URL</th></tr>";
for (var i = 0; i < items.length; i++)
{
title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50));
@@ -805,7 +805,7 @@ liberator.History = function () //{{{
else
{
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>title</th><th>URL</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>title</th><th>URL</th></tr>";
for (var i = 0; i < items.length; i++)
{
var title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50));
@@ -983,7 +983,7 @@ liberator.QuickMarks = function () //{{{
}
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>QuickMark</th><th>URL</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>QuickMark</th><th>URL</th></tr>";
for (var i = 0; i < marks.length; i++)
{

View File

@@ -1151,7 +1151,7 @@ liberator.Buffer = function () //{{{
// TODO: could this be useful for other commands?
function createTable(data)
{
var ret = "<table><tr><th class='hl-Title' style='font-weight: bold;' align='left' colspan='2'>" +
var ret = "<table><tr><th class='hl-Title' align='left' colspan='2'>" +
data[data.length - 1][0] + "</th></tr>";
if (data.length - 1)
@@ -1755,7 +1755,7 @@ liberator.Marks = function () //{{{
}
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>mark</th><th>line</th><th>col</th><th>file</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>mark</th><th>line</th><th>col</th><th>file</th></tr>";
for (var i = 0; i < marks.length; i++)
{
list += "<tr>" +

View File

@@ -694,7 +694,7 @@ liberator.Commands = function () //{{{
if (cmdlist.length > 0)
{
var str = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>Name</th><th>Args</th><th>Definition</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>Name</th><th>Args</th><th>Definition</th></tr>";
for (var i = 0; i < cmdlist.length; i++)
{
// programmatically added user commands have a null replacementText

View File

@@ -278,7 +278,7 @@ const liberator = (function () //{{{
var usage = "<table>";
for (let command in liberator.commands)
{
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> :" +
usage += "<tr><td class=\"hl-Title\" style=\"padding-right: 20px\"> :" +
liberator.util.escapeHTML(command.name) + "</td><td>" +
liberator.util.escapeHTML(command.description) + "</td></tr>";
}
@@ -430,7 +430,7 @@ const liberator = (function () //{{{
var str = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table>" +
"<tr align=\"left\" class=\"hl-Title\"><th colspan=\"3\">Code execution summary</th></tr>" +
"<tr class=\"hl-Title\" align=\"left\"><th colspan=\"3\">Code execution summary</th></tr>" +
"<tr><td> Executed:</td><td align=\"right\"><span style=\"color: green\">" + count + "</span></td><td>times</td></tr>" +
"<tr><td> Average time:</td><td align=\"right\"><span style=\"color: green\">" + each.toFixed(2) + "</span></td><td>" + eachUnits + "</td></tr>" +
"<tr><td> Total time:</td><td align=\"right\"><span style=\"color: red\">" + total.toFixed(2) + "</span></td><td>" + totalUnits + "</td></tr>" +
@@ -499,7 +499,7 @@ const liberator = (function () //{{{
var usage = "<table>";
for (let mapping in liberator.mappings)
{
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> " +
usage += "<tr><td class=\"hl-Title\" style=\"padding-right: 20px\"> " +
liberator.util.escapeHTML(mapping.names[0]) + "</td><td>" +
liberator.util.escapeHTML(mapping.description) + "</td></tr>";
}

View File

@@ -841,7 +841,7 @@ liberator.Options = function () //{{{
list: function (onlyNonDefault, scope)
{
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>--- Options ---</th></tr>";
"<table><tr class=\"hl-Title\" align=\"left\"><th>--- Options ---</th></tr>";
var name, value, def;
if (!scope)
@@ -893,7 +893,7 @@ liberator.Options = function () //{{{
var prefArray = prefService.getChildList("", { value: 0 });
prefArray.sort();
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>--- " + liberator.config.hostApplication +
"<table><tr class=\"hl-Title\" align=\"left\"><th>--- " + liberator.config.hostApplication +
" Options ---</th></tr>";
var name, value, defaultValue;

View File

@@ -1247,7 +1247,7 @@ liberator.ItemList = function (id) //{{{
var div = doc.createElement("div");
div.setAttribute("class", "ex-command-output hl-Normal");
div.innerHTML = "<span style=\"color: magenta; font-weight: bold\">Completions:</span>";
div.innerHTML = "<span class=\"hl-Title\">Completions:</span>";
var table = doc.createElement("table");
table.setAttribute("width", "100%");
table.setAttribute("style", "table-layout: fixed; width: 100%");

View File

@@ -143,7 +143,7 @@ liberator-statusline-field-progress {
.hl-Title {
background-color: white;
color: magenta;
font-weight: bold;
font-weight: bold !important;
}
.hl-Warning {
background-color: white;