Nice, standards-compliant print-media CSS.
[cocanwiki.git] / html / _css / standard.css
index a85365b..c53955f 100644 (file)
@@ -1,5 +1,5 @@
 /* Stylesheet for COCANWIKI.
- * $Id: standard.css,v 1.9 2004/10/07 18:56:48 rich Exp $
+ * $Id: standard.css,v 1.12 2004/10/09 15:46:29 rich Exp $
  */
 
 body {
@@ -409,7 +409,62 @@ table.cal_year td.cal_year_events ul {
   margin: 0px;
 }
 
-table.cal_year td.cal_year_events ul {
+table.cal_year td.cal_year_events li {
+  display: inline;
+  margin-right: 2em;
+}
+
+table.cal_day {
+  border-collapse: collapse;
+  border: 1px solid #eee;
+  width: 90%;
+  margin-left: 5%;
+  margin-right: 5%;
+}
+
+table.cal_day ul {
+  list-style: none;
+  padding: 0px;
+  margin: 0px;
+}
+
+table.cal_day li {
   display: inline;
   margin-right: 2em;
 }
+
+table.cal_day a.cal_day_left {
+  margin-right: 2em;
+}
+
+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