bug 280190 Make netError.xhtml look better. Also makes it themable.

patch by Henrik Skupin <hskupin@gmail.com> a=bsmedberg/mconnor

Core part: r=biesi sr=peterv
Toolkit part: r=mconnor
SeaMonkey part: r=neil sr=darin
This commit is contained in:
cbiesinger%web.de 2005-07-28 18:00:28 +00:00
parent 97e17b2841
commit d62314530b
15 changed files with 687 additions and 209 deletions

View File

@ -6,10 +6,10 @@
"DTD/xhtml1-strict.dtd">
%htmlDTD;
<!ENTITY % netErrorDTD
SYSTEM "chrome://global/locale/netError.dtd">
SYSTEM "chrome://global/locale/netError.dtd">
%netErrorDTD;
<!ENTITY % globalDTD
SYSTEM "chrome://global/locale/global.dtd">
SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
@ -35,6 +35,8 @@
-
- Contributor(s):
- Adam Lock <adamlock@netscape.com>
- William R. Price <wrprice@alumni.rice.edu>
- Henrik Skupin <mozilla@hskupin.info>
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
@ -51,194 +53,150 @@
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&loadError.label;</title>
<link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
<head>
<title>&loadError.label;</title>
<style><![CDATA[
body {
font: message-box;
}
div.invisible {
display: none;
}
div.et_visible {
margin-top: 2em;
margin-bottom: 1em;
font-size: large;
text-align: start;
font-weight: bold;
color: #5D616E;
}
div#shortDesc {
width: 90%;
text-align: justify;
margin-left: 5%;
margin-right: 5%;
}
div#longDesc {
width: 90%;
text-align: justify;
margin-left: 5%;
margin-right: 5%;
}
div.ld_visible {
display: block;
background-color: #CEE0FF;
}
]]></style>
</head>
<!-- Include the localized error titles/descriptions -->
<script type="application/x-javascript">
var errorTitle = {
generic: "&generic.title;",
dnsNotFound: "&dnsNotFound.title;",
fileNotFound: "&fileNotFound.title;",
malformedURI: "&malformedURI.title;",
protocolNotFound: "&protocolNotFound.title;",
connectionFailure: "&connectionFailure.title;",
netTimeout: "&netTimeout.title;",
redirectLoop: "&redirectLoop.title;",
unknownSocketType: "&unknownSocketType.title;",
netReset: "&netReset.title;",
netOffline: "&netOffline.title;",
netInterrupt: "&netInterrupt.title;",
deniedPortAccess: "&deniedPortAccess.title;",
proxyResolveFailure: "&proxyResolveFailure.title;",
proxyConnectFailure: "&proxyConnectFailure.title;"
};
var errorDesc = {
generic: "&generic.longDesc;",
dnsNotFound: "&dnsNotFound.longDesc;",
fileNotFound: "&fileNotFound.longDesc;",
malformedURI: "&malformedURI.longDesc;",
protocolNotFound: "&protocolNotFound.longDesc;",
connectionFailure: "&connectionFailure.longDesc;",
netTimeout: "&netTimeout.longDesc;",
redirectLoop: "&redirectLoop.longDesc;",
unknownSocketType: "&unknownSocketType.longDesc;",
netReset: "&netReset.longDesc;",
netOffline: "&netOffline.longDesc;",
netInterrupt: "&netInterrupt.longDesc;",
deniedPortAccess: "&deniedPortAccess.longDesc;",
proxyResolveFailure: "&proxyResolveFailure.longDesc;",
proxyConnectFailure: "&proxyConnectFailure.longDesc;"
};
</script>
<script type="application/x-javascript"><![CDATA[
// Error url MUST be formatted like this:
// moz-neterror:page?e=error&u=url&d=desc
<body style="font: message-box;" dir="&locale.dir;">
// Note that this file uses document.documentURI to get
// the URL (with the format from above). This is because
// document.location.href gets the current URI off the docshell,
// which is the URL displayed in the location bar, i.e.
// the URI that the user attempted to load.
<!-- ERROR TITLE -->
<div id="errorTitle">
<div id="et_malformedURI" class="invisible">
<p>&malformedURI.title;</p>
</div>
<div id="et_fileNotFound" class="invisible">
<p>&fileNotFound.title;</p>
</div>
<div id="et_dnsNotFound" class="invisible">
<p>&dnsNotFound.title;</p>
</div>
<div id="et_protocolNotFound" class="invisible">
<p>&protocolNotFound.title;</p>
</div>
<div id="et_connectionFailure" class="invisible">
<p>&connectionFailure.title;</p>
</div>
<div id="et_netTimeout" class="invisible">
<p>&netTimeout.title;</p>
</div>
<div id="et_redirectLoop" class="invisible">
<p>&redirectLoop.title;</p>
</div>
<div id="et_unknownSocketType" class="invisible">
<p>&unknownSocketType.title;</p>
</div>
<div id="et_netReset" class="invisible">
<p>&netReset.title;</p>
</div>
<div id="et_netOffline" class="invisible">
<p>&netOffline.title;</p>
</div>
</div>
<!-- SHORT DESCRIPTION -->
<div id="shortDesc">
<p id="sd"> </p>
</div>
<!-- LONG DESCRIPTION -->
<div id="longDesc">
<div id="ld_malformedURI" class="invisible">
<p>&malformedURI.longDesc;</p>
</div>
<div id="ld_fileNotFound" class="invisible">
<p>&fileNotFound.longDesc;</p>
</div>
<div id="ld_dnsNotFound" class="invisible">
<p>&dnsNotFound.longDesc;</p>
</div>
<div id="ld_protocolNotFound" class="invisible">
<p>&protocolNotFound.longDesc;</p>
</div>
<div id="ld_connectionFailure" class="invisible">
<p>&connectionFailure.longDesc;</p>
</div>
<div id="ld_netTimeout" class="invisible">
<p>&netTimeout.longDesc;</p>
</div>
<div id="ld_redirectLoop" class="invisible">
<p>&redirectLoop.longDesc;</p>
</div>
<div id="ld_unknownSocketType" class="invisible">
<p>&unknownSocketType.longDesc;</p>
</div>
<div id="ld_netReset" class="invisible">
<p>&netReset.longDesc;</p>
</div>
<div id="ld_netOffline" class="invisible">
<p>&netOffline.longDesc;</p>
</div>
</div>
<p><input type="button" value="&retry.label;" id="retry" onclick="retryThis();"/></p>
<script type="application/x-javascript"><![CDATA[
// Error url MUST be formatted like this:
// moz-neterror:page?e=error&u=url&d=desc
// Note that this file uses document.documentURI to get
// the URL (with the format from above). This is because
// document.location.href gets the current URI off the docshell,
// which is the URL displayed in the location bar, i.e.
// the URI that the user attempted to load.
function getErrorCode()
{
var url = document.documentURI;
var error = url.search(/e\=/);
var duffUrl = url.search(/\&u\=/);
return decodeURIComponent(url.slice(error + 2, duffUrl));
}
function getDuffUrl()
{
var url = document.documentURI;
var duffUrl = url.search(/u\=/);
var desc = url.search(/\&d\=/);
return decodeURIComponent(url.slice(duffUrl + 2, desc));
}
function getDescription()
{
var url = document.documentURI;
var desc = url.search(/d\=/);
return decodeURIComponent(url.slice(desc + 2));
}
function retryThis()
{
// Session history has the URL of the page that failed
// to load, not the one of the error page. So, just call
// reload(), which will also repost POST data correctly.
location.reload();
}
// Note: It is important to run this code inline, instead of using
// an onload handler. This is because error pages are loaded as
// LOAD_BACKGROUND, which means that onload handlers will not be executed.
var err = getErrorCode();
var duffUrl = getDuffUrl();
var i;
// Fill in the title
var et = document.getElementById("et_" + err);
if (et) {
et.className = "et_visible";
}
// Fill in the short description
var sd = document.getElementById("shortDesc");
for (i = 0; i < sd.childNodes.length; i++)
{
var n = sd.childNodes.item(i);
if (n.nodeType == Node.TEXT_NODE)
function getErrorCode()
{
n.nodeValue = getDescription();
break;
var url = document.documentURI;
var error = url.search(/e\=/);
var duffUrl = url.search(/\&u\=/);
return decodeURIComponent(url.slice(error + 2, duffUrl));
}
}
// Long description
var ld = document.getElementById("ld_" + err);
if (ld) {
ld.className = "ld_visible";
}
]]></script>
</body>
function getDescription()
{
var url = document.documentURI;
var desc = url.search(/d\=/);
// desc == -1 if not found; if so, return an empty string
// instead of what would turn out to be portions of the URI
if (desc == -1) return "";
return decodeURIComponent(url.slice(desc + 2));
}
function retryThis()
{
// Session history has the URL of the page that failed
// to load, not the one of the error page. So, just call
// reload(), which will also repost POST data correctly.
location.reload();
}
function parseFakeTags(instr)
{
return instr.replace(/\[([^\]]+)\]/g, '<$1>');
}
function initPage()
{
var err = getErrorCode();
// Map unknown error codes to generic
if (!(err in errorDesc && err in errorTitle))
err = "generic";
var title = document.getElementById("errorTitleText");
if (title)
title.textContent = errorTitle[err];
var sd = document.getElementById("errorShortDescText");
if (sd)
sd.textContent = getDescription();
var ld = document.getElementById("errorLongDesc");
if (ld)
ld.innerHTML = parseFakeTags(errorDesc[err]);
}
]]></script>
</head>
<body dir="&locale.dir;">
<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">
<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText" />
</div>
<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">
<!-- Short Description -->
<div id="errorShortDesc">
<p id="errorShortDescText" />
</div>
<!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
<div id="errorLongDesc" />
</div>
<!-- Retry Button -->
<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="errorTryAgain" label="&retry.label;" oncommand="retryThis();" />
</div>
<!--
- Note: It is important to run the script this way, instead of using
- an onload handler. This is because error pages are loaded as
- LOAD_BACKGROUND, which means that onload handlers will not be executed.
-->
<script type="application/x-javascript">initPage();</script>
</body>
</html>

