You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/07/26 02:07:08 UTC

svn commit: r679933 - in /incubator/buildr/trunk/doc: css/default.css css/print.css site.toc.yaml

Author: assaf
Date: Fri Jul 25 17:07:07 2008
New Revision: 679933

URL: http://svn.apache.org/viewvc?rev=679933&view=rev
Log:
Some changes to site styling:
- Sidebar has new titles for some of the groupings, titles in green
- Sidebar moved further to the left
- Green also used for table headers
- H3 no longer uses bottom border, H1-H3 indented further to the left
Some changes to PDF styling:
- As for Web site, also fixed indentation on table of contents
- Using Palatino for body, Gill Sans for headers/ToC, Monaco for code.
If you think I'm obsessing with the typography, you're absolutely right.

Modified:
    incubator/buildr/trunk/doc/css/default.css
    incubator/buildr/trunk/doc/css/print.css
    incubator/buildr/trunk/doc/site.toc.yaml

Modified: incubator/buildr/trunk/doc/css/default.css
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/css/default.css?rev=679933&r1=679932&r2=679933&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/css/default.css (original)
+++ incubator/buildr/trunk/doc/css/default.css Fri Jul 25 17:07:07 2008
@@ -20,7 +20,8 @@
   color: #000;
   font-family: "DejaVu Sans", Verdana, Helvetica;
   text-align: center;
-	line-height: 1.5em;
+  line-height: 150%;
+  font-size: 12pt;
 }
 
 a:link, a:visited{
@@ -36,42 +37,48 @@
   border: none;
 }
 
-pre, code { font-family: "DejaVu Sans Mono", "Courier New", "Courier"; }
-pre { padding: 1em; }
-pre.wrapped {
+pre, code {
+  font-family: "DejaVu Sans Mono", "Courier New", "Courier";
+  font-size: 11pt;
+}
+pre {
+  margin: 0.3em 0 0.3em 0.9em;
+  padding: 0;
+  line-height: 135%;
   white-space: pre-wrap;       /* css-3 */
   white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 }
 
 h1, h2, h3 {
-  padding: 0.3em;
-  margin: 2.5em 0 0.5em -0.3em;
+  padding: 0;
+  margin: 1.6em 0 0.6em -0.9em;
   line-height: 1.25em;
   letter-spacing: 0.03em;
 }
 
 h1 {
-  border-bottom: 1px solid #808080;
   font-size: 2em;
   margin-top: 0;
+  padding-bottom: 0.3em;
+  border-bottom: 1px solid #808080;
 }
 
 h2 {
-  border-bottom: 1px solid #a0a0a0;
   font-size: 1.3em;
+  padding-bottom: 0.3em;
+  border-bottom: 1px solid #a0a0a0;
 }
 
 h3 {
-  border-bottom: 1px solid #c0c0c0;
   font-size: 1.1em;
 }
 
 blockquote {
-	padding-left: 2em;
-	padding-right: 2em;
-	margin-left: 0.3em;
+  padding-left: 2em;
+  padding-right: 2em;
+  margin-left: 0.3em;
   margin-right: 0;
-	border-left: 1px solid #3c78b5;
+  border-left: 1px solid #3c78b5;
 }
 
 ul { 
@@ -84,7 +91,9 @@
 }
 
 table {
-  border-spacing: 0.2em 0;
+  border-spacing: 0;
+  width: 100%;
+  margin: 0.3em 0 0.3em 0;
 }
 
 th, td {
@@ -96,7 +105,8 @@
 
 th, thead td {
   border-bottom: none;
-  background-color: #E5E5E5;
+  background-color: #669966;
+  color: #ffffff;
   text-align: left;
 }
 
@@ -104,7 +114,7 @@
 #wrap{
   margin: 1em auto 2em auto;
   text-align: left;
-  width: 60em;
+  width: 65em;
 }
 
 
@@ -131,29 +141,27 @@
   float: left;
   text-align: left;
   margin-right: 2em;
+  font-family: "DejaVu Sans", Verdana, Helvetica;
+  font-size: 11pt;
 }
-
 #pages ol {
   list-style: none;
-  font-weight: bold;
   padding: 0;
+  margin: 0;
 }
-
 #pages ol li {
-  border-top: 1px solid #E9E9E9;
-  padding: 0.3em 0 0.5em 0.5em;
+  padding: 0.3em 0 0.3em 0em;
+  color: #669966;
+  font-weight: bold; 
 }
-
-#pages ol li a:link,  #pages ol li a:visited  {
-  color: #606060;
-  text-decoration: none;
+#pages ol li ol {
+  border-top: 1px solid #E9E9E9;
+  margin-top: 0.3em;
+  padding: 0.3em 0 0.9em 0.9em;
 }
-
-#pages ol li a:hover {
-  color: #222;
-  text-decoration: none;
+#pages ol li a  {
+  font-weight: normal;
 }
-
 #pages form {
   margin-top: 2em;
   padding: 0.3em 0 0.5em 0.5em;
@@ -171,22 +179,15 @@
 ol.toc {
   list-style: none;
   padding: 0;
-  margin-bottom: 2em !important;
+  margin: 0 0 2em 0;
 }
-
 ol.toc li {
-  padding: 0.3em 0 0.3em 0 !important;
+  padding: 0.3em 0 0.3em 0;
   margin: 0;
 }
