You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2007/03/24 06:19:05 UTC

svn commit: r521980 [3/3] - in /activemq/site/styles: prototype.js rico.js site.css site.js type-settings.css

Modified: activemq/site/styles/site.css
URL: http://svn.apache.org/viewvc/activemq/site/styles/site.css?view=diff&rev=521980&r1=521979&r2=521980
==============================================================================
--- activemq/site/styles/site.css (original)
+++ activemq/site/styles/site.css Fri Mar 23 22:19:05 2007
@@ -187,3 +187,15 @@
   text-align:center;
   color: #a0a0a0;
 }
+
+/* ====================================================== */
+/*  Rounded Box Styling  */
+/* ====================================================== */
+
+div.warning {
+  /*
+  font-family: Verdana, arial, sans-serif;
+  */
+  background: #FFCCCC; 
+  margin-right:20px;
+} 

Added: activemq/site/styles/site.js
URL: http://svn.apache.org/viewvc/activemq/site/styles/site.js?view=auto&rev=521980
==============================================================================
--- activemq/site/styles/site.js (added)
+++ activemq/site/styles/site.js Fri Mar 23 22:19:05 2007
@@ -0,0 +1,28 @@
+/**
+ *  They should add this to Rico, and easy way to wrap an element.  Sometimes
+ *  you have to work with crap HTML, and you have to add stuff like div wrappers.
+ */
+Rico.Effect.Wrap = Class.create();
+Rico.Effect.Wrap.prototype = {
+   initialize: function(tagName, className, wrapper) {
+      var elements = document.getElementsByTagAndClassName(tagName,className);
+      for ( var i = 0 ; i < elements.length ; i++ ) {
+         e = elements[i];
+         new Insertion.Before(e, wrapper);
+         wrapperElement = e.previousSibling;
+	 while( wrapperElement.hasChildNodes() ) {
+            wrapperElement = wrapperElement.firstChild;
+         }
+         wrapperElement.appendChild(e);
+      }
+   }
+};
+
+
+window.onload=function(){
+   // Style the site with some JS
+   
+   new Rico.Effect.Wrap('table', 'warningMacro', "<div class='warning'></div>")
+   new Rico.Effect.Round('div', 'warning' );
+
+}
\ No newline at end of file

Modified: activemq/site/styles/type-settings.css
URL: http://svn.apache.org/viewvc/activemq/site/styles/type-settings.css?view=diff&rev=521980&r1=521979&r2=521980
==============================================================================
--- activemq/site/styles/type-settings.css (original)
+++ activemq/site/styles/type-settings.css Fri Mar 23 22:19:05 2007
@@ -1010,7 +1010,7 @@
 
 /* information macros */
 .noteMacro { border-style: solid; border-width: 1px; border-color: #F0C000; background-color: #FFFFCE; text-align:left; margin-top: 15px; margin-bottom: 5px}
-.warningMacro { border-style: solid; border-width: 1px; border-color: #c00; background-color: #fcc; text-align:left; margin-top: 15px; margin-bottom: 5px}
+.warningMacro { text-align:left; }
 .infoMacro { border-style: solid; border-width: 1px; border-color: #3c78b5; background-color: #D8E4F1; text-align:left; margin-top: 15px; margin-bottom: 5px}
 .tipMacro { border-style: solid; border-width: 1px; border-color: #090; background-color: #dfd; text-align:left; margin-top: 15px; margin-bottom: 5px}
 .informationMacroPadding { padding: 5px 0 0 5px; }