View File

@ -1,37 +1,49 @@
<!ENTITY loadError.label "Page load error">
<!ENTITY retry.label "Try again">
<!ENTITY loadError.label "Page Load Error">
<!ENTITY retry.label "Try Again">
<!-- Specific error messages -->
<!ENTITY generic.longDesc "The page could not be loaded, possibly because it does not exist or the location is incorrect.<br/>Check that the address (URL) is valid and correctly formatted.">
<!ENTITY connectionFailure.title "Failed to Connect">
<!ENTITY connectionFailure.longDesc "[p]Though the site seems valid, the browser was unable to establish a connection.[/p][ul][li]Could the site be temporarily unavailable? Try again later.[/li][li]Are you unable to browse other sites? Check the computer's network connection.[/li][li]Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.[/li][/ul]">
<!ENTITY malformedURI.title "Invalid Address Error">
<!ENTITY malformedURI.longDesc "The address (URL) is not a valid format and cannot be read. A typical address will start with &quot;http://&quot;, followed by an address, (e.g. www.netscape.com), followed by a path to the content (or just &quot;/&quot;). A common cause for the problem is using backslashes(\) instead of forward slashes (/).">
<!ENTITY deniedPortAccess.title "Port Restricted for Security Reasons">
<!ENTITY deniedPortAccess.longDesc "[p]The requested address specified a port (e.g. [q]mozilla.org:80[/q] for port 80 on mozilla.org) normally used for purposes [em]other[/em] than Web browsing. The browser has canceled the request for your protection and security.[/p]">
<!ENTITY fileNotFound.title "File Not Found Error">
<!ENTITY fileNotFound.longDesc "The file specified by the address (URL) cannot be found. Check that the file exists and that you have sufficient permissions to view it.">
<!ENTITY dnsNotFound.title "Address Not Found">
<!ENTITY dnsNotFound.longDesc "[p]The browser could not find the host server for the provided address.[/p][ul][li]Did you make a mistake when typing the domain? (e.g. [q][strong]ww[/strong].mozilla.org[/q] instead of [q][strong]www[/strong].mozilla.org[/q])[/li][li]Are you certain this domain address exists? Its registration may have expired.[/li][li]Are you unable to browse other sites? Check your network connection and DNS server settings.[/li][li]Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.[/li][/ul]">
<!ENTITY dnsNotFound.title "Address Not Found Error">
<!ENTITY dnsNotFound.longDesc "The address (URL) does not correspond to a known site and could not be loaded. This could be due to a misspelling in the address or because the site does not exist. If the address is known to be valid, or if the problem occurs for many sites, it may be an issue with your proxy service (if you use one) or the directory name service lookup. In such cases you should consult your system documentation, administrator or Internet Service Provider (ISP) as appropriate for further assistance.">
<!ENTITY fileNotFound.title "File Not Found">
<!ENTITY fileNotFound.longDesc "[ul][li]Could the item have been renamed, removed, or relocated?[/li][li]Is there a spelling, capitalization, or other typographical error in the address?[/li][li]Do you have sufficient access permissions to the requested item?[/li][/ul]">
<!ENTITY protocolNotFound.title "Protocol Not Known Error">
<!ENTITY protocolNotFound.longDesc "The address (URL) starts with a protocol that is not recognized by the browser. A protocol is the part at the front of the address, such as http: or ftp: which tells the browser how to connect to the site. In this instance, the protocol is unknown so loading cannot continue. Check that the address is correct before retrying.">
<!ENTITY generic.title "Cannot Complete Request">
<!ENTITY generic.longDesc "[p]Additional information about this problem or error is currently unavailable.[/p]">
<!ENTITY connectionFailure.title "Connection Failure Error">
<!ENTITY connectionFailure.longDesc "The browser was unable to connect to the specified site, even though it exists. This may be because the site does not accept connections from your computer, the service may be down, or the site does not support the service or port that you tried to connect to.">
<!ENTITY malformedURI.title "Invalid Address">
<!ENTITY malformedURI.longDesc "[p]The provided address is not in a recognized format. Please check the location bar for mistakes and try again.[/p]">
<!ENTITY netTimeout.title "Net Timeout Error">
<!ENTITY netTimeout.longDesc "The browser timed out while trying to connect to the specified site. The site may be experiencing high loads that are slowing it down, or network problems are preventing data from being received from it in a timely manner. If the site is likely to be busy, consider waiting a few moments before retrying the request.">
<!ENTITY netInterrupt.title "Data Transfer Interrupted">
<!ENTITY netInterrupt.longDesc "[p]The browser connected successfully, but the connection was interrupted while transferring information. Please try again.[/p][ul][li]Are you unable to browse other sites? Check the computer's network connection.[/li][li]Still having trouble? Consult your network administrator or Internet provider for assistance.[/li][/ul]">
<!ENTITY redirectLoop.title "Redirect Loop Error">
<!ENTITY redirectLoop.longDesc "The browser has stopped a connection because the site is redirecting requests to itself in a manner which prevents it from ever completing.">
<!ENTITY netOffline.title "Offline Mode">
<!ENTITY netOffline.longDesc "[p]The browser is operating in its offline mode and cannot connect to the requested item.[/p][ul][li]Is the computer connected to an active network?[/li][li]Place the browser in online mode and try again.[/li][/ul]">
<!ENTITY unknownSocketType.title "Unknown Socket Error">
<!ENTITY unknownSocketType.longDesc "The site responded to the network request in an unexpected manner. This may be due to address (URL) using the wrong protocol for the specified port, or a non-standard configuration on the site which is running different services than expected.">
<!ENTITY netReset.title "Connection Interrupted">
<!ENTITY netReset.longDesc "[p]The network link was interrupted while negotiating a connection. Please try again.[/p]">
<!ENTITY netReset.title "Net Reset Error">
<!ENTITY netReset.longDesc "The link to the site was dropped unexpectedly while negotiating a connection or transferring data. This may be due to a network fault somewhere between the site and your computer. If the problem persists, consult your system documentation, administrator or Internet Service Provider (ISP) as appropriate for further assistance.">
<!ENTITY netTimeout.title "Network Timeout">
<!ENTITY netTimeout.longDesc "[p]The requested site did not respond to a connection request and the browser has stopped waiting for a reply.[/p][ul][li]Could the server be experiencing high demand or a temporary outage? Try again later.[/li][li]Are you unable to browse other sites? Check the computer's network connection.[/li][li]Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.[/li][li]Still having trouble? Consult your network administrator or Internet provider for assistance.[/li][/ul]">
<!ENTITY netOffline.title "Offline Error">
<!ENTITY netOffline.longDesc "The browser is currently offline and cannot connect to the requested site. Place your browser in online mode before trying again.">
<!ENTITY protocolNotFound.title "Unknown Protocol">
<!ENTITY protocolNotFound.longDesc "[p]The address specifies a protocol (e.g. [q]wxyz://[/q]) the browser does not recognize, so the browser cannot properly connect to the site.[/p][ul][li]Are you trying to access multimedia or other non-text services? Check the site for extra requirements.[/li][li]Some protocols may require third-party software or plugins before the browser can recognize them.[/li][/ul]">
<!ENTITY proxyConnectFailure.title "Proxy Server Refused Connection">
<!ENTITY proxyConnectFailure.longDesc "[p]The browser is configured to use a proxy server, but the proxy refused a connection.[/p][ul][li]Is the browser's proxy configuration correct? Check the settings and try again.[/li][li]Does the proxy service allow connections from this network?[/li][li]Still having trouble? Consult your network administrator or Internet provider for assistance.[/li][/ul]">
<!ENTITY proxyResolveFailure.title "Proxy Server Not Found">
<!ENTITY proxyResolveFailure.longDesc "[p]The browser is configured to use a proxy server, but the proxy could not be found.[/p][ul][li]Is the browser's proxy configuration correct? Check the settings and try again.[/li][li]Is the computer connected to an active network?[/li][li]Still having trouble? Consult your network administrator or Internet provider for assistance.[/li][/ul]">
<!ENTITY redirectLoop.title "Redirect Loop">
<!ENTITY redirectLoop.longDesc "[p]The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.[/p][ul][li]Have you disabled or blocked cookies required by this site?[/li][li][em]NOTE[/em]: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.[/li][/ul]">
<!ENTITY unknownSocketType.title "Incorrect Response">
<!ENTITY unknownSocketType.longDesc "[p]The site responded to the network request in an unexpected way and the browser cannot continue.[/p]">

