Fixed CSS in the navigation menu in IE. This uses the "* html selector"
[cocanwiki.git] / html / _css / standard.css
index 488f816..dad0159 100644 (file)
@@ -1,5 +1,5 @@
 /* Stylesheet for COCANWIKI.
- * $Id: standard.css,v 1.10 2004/10/09 08:19:42 rich Exp $
+ * $Id: standard.css,v 1.15 2004/10/16 12:12:47 rich Exp $
  */
 
 body {
@@ -281,6 +281,57 @@ div#form_div p.edit_link {
   display: none;
 }
 
+/* Navigation area.
+ * The navigation_space_div reserves the space for the div and appears
+ * at the beginning of the page (but is empty).
+ */
+div#navigation_space_div {
+  float: right;
+  width: 10em;
+  height: 22em;
+  border: 1px solid #ccc;
+  background: #fff;
+  margin-left: 1em;
+}
+
+div#navigation_div {
+  position: absolute;
+  right: 1em;
+  top: 6em;
+  width: 10em;
+  height: 22em;
+}
+
+div#navigation_div h2 {
+  font-size: 70%;
+  position: relative;
+  top: -1.5em;
+  left: 1.5em;
+  border: 1px solid #ccc;
+  padding-top: 2px;
+  background: #fff;
+  display: inline;
+}
+
+div#navigation_div h3 {
+  margin-left: 1em;
+  margin-top: -0.5em;
+  font-size: 70%;
+}
+
+div#navigation_div ul {
+  font-size: 70%;
+  margin-top: -1em;
+  margin-left: -1em;
+}
+
+/* The "* html" causes this rule to only be applied to IE 5/6. */
+* html div#navigation_div li {
+  line-height: 1.2em;
+  margin-left: 3em;
+  padding-left: 0px;
+}
+
 /* Calendar extension. */
 table.cal_month {
   border-collapse: collapse;
@@ -413,3 +464,60 @@ 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; }
+  div#navigation_div { display: none; }
+  div#navigation_space_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