I brewed like ... five batches of beer in the last six months
[clinton/website/src/unknownlamer.org.git] / default.css
index 2aacc69..065ddc6 100644 (file)
@@ -4,6 +4,17 @@ body
   font-family: serif;
 }
 
+p
+{ 
+  text-align: justify;
+}
+
+h1,h2,h3,h4,h5
+{ 
+  font-variant: small-caps;
+  text-align: left;
+}
+
 @media screen
 { 
   body
@@ -20,52 +31,28 @@ body
   {
     font-size: 10pt;
   }
-}
-
-.verse, .src, .image, blockquote
-{
-  clear: right; /* Clear the contents box usually */
-}
-
-.src
-{ 
-  margin-right: auto;
-  margin-left: auto;
-  width: 95%;
-  border: 2px solid black;
-  padding: 1em;
-
-  white-space: pre-wrap;       /* css-3 */
-  white-space: -moz-pre-wrap;  /* Mozilla */
-}
 
-@media screen
-{ 
-  .src
-  {
-    color: #e3e3e3;
-    background-color: #444444;
+  dd, table, blockquote, code, .verse, .src, .image
+  { 
+    page-break-inside: avoid;
   }
-}
 
-@media print
-{ 
-  .src
-  {
-    color: #535353;
-    background-color: #888888;
+  h1, h2, h3, h4, h5
+  { 
+    page-break-before: auto;
+    page-break-after: avoid;
   }
-}
 
-p
-{ 
-  text-align: justify;
+  h1 + p, h2 + p, h3 + p, h4 + p, h5 + p
+  { 
+    page-break-before: avoid;
+    page-break-after: auto;
+  }
 }
 
 .verse
 {
   padding: 1em;
-  border: 2px solid #999999;
   width: 60%;
   margin-right: auto;
   margin-left: auto;
@@ -76,6 +63,7 @@ p
 { 
   .verse
   {
+    border: 2px solid #999999;
     background-color: #BBBBBB;
     color: #111111;
   }
@@ -84,7 +72,6 @@ p
 blockquote
 { 
   padding: 1em;
-  border: 2px solid black;
   width: 80%;
   margin-right: auto;
   margin-left: auto;
@@ -94,6 +81,7 @@ blockquote
 { 
   blockquote
   {
+    border: 2px solid black;
     background-color: #AAAAAA;
     color: #111111;
   }
@@ -110,7 +98,8 @@ blockquote
 
 code
 { 
-  white-space: pre;
+  white-space: pre-wrap;       /* css-3 */
+  white-space: -moz-pre-wrap;  /* Mozilla */
   width: auto;
   color: #000000;
 }
@@ -147,25 +136,17 @@ a:visited
 { 
   a[href]:after
   {
-    content: " <" attr(href) "> ";
+    content: " <" attr(href) ">";
   }
 }
 
-h1,h2,h3,h4,h5
-{ 
-  font-variant: small-caps;
-}
-
 /* Table of Contents */
 div.contents
 { 
   border: 2px solid #222222;
-  background-color: #999999;
   width: 40%;
   padding: 0.5em;
-  margin-left: 2em;
   margin-bottom: 1em;
-  float: right;
 }
 
 div.contents:before
@@ -179,25 +160,77 @@ div.contents:before
 /* control spacing of contents in konqueror */
 div.contents dl
 { 
-  margin-top: 0.2em;
-  margin-bottom: 0.2em;
+  margin: 0.2em auto;
+}
+
+div.contents dl, div.contents dt
+{ 
+  margin-left: 0px;
+}
+
+div.contents dd
+{
+  margin-left: 1.5em;
+}
+
+@media screen
+{ 
+  div.contents
+  {
+    background-color: #999999;
+    margin-left: 2em;
+    float: right;
+  }
+
+  .verse, .src, .image, blockquote
+  {
+    clear: right; /* Clear the contents box  */
+  }
 }
 
 @media print
 { 
   div.contents
   {
-    background-color: #CCCCCC;
+    background-color: #DFDFDF;
+    border-width: 0.5mm;
+    float: left;
+    margin-right: 2em;
   }
 
+ .verse, .src, .image, blockquote
+  {
+    clear: left; /* Clear the contents box  */
+  } 
+
   div.contents dt
   {
     font-size: 6pt;
+    page-break-after: avoid;
+  }
+
+  div.contents > dd
+  { 
+    page-break-inside: auto;
+  }
+
+  div.contents > dd > dl
+  { 
+    page-break-inside: avoid;
+    page-break-before: auto;
+    page-break-after: auto;
+  }
+
+  div.contents > dd > dl dl
+  { 
+    page-break-inside: avoid;
+    page-break-before: avoid;
+    page-break-after: avoid;
   }
 }
 
 /* Images */
-table.image, p.image
+.image
 { 
   border: 2px solid #222222;
   width: auto;
@@ -206,24 +239,8 @@ table.image, p.image
   margin-right: auto;
 }
 
-@media screen
-{ 
-  table.image, p.image
-  {
-    background-color: #999999;
-  }
-}
-
-@media print
-{ 
-  table.image, p.image
-  {
-    background-color: #CCCCCC;
-  }
-}
-
 /* Force spacing between image boxes */
-table.image + table.image, p.image + p.image
+.image + .image
 {
   margin-top: 1em;
 }
@@ -231,6 +248,19 @@ table.image + table.image, p.image + p.image
 table.image tr td img
 { 
   border: 1px solid #111111;
+  max-width: 6in;
+}
+
+table.image tr td:hover
+{ 
+  max-width: 8in;
+}
+
+table.image tr td img:hover
+{
+    max-width: 24in;
+    width: 100%;
+    overflow: auto;
 }
 
 table.image tr td.image-caption
@@ -238,6 +268,33 @@ table.image tr td.image-caption
   font-style: italic;
 }
 
+@media screen
+{ 
+  .image
+  {
+    background-color: #999999;
+  }
+}
+
+@media print
+{ 
+  .image
+  {
+    background-color: #CCCCCC;
+    border-width: 0.5mm;
+    page-break-inside: avoid;
+    page-break-after: auto;
+    page-break-before: auto;
+  }
+
+  .image img
+  {
+    max-width: 80%;
+    page-break-inside: avoid;
+    page-break-after: auto;
+  }
+}
+
 img.latex-display
 { 
   display: block;
@@ -278,7 +335,7 @@ img.latex-inline
 
   .rating-bad
   {
-    color: #CCCCCC;
+    display: none;
   }
 }
 
@@ -308,4 +365,74 @@ p.cke-buttons img
   {
     display: none;
   }
+}
+
+.src
+{ 
+  font-family: monospace;
+  margin-right: auto;
+  margin-left: auto;
+  width: 95%;
+  border: 2px solid black;
+  padding: 1em;
+
+  white-space: pre-wrap;       /* css-3 */
+  white-space: -moz-pre-wrap;  /* Mozilla */
+}
+
+@media screen
+{ 
+  .src
+  {
+    color: #e3e3e3;
+    background-color: #444444;
+  }
+}
+
+@media print
+{ 
+  .src
+  {
+    color: #000000;
+    background-color: #F5F5F5;
+    border-width: 0.5mm;
+    font-size: 8pt;
+  }
+}
+
+/* emacs faces */
+@media screen
+{ 
+  .emacs-face-builtin { color: #b0c4de; }
+  .emacs-face-comment { color: #ff7f24;  }
+  .emacs-face-comment-delimiter { color: #ff7f24; }
+  .emacs-face-doc { color: #b3b3b3; }
+  .emacs-face-function-name { color: #87cefa; }
+  .emacs-face-keyword { color: #b9d3ee; }
+  .emacs-face-negation-char { }
+  .emacs-face-regexp-grouping-backslash { font-weight: bold;  }
+  .emacs-face-regexp-grouping-construct { font-weight: bold; }
+  .emacs-face-string { color: #b3b3b3; }
+  .emacs-face-type { color: #98fb98; }
+  .emacs-face-variable-name { color: #eedd82; }
+  .emacs-face-warning { color: #ffc0cb;
+                        font-weight: bold; }
+}
+
+@media print
+{ 
+  .emacs-face-builtin { color: #0b4ced; }
+  .emacs-face-comment { color: #ff7f24; font-style: italic; }
+  .emacs-face-comment-delimiter { color: #ff7f24; }
+  .emacs-face-doc { color: #5b5b5b; }
+  .emacs-face-function-name { color: #34a8aa; font-style: italic; }
+  .emacs-face-keyword { color: #0B0B0B; font-weight: bold; }
+  .emacs-face-negation-char { }
+  .emacs-face-regexp-grouping-backslash { font-weight: bold;  }
+  .emacs-face-regexp-grouping-construct { font-weight: bold; }
+  .emacs-face-string { color: #3b3b3b; font-style: italic; }
+  .emacs-face-type { color: #579b57; font-variant: small-caps; }
+  .emacs-face-variable-name { color: #554406; font-style: italic; }
+  .emacs-face-warning { color: #990767;
+                        font-weight: bold; }
 }
\ No newline at end of file