View File

@ -0,0 +1,100 @@
/*
* This defines the look-and-feel styling of the error pages.
* (see: netError.xhtml)
*
* Original styling by William Price <bugzilla@mob.rice.edu>
* Updated by: Steven Garrity <steven@silverorange.com>
* Henrik Skupin <mozilla@hskupin.info>
*/
html {
background: -moz-Dialog;
}
body {
margin: 0;
padding: 0 1em;
color: -moz-FieldText;
font: message-box;
}
h1 {
margin: 0 0 .6em 0;
border-bottom: 1px solid ThreeDLightShadow;
font-size: 160%;
}
ul, ol {
margin: 0;
-moz-margin-start: 1.5em;
padding: 0;
}
ul > li, ol > li {
margin-bottom: .5em;
}
ul {
list-style: square;
}
#errorPageContainer {
position: relative;
min-width: 13em;
max-width: 52em;
margin: 4em auto;
border: 1px solid ThreeDShadow;
-moz-border-radius: 10px;
padding: 3em;
-moz-padding-start: 30px;
background: url("chrome://global/skin/icons/alert-exclam.gif") left 0 no-repeat -moz-Field;
-moz-background-origin: content;
}
body[dir="rtl"] #errorPageContainer {
background-position: right 0;
}
#errorTitle {
-moz-margin-start: 64px;
}
#errorLongContent {
-moz-margin-start: 64px;
}
#errorShortDesc > p {
border-bottom: 1px solid ThreeDLightShadow;
padding-bottom: 1em;
font-size: 130%;
}
#errorLongDesc {
-moz-padding-end: 3em;
font-size: 110%;
}
#errorLongDesc > p {
}
#errorTryAgain {
margin-top: 2em;
-moz-margin-start: 64px;
}
#brand {
position: absolute;
right: 0;
bottom: -1.5em;
-moz-margin-end: 10px;
opacity: .4;
}
body[dir="rtl"] #brand {
right: auto;
left: 0;
}
#brand > p {
margin: 0;
}

