You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by js...@apache.org on 2006/05/16 21:36:23 UTC

svn commit: r407033 - in /geronimo/xbean/site/resources: space.css space.js

Author: jstrachan
Date: Tue May 16 12:36:23 2006
New Revision: 407033

URL: http://svn.apache.org/viewcvs?rev=407033&view=rev
Log:
added nicer stylesheet

Added:
    geronimo/xbean/site/resources/space.js
Modified:
    geronimo/xbean/site/resources/space.css

Modified: geronimo/xbean/site/resources/space.css
URL: http://svn.apache.org/viewcvs/geronimo/xbean/site/resources/space.css?rev=407033&r1=407032&r2=407033&view=diff
==============================================================================
--- geronimo/xbean/site/resources/space.css (original)
+++ geronimo/xbean/site/resources/space.css Tue May 16 12:36:23 2006
@@ -1,3 +1,72 @@
+/*********************************************************************
+  CSS Elements in the layout template
+ *********************************************************************/
+#site-banner {
+    padding: 0px;
+    margin: 0px;
+    background-color: #fff;
+}
+
+#site-navbar {
+  padding: 2px;
+  border-top: 1px solid #000066;
+  border-bottom: 1px solid #000066;
+  padding-left: 12px;
+  padding-right: 12px;
+  font-weight: bold;
+  background-color: #dddddd;
+}
+
+#site-quicklinks p {
+  padding: 0px; margin: 0px;
+}
+
+#site-content
+{
+    text-align: left;
+    background-color: #fff;
+    padding: 0px;
+    margin: 0px;
+    padding-bottom:20px;
+}
+
+#site-navigation {
+  padding: 0px;
+  margin-top: -24px;
+  font-weight: bold;
+  background-color: #dddddd;
+  border-right: 1px solid #000066;
+  padding-bottom:20px;
+}
+
+.pagetitle {
+	font-size: 28px;
+	font-weight: bold;
+	font-family: Arial, sans-serif;
+	color: #003366;
+        margin-bottom: 10px;
+}
+
+#site-page
+{
+    text-align: left;
+    background-color: #fff;
+    padding: 10px;
+    margin: 0px;
+}
+
+#site-footer {
+    background-image:      url('http://goopen.org/confluence/images/border/border_bottom.gif');
+    background-repeat:     repeat-x;
+    background-position:   left top;
+    padding-top:           4px;
+    color:                 #666;
+}
+
+/*********************************************************************
+ CSS Elements that are part of the confluence rendered xhtml
+ *********************************************************************/
+
 body, p, td, table, tr, .bodytext, .stepfield {
 	font-family: Verdana, arial, sans-serif;
 	font-size: 11px;
@@ -5,13 +74,7 @@
 	color: #000000;
 	font-weight: normal;
 }
-#PageContent {
-	text-align: left;
-	background-color: #fff;
-	padding: 0px;
-	margin: 0px;
-    padding-bottom:20px;
-}
+
 /*
 ** when this stylesheet is used for the Tiny MCE Wysiwyg editor's edit area, we can't
 ** use an id=PageContent or class=wiki-content, so we must
@@ -19,9 +82,9 @@
 */
 
 body {
-	margin: 0px;
-	padding: 0px;
-	text-align: center;
+    margin: 0px;
+    padding: 0px;
+    text-align: center;
     background-color: #f0f0f0;
 }
 
@@ -258,13 +321,6 @@
  	border-bottom: 1px solid #3c78b5;
 }
 
-.pagetitle {
-	font-size: 22px;
-	font-weight: bold;
-	font-family: Arial, sans-serif;
-	color: #003366;
-}
-
 .steptitle {
 	font-size: 18px;
 	font-weight: bold;
@@ -1138,12 +1194,6 @@
 
 table.sectionMacroWithBorder td.columnMacro { border-style: dashed; border-width: 1px; border-color: #cccccc;}
 
-.pagecontent
-{
-    padding: 10px;
-    text-align: left;
-}
-
 /* styles for links in the top bar */
 .topBarDiv a:link {color: #ffffff;}
 .topBarDiv a:visited {color: #ffffff;}
@@ -1416,4 +1466,5 @@
 
 .leftnav li a:active {color:white;}
 .leftnav li a:visited {color:white;}
-.leftnav li a:hover {background-color: #003366; color:white;}
\ No newline at end of file
+.leftnav li a:hover {background-color: #003366; color:white;}
+

Added: geronimo/xbean/site/resources/space.js
URL: http://svn.apache.org/viewcvs/geronimo/xbean/site/resources/space.js?rev=407033&view=auto
==============================================================================
--- geronimo/xbean/site/resources/space.js (added)
+++ geronimo/xbean/site/resources/space.js Tue May 16 12:36:23 2006
@@ -0,0 +1,37 @@
+
+var hide = null;
+var show = null;
+var children = null;
+
+function init() {
+  /* Search form initialization */
+  var form = document.forms['search'];
+  if (form != null) {
+    form.elements['domains'].value = location.hostname;
+    form.elements['sitesearch'].value = location.hostname;
+  }
+
+  /* Children initialization */
+  hide = document.getElementById('hide');
+  show = document.getElementById('show');
+  children = document.all != null ?
+             document.all['children'] :
+             document.getElementById('children');
+  if (children != null) {
+    children.style.display = 'none';
+    show.style.display = 'inline';
+    hide.style.display = 'none';
+  }
+}
+
+function showChildren() {
+  children.style.display = 'block';
+  show.style.display = 'none';
+  hide.style.display = 'inline';
+}
+
+function hideChildren() {
+  children.style.display = 'none';
+  show.style.display = 'inline';
+  hide.style.display = 'none';
+}