Fix bug 399402, make about:plugins without CSS more readable. r=gemal, sr=neil rashbrook, a=damon.

This commit is contained in:
jruderman@hmc.edu 2007-11-09 14:30:06 -08:00
parent 6f0f37e625
commit 246945af45
2 changed files with 14 additions and 13 deletions

View File

@ -36,7 +36,7 @@
* ***** END LICENSE BLOCK ***** */
/* ===== plugins.css =====================================================
== Styles used by the about:plugins dialog.
== Styles used by the about:plugins page.
======================================================================= */
body {
@ -52,13 +52,13 @@ div#outside {
margin-right: 5%;
}
div#plugs {
#plugs {
text-align: center;
font-size: xx-large;
font-weight: bold;
}
div#noplugs {
#noplugs {
font-size: x-large;
font-weight: bold;
}
@ -67,7 +67,7 @@ div#findmore {
margin-top: 2em;
}
div.plugname {
.plugname {
margin-top: 2em;
margin-bottom: 1em;
font-size: large;
@ -89,6 +89,11 @@ table {
border-spacing: 0px;
}
th, td {
border: none;
padding: 3px;
}
th {
text-align: center;
background-color: Highlight;
@ -105,10 +110,6 @@ td {
border-top: 1px dotted ThreeDShadow;
}
th, td {
padding: 3px;
}
th.type, th.suff {
width: 20%;
}

View File

@ -70,9 +70,9 @@
var numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("<div id=\"plugs\">" + pluginsbundle.GetStringFromName("installedplugins_label") + "<\/div>");
document.writeln("<h1 id=\"plugs\">" + pluginsbundle.GetStringFromName("installedplugins_label") + "<\/h1>");
else
document.writeln("<div id=\"noplugs\">" + pluginsbundle.GetStringFromName("nopluginsareinstalled_label") + "<\/div>");
document.writeln("<h1 id=\"noplugs\">" + pluginsbundle.GetStringFromName("nopluginsareinstalled_label") + "<\/h1>");
document.writeln("<div id=\"findmore\">" + pluginsbundle.GetStringFromName("findmore_label") + " ");
document.writeln("<a href=\"" + regionbundle.GetStringFromName("more_plugins_url") + "\">" + regionbundle.GetStringFromName("more_plugins_label") + "<\/a>.");
@ -88,9 +88,9 @@
if (plugin)
{
document.write("<div class=\"plugname\">");
document.write("<h2 class=\"plugname\">");
document.write(plugin.name);
document.writeln("<\/div>");
document.writeln("<\/h2>");
document.writeln("<dl><dd><span class=\"label\">" + pluginsbundle.GetStringFromName("filename_label") + "<\/span> ");
document.write(plugin.filename);
@ -98,7 +98,7 @@
document.write(plugin.description);
document.writeln("<\/dd><\/dl>");
document.writeln("<table class=\"contenttable\">");
document.writeln("<table border=\"1\" class=\"contenttable\">");
document.writeln("<thead>");
document.writeln("<tr><th class=\"type\">" + pluginsbundle.GetStringFromName("mimetype_label") + "<\/th>");
document.writeln("<th class=\"desc\">" + pluginsbundle.GetStringFromName("description_label") + "<\/th>");