View File

@ -291,6 +291,7 @@ classic.jar:
skin/classic/global/tree/twisty-clsd.gif (global/win/tree/twisty-clsd.gif)
skin/classic/global/progressmeter/progressmeter-busy.gif (global/win/progressmeter/progressmeter-busy.gif)
#endif
skin/classic/global/netError.css (global/netError.css)
skin/classic/global/plugins.css (global/plugins.css)
skin/classic/global/printing.css (global/printing.css)
skin/classic/global/filepicker/blank.gif (global/filepicker/blank.gif)

View File

@ -0,0 +1,100 @@
/*
* This defines the look-and-feel styling of the error pages.
* (see: netError.xhtml)
*
* Original styling by William Price <bugzilla@mob.rice.edu>
* Updated by: Steven Garrity <steven@silverorange.com>
* Henrik Skupin <mozilla@hskupin.info>
*/
html {
background: #FFF;
}
body {
margin: 0;
padding: 0 1em;
color: #22262F;
font: message-box;
}
h1 {
margin: 0 0 .6em 0;
border-bottom: 1px solid ThreeDShadow;
font-size: 160%;
}
ul, ol {
margin: 0;
-moz-margin-start: 1.5em;
padding: 0;
}
ul > li, ol > li {
margin-bottom: .5em;
}
ul {
list-style: square;
}
#errorPageContainer {
position: relative;
min-width: 13em;
max-width: 52em;
margin: 4em auto;
border: 1px solid rgb(73, 79, 93);
-moz-border-radius: 10px;
padding: 3em;
-moz-padding-start: 30px;
background: url("chrome://global/skin/icons/alert-exclam.gif") left 0 no-repeat #C7D0D9;
-moz-background-origin: content;
}
body[dir="rtl"] #errorPageContainer {
background-position: right 0;
}
#errorTitle {
-moz-margin-start: 80px;
}
#errorLongContent {
-moz-margin-start: 80px;
}
#errorShortDesc > p {
border-bottom: 1px solid ThreeDShadow;
padding-bottom: 1em;
font-size: 130%;
}
#errorLongDesc {
-moz-padding-end: 3em;
font-size: 110%;
}
#errorLongDesc > p {
}
#errorTryAgain {
margin-top: 2em;
-moz-margin-start: 80px;
}
#brand {
position: absolute;
right: 0;
bottom: -1.5em;
-moz-margin-end: 10px;
opacity: .6;
}
body[dir="rtl"] #brand {
right: auto;
left: 0;
}
#brand > p {
margin: 0;
}

