Nice, standards-compliant print-media CSS.
authorrich <rich>
Sat, 9 Oct 2004 15:46:29 +0000 (15:46 +0000)
committerrich <rich>
Sat, 9 Oct 2004 15:46:29 +0000 (15:46 +0000)
html/_css/standard.css

index 3ac7ab9..c53955f 100644 (file)
@@ -1,5 +1,5 @@
 /* Stylesheet for COCANWIKI.
- * $Id: standard.css,v 1.11 2004/10/09 08:33:02 rich Exp $
+ * $Id: standard.css,v 1.12 2004/10/09 15:46:29 rich Exp $
  */
 
 body {
@@ -440,3 +440,31 @@ table.cal_day a.cal_day_left {
 table.cal_day a.cal_day_right {
   margin-left: 2em;
 }
+
+/* For print media. */
+@media print {
+  /* Move the body up (no top menu anymore). */
+  body { margin-top: 4em; }
+
+  /* Hide the navigation. */
+  div#search_div { display: none; }
+  ul#topmenu { display: none; }
+  div#menu_div { display: none; }
+  p.edit_link { display: none; }
+
+  /* Display the target of external links. */
+  a.external {
+    background: none;
+    padding-right: 0px;
+  }
+  a.external:after {
+    content: " [" attr(href) "]";
+  }
+  a.mailto:after {
+    background: none;
+    padding-right: 0px;
+  }
+  a.mailto:after {
+    content: " [" attr(href) "]";
+  }
+}
\ No newline at end of file