-
-ol.toc ol.toc {
-  list-style: none;
-  margin: 0.3em 0 0 0 !important;
-  padding: 0;
-}
-
-ol.toc ol.toc li {
-  padding-left: 0.5em !important;
+ol.toc li ol.toc {
+  margin: 0;
+  padding-left: 0.9em;
 }
 
 

Modified: incubator/buildr/trunk/doc/css/print.css
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/css/print.css?rev=679933&r1=679932&r2=679933&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/css/print.css (original)
+++ incubator/buildr/trunk/doc/css/print.css Fri Jul 25 17:07:07 2008
@@ -15,9 +15,12 @@
  */
 
 
-@page { margin: 1in 0.75in 1in 0.75in; }
-@page {
-  font-family: "DejaVu Sans", Verdana, Helvetica;
+@page { 
+  margin: 1in 0.75in 1in 0.75in;
+  @top-left, @top-right {
+    font-family: "Gill Sans", "DejaVu Sans", Verdana, Helvetica;
+    font-weight: normal;
+  }
 }
 @page:left {
   @top-left { content: counter(page); }
@@ -32,64 +35,63 @@
   @top-right { content: normal }
 }
 
-title {
-  string-set: doctitle content();
-}
-
-body {
-  font-size: 12pt;
-  margin: 0;
-  color: black;
-  background: white;
-}
+@media print {
+  title { string-set: doctitle content(); }
 
-h1 {
-  string-set: pagetitle content();
-  page-break-before: always;
-}
-h1:first-child { page-break-before: avoid; }
-pre, p, blockquote { page-break-inside: avoid; }
-pre {
-  line-height: 1.3em;
-  white-space: pre-wrap; /* css-3 */
-  padding: 0.3em 0 0.9em 0.6em;
-  margin: 0;
-}
-a:link, a:visited {
-  background: transparent;
-  text-decoration: none;
-}
+  body {
+    font-family: "Palatino", "DejaVu Serif", Helvetica;
+    font-size: 12pt;
+    margin: 0;
+    color: black;
+    background: white;
+  }
+
+  h1 {
+    string-set: pagetitle content();
+    page-break-before: always;
+  }
+  h1:first-child { page-break-before: avoid; }
+  h1, h2, h3, ol.toc {
+    font-family: "Gill Sans", "Courier", "DejaVu Sans", Verdana, Helvetica;
+  }
+  pre, p, blockquote { page-break-inside: avoid; }
+  pre, code {
+    font-family: "Monaco", "DejaVu Sans Mono", "Courier New", "Courier";
+    font-size: 10pt;
+  }
+  a:link, a:visited {
+    background: transparent;
+    text-decoration: none;
+  }
+  #wrap, #content, #footer {
+    float: none !important;
+    color: black;
+    background: transparent;
+    width: auto !important;
+    margin: 0;
+    padding: 0;
+    border: 0;
+  }
+
+  #header {
+    margin-bottom: 5%;
+    font-size: 120%;
+  }
+  #header img { width: 4in; }
+  #header .tagline {
+    float: none !important;
+    position: static !important;
+    font-size: 1.2em;
+    text-align: center;
+  }
 
+  #pages, .noprint { display: none; }
 
-#wrap, #content, #footer {
-  float: none !important;
-  color: black;
-  background: transparent;
-  width: auto !important;
-  margin: 0;
-  padding: 0;
-  border: 0;
-}
-
-#header {
-  margin-bottom: 5%;
-  font-size: 120%;
-}
-#header img { width: 4in; }
-#header .tagline {
-  float: none !important;
-  position: static !important;
-  font-size: 1.2em;
-  text-align: center;
-}
-
-#pages, .noprint { display: none; }
+  ol.toc a:link, ol.toc a:visited { text-decoration: none; }
+  ol.toc a:after { content: leader('.') target-counter(attr(href), page); }
 
-ol.toc a:link, ol.toc a:visited { text-decoration: none; }
-ol.toc a:after { content: leader('.') target-counter(attr(href), page); }
+  #footer { margin-top: 5%; }
 
-#footer { margin-top: 5%; }
+  #license { padding-top: 1in; }
 
-#license {
-  padding-top: 1in;
 }

Modified: incubator/buildr/trunk/doc/site.toc.yaml
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/site.toc.yaml?rev=679933&r1=679932&r2=679933&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/site.toc.yaml (original)
+++ incubator/buildr/trunk/doc/site.toc.yaml Fri Jul 25 17:07:07 2008
@@ -13,10 +13,10 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
-- Main:  
+- Start Here:  
   - Welcome: index.html
   - Download and Installation: download.html
-  - Printable PDF: buildr.pdf
+  - User Guide (PDF): buildr.pdf
   - New: whats_new.html
 - Using Buildr:
   - Getting Started: getting_started.html
@@ -34,7 +34,7 @@
   - Rake: http://docs.rubyrake.org
   - Antwrap: http://antwrap.rubyforge.org
   - Troubleshooting: troubleshooting.html
-- Getting Involved:
+- Get Involved:
   - Contributing: contributing.html
   - Mailing Lists: mailing_lists.html
   - Issues/Bugs: http://issues.apache.org/jira/browse/Buildr