View File

@ -152,6 +152,7 @@ modern.jar:
skin/modern/global/listbox.css (global/listbox.css)
skin/modern/global/menu.css (global/menu.css)
skin/modern/global/menulist.css (global/menulist.css)
skin/modern/global/netError.css (global/netError.css)
skin/modern/global/printing.css (global/printing.css)
skin/modern/global/progressmeter.css (global/progressmeter.css)
skin/modern/global/radio.css (global/radio.css)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -34,6 +34,7 @@ classic.jar:
+ skin/classic/global/listbox.css
+ skin/classic/global/menu.css
+ skin/classic/global/menulist.css
+ skin/classic/global/netError.css
+ skin/classic/global/popup.css
+ skin/classic/global/progressmeter.css
+ skin/classic/global/radio.css
@ -106,6 +107,7 @@ classic.jar:
+ skin/classic/global/icons/small-globe-sunken-grey.png (icons/small-globe-sunken-grey.png)
+ skin/classic/global/icons/small-globe-sunken.png (icons/small-globe-sunken.png)
+ skin/classic/global/icons/white-gray-gradient.gif (icons/white-gray-gradient.gif)
+ skin/classic/global/icons/warning-large.png (icons/warning-large.png)
+ skin/classic/global/menu/menu-arrow-dis.gif (menu/menu-arrow-dis.gif)
+ skin/classic/global/menu/menu-arrow-hov.gif (menu/menu-arrow-hov.gif)
+ skin/classic/global/menu/menu-arrow.gif (menu/menu-arrow.gif)

