Bug 372826 - Update about:license, about:buildconfig to the new style/look of about:. r=gavin
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Mon, 08 Sep 2008 10:49:48 +0200
changeset 18954 f7795cb888df11947925cb7d74bf9767336b41a0
parent 18953 679778dd198fd2799c37c685bc2609dde8f4418a
child 18955 ef557ac7be736857b4cd2ed11cbac2f27acd84cc
push idunknown
push userunknown
push dateunknown
reviewersgavin
bugs372826
milestone1.9.1b1pre
Bug 372826 - Update about:license, about:buildconfig to the new style/look of about:. r=gavin
toolkit/content/about.xhtml
toolkit/content/buildconfig.html.in
toolkit/content/license.html
toolkit/themes/winstripe/global/about.css
--- a/toolkit/content/about.xhtml
+++ b/toolkit/content/about.xhtml
@@ -53,17 +53,16 @@
 
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <title>About:</title>
   <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css"/>
 </head>
 
 <body dir="&locale.dir;">
-<div id="aboutPageContainer">
   <div id="aboutLogoContainer">
     <a id="vendorURL" href="http://www.mozilla.org/">
       <img src="about:logo" alt="&brandShortName;"/>
 #expand <p id="version">&about.version; __MOZ_APP_VERSION__</p>
     </a>
   </div>
 
   <ul id="aboutPageList">
@@ -93,11 +92,10 @@
         var list = document.getElementById("aboutPageList");
         var listItem = list.appendChild(document.createElement("li"));
         listItem.appendChild(document.createTextNode("&about.buildIdentifier;"));
         listItem.appendChild(document.createTextNode(ua));
       }
     </script>
   </ul>
 
-</div>
 </body>
 </html>
--- a/toolkit/content/buildconfig.html.in
+++ b/toolkit/content/buildconfig.html.in
@@ -1,14 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
   <title>about:buildconfig</title>
+  <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css">
 </head>
-<body>
+<body class="aboutPageWideContainer">
 <h1>about:buildconfig</h1>
 <p> </p>
 <h2>Build platform</h2>
 <table>
   <tbody>
     <tr>
       <th>target</th>
     </tr>
--- a/toolkit/content/license.html
+++ b/toolkit/content/license.html
@@ -16,16 +16,17 @@
    - The Original Code is mozilla.org code.
    -
    - The Initial Developer of the Original Code is
    - Gervase Markham.
    - Portions created by the Initial Developer are Copyright (C) 2006
    - the Initial Developer. All Rights Reserved.
    -
    - Contributor(s):
+   -   Ehsan Akhgari <ehsan.akhgari@gmail.com>
    -
    - 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
    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    - in which case the provisions of the GPL or the LGPL are applicable instead
    - of those above. If you wish to allow use of your version of this file only
    - under the terms of either the GPL or the LGPL, and not to allow others to
    - use your version of this file under the terms of the MPL, indicate your
@@ -57,16 +58,17 @@
       dd p {
         margin: 0;
       }
       
       .gnu-number {
         font-weight: bold;
       }
     </style>
+    <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css">
 
     <script type="text/javascript">
     function correctSpelling()
     {
       // Note that this code only runs if the page is requested using the
       // URL containing the correct spelling - e.g. "about:licence".
       if (document.location.href.match("icence"))
       {       
@@ -111,17 +113,17 @@
         }
       }
     }
     
     window.onload = correctSpelling;
     </script>    
   </head>
 
-  <body id="lic-info">
+  <body id="lic-info" class="aboutPageWideContainer">
     <h1 class="correctme"><a name="top"></a>about:license</h1>
 
     <div class="correctme">
 
 #ifdef APP_EULA_BLOCK
 #includesubst @APP_EULA_BLOCK@
 #endif
     
--- a/toolkit/themes/winstripe/global/about.css
+++ b/toolkit/themes/winstripe/global/about.css
@@ -1,33 +1,29 @@
 html {
   background: -moz-Dialog;
+  padding: 0 1em;
+  font: message-box;
 }
 
 body {
-  margin: 0;
-  padding: 0 1em;
   color: -moz-FieldText;
-  font: message-box;
-}
-
-#aboutPageContainer {
   position: relative;
   min-width: 330px;
   max-width: 50em;
   margin: 4em auto;
   border: 1px solid ThreeDShadow;
   -moz-border-radius: 10px;
   padding: 3em;
   -moz-padding-start: 30px;
   background: -moz-Field;
 }
 
 .aboutPageWideContainer {
-  max-width: 80% !important;
+  max-width: 80%;
 }
 
 #aboutLogoContainer {
   border: 1px solid ThreeDLightShadow;
   width: 300px;
   margin-bottom: 2em;
 }
 
@@ -46,8 +42,12 @@ ul {
   -moz-margin-start: 1.5em;
   padding: 0;
   list-style: square;
 }
 
 ul > li {
   margin-top: .5em;
 }
+
+th, td {
+  padding: 0 5px;
+}