View File

@ -0,0 +1,100 @@
/*
* This defines the look-and-feel styling of the error pages.
* (see: netError.xhtml)
*
* Original styling by William Price <bugzilla@mob.rice.edu>
* Updated by: Steven Garrity <steven@silverorange.com>
* Henrik Skupin <mozilla@hskupin.info>
*/
html {
background: -moz-Dialog;
}
body {
margin: 0;
padding: 0 1em;
color: -moz-FieldText;
font: message-box;
}
h1 {
margin: 0 0 .6em 0;
border-bottom: 1px solid ThreeDLightShadow;
font-size: 160%;
}
ul, ol {
margin: 0;
-moz-margin-start: 1.5em;
padding: 0;
}
ul > li, ol > li {
margin-bottom: .5em;
}
ul {
list-style: square;
}
#errorPageContainer {
position: relative;
min-width: 13em;
max-width: 52em;
margin: 4em auto;
border: 1px solid ThreeDShadow;
-moz-border-radius: 10px;
padding: 3em;
-moz-padding-start: 30px;
background: url("chrome://global/skin/icons/warning-large.png") left 0 no-repeat -moz-Field;
-moz-background-origin: content;
}
body[dir="rtl"] #errorPageContainer {
background-position: right 0;
}
#errorTitle {
-moz-margin-start: 80px;
}
#errorLongContent {
-moz-margin-start: 80px;
}
#errorShortDesc > p {
border-bottom: 1px solid ThreeDLightShadow;
padding-bottom: 1em;
font-size: 130%;
}
#errorLongDesc {
-moz-padding-end: 3em;
font-size: 110%;
}
#errorLongDesc > p {
}
#errorTryAgain {
margin-top: 2em;
-moz-margin-start: 80px;
}
#brand {
position: absolute;
right: 0;
bottom: -1.5em;
-moz-margin-end: 10px;
opacity: .4;
}
body[dir="rtl"] #brand {
right: auto;
left: 0;
}
#brand > p {
margin: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -22,6 +22,7 @@ classic.jar:
skin/classic/global/listbox.css
skin/classic/global/menu.css
skin/classic/global/menulist.css
skin/classic/global/netError.css
skin/classic/global/plugins.css
skin/classic/global/popup.css
skin/classic/global/preferences.css
@ -83,6 +84,7 @@ classic.jar:
skin/classic/global/icons/Question.png (icons/Question.png)
skin/classic/global/icons/Restore.gif (icons/Restore.gif)
skin/classic/global/icons/Warning.png (icons/Warning.png)
skin/classic/global/icons/warning-large.png (icons/warning-large.png)
skin/classic/global/menu/Menu-arrow.png (menu/Menu-arrow.png)
skin/classic/global/menu/Menu-arrow-disabled.png (menu/Menu-arrow-disabled.png)
skin/classic/global/menu/Menu-arrow-hover.png (menu/Menu-arrow-hover.png)
@ -105,4 +107,4 @@ classic.jar:
skin/classic/global/tree/twisty-clsd.png (tree/twisty-clsd.png)
skin/classic/global/tree/twisty-open.png (tree/twisty-open.png)
skin/classic/global/throbber/Throbber-small.gif (throbber/Throbber-small.gif)
skin/classic/global/throbber/Throbber-small.png (throbber/Throbber-small.png)
skin/classic/global/throbber/Throbber-small.png (throbber/Throbber-small.png)

View File

@ -0,0 +1,100 @@
/*
* This defines the look-and-feel styling of the error pages.
* (see: netError.xhtml)
*
* Original styling by William Price <bugzilla@mob.rice.edu>
* Updated by: Steven Garrity <steven@silverorange.com>
* Henrik Skupin <mozilla@hskupin.info>
*/
html {
background: -moz-Dialog;
}
body {
margin: 0;
padding: 0 1em;
color: -moz-FieldText;
font: message-box;
}
h1 {
margin: 0 0 .6em 0;
border-bottom: 1px solid ThreeDLightShadow;
font-size: 160%;
}
ul, ol {
margin: 0;
-moz-margin-start: 1.5em;
padding: 0;
}
ul > li, ol > li {
margin-bottom: .5em;
}
ul {
list-style: square;
}
#errorPageContainer {
position: relative;
min-width: 13em;
max-width: 52em;
margin: 4em auto;
border: 1px solid ThreeDShadow;
-moz-border-radius: 10px;
padding: 3em;
-moz-padding-start: 30px;
background: url("chrome://global/skin/icons/warning-large.png") left 0 no-repeat -moz-Field;
-moz-background-origin: content;
}
body[dir="rtl"] #errorPageContainer {
background-position: right 0;
}
#errorTitle {
-moz-margin-start: 80px;
}
#errorLongContent {
-moz-margin-start: 80px;
}
#errorShortDesc > p {
border-bottom: 1px solid ThreeDLightShadow;
padding-bottom: 1em;
font-size: 130%;
}
#errorLongDesc {
-moz-padding-end: 3em;
font-size: 110%;
}
#errorLongDesc > p {
}
#errorTryAgain {
margin-top: 2em;
-moz-margin-start: 80px;
}
#brand {
position: absolute;
right: 0;
bottom: -1.5em;
-moz-margin-end: 10px;
opacity: .4;
}
body[dir="rtl"] #brand {
right: auto;
left: 0;
}
#brand > p {
margin: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -20,6 +20,7 @@ classic.jar:
skin/classic/global/listbox.css
skin/classic/global/menu.css
skin/classic/global/menulist.css
skin/classic/global/netError.css
skin/classic/global/popup.css
skin/classic/global/preferences.css
skin/classic/global/printPageSetup.css
@ -77,6 +78,7 @@ classic.jar:
skin/classic/global/icons/Restore.gif (icons/Restore.gif)
skin/classic/global/icons/tabstrip-bottom.png (icons/tabstrip-bottom.png)
skin/classic/global/icons/Warning.png (icons/Warning.png)
skin/classic/global/icons/warning-large.png (icons/warning-large.png)
skin/classic/global/icons/wrap.png (icons/wrap.png)
skin/classic/global/menu/Menu-arrow.png (menu/Menu-arrow.png)
skin/classic/global/menu/Menu-arrow-rtl.png (menu/Menu-arrow-rtl.png)

View File

@ -0,0 +1,100 @@
/*
* This defines the look-and-feel styling of the error pages.
* (see: netError.xhtml)
*
* Original styling by William Price <bugzilla@mob.rice.edu>
* Updated by: Steven Garrity <steven@silverorange.com>
* Henrik Skupin <mozilla@hskupin.info>
*/
html {
background: -moz-Dialog;
}
body {
margin: 0;
padding: 0 1em;
color: -moz-FieldText;
font: message-box;
}
h1 {
margin: 0 0 .6em 0;
border-bottom: 1px solid ThreeDLightShadow;
font-size: 160%;
}
ul, ol {
margin: 0;
-moz-margin-start: 1.5em;
padding: 0;
}
ul > li, ol > li {
margin-bottom: .5em;
}
ul {
list-style: square;
}
#errorPageContainer {
position: relative;
min-width: 13em;
max-width: 52em;
margin: 4em auto;
border: 1px solid ThreeDShadow;
-moz-border-radius: 10px;
padding: 3em;
-moz-padding-start: 30px;
background: url("chrome://global/skin/icons/warning-large.png") left 0 no-repeat -moz-Field;
-moz-background-origin: content;
}
body[dir="rtl"] #errorPageContainer {
background-position: right 0;
}
#errorTitle {
-moz-margin-start: 80px;
}
#errorLongContent {
-moz-margin-start: 80px;
}
#errorShortDesc > p {
border-bottom: 1px solid ThreeDLightShadow;
padding-bottom: 1em;
font-size: 130%;
}
#errorLongDesc {
-moz-padding-end: 3em;
font-size: 110%;
}
#errorLongDesc > p {
}
#errorTryAgain {
margin-top: 2em;
-moz-margin-start: 80px;
}
#brand {
position: absolute;
right: 0;
bottom: -1.5em;
-moz-margin-end: 10px;
opacity: .4;
}
body[dir="rtl"] #brand {
right: auto;
left: 0;
}
#brand > p {
margin: 0;
}