You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2007/12/31 11:17:05 UTC

svn commit: r607710 - in /myfaces/maven/trunk/myfaces-site-skin: ./ src/ src/main/ src/main/resources/ src/main/resources/css/ src/main/resources/images/

Author: skitching
Date: Mon Dec 31 02:17:03 2007
New Revision: 607710

URL: http://svn.apache.org/viewvc?rev=607710&view=rev
Log:
Add a default skin for myfaces site, based on the site.css files formerly inside the myfaces core projects.

Added:
    myfaces/maven/trunk/myfaces-site-skin/
    myfaces/maven/trunk/myfaces-site-skin/pom.xml   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/
    myfaces/maven/trunk/myfaces-site-skin/src/main/
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/png-fix.htc
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/dl.jpg   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/external.png   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/h3.jpg   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_error_sml.gif   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_info_sml.gif   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_success_sml.gif   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_warning_sml.gif   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/myfaces-logo.png   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/newwindow.png   (with props)
    myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/transparent.gif   (with props)

Added: myfaces/maven/trunk/myfaces-site-skin/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/pom.xml?rev=607710&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-site-skin/pom.xml (added)
+++ myfaces/maven/trunk/myfaces-site-skin/pom.xml Mon Dec 31 02:17:03 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <version>1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>MyFaces Default Site Skin</name>
+  <groupId>org.apache.myfaces.maven</groupId>
+  <artifactId>myfaces-site-skin</artifactId>
+
+   <scm>
+      <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/myfaces-maven-skins/trunk/myfaces-site-skin</connection>
+      <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/myfaces-maven-skins/trunk/myfaces-site-skin</developerConnection>
+      <url>http://svn.apache.org/viewcvs.cgi/myfaces/myfaces-maven-skins/trunk/myfaces-site-skin</url>
+    </scm>
+
+  <distributionManagement>
+    <repository>
+      <id>myfaces-staging</id>
+      <name>Apache MyFaces Staging Repository</name>
+      <url>scpexe://people.apache.org/www/people.apache.org/builds/myfaces/m2-staging-repository</url>
+    </repository>
+    <snapshotRepository>
+      <uniqueVersion>false</uniqueVersion>
+      <id>apache-maven-snapshots</id>
+      <name>Apache Maven Snapshot Repository</name>
+      <url>scpexe://minotaur.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
+    </snapshotRepository>
+  </distributionManagement>
+</project>

Propchange: myfaces/maven/trunk/myfaces-site-skin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css?rev=607710&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css (added)
+++ myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css Mon Dec 31 02:17:03 2007
@@ -0,0 +1,160 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+body {
+  padding: 0px 0px 10px 0px;
+}
+body, td, select, input, li{
+  font-family: Verdana, Helvetica, Arial, sans-serif;
+  font-size: 13px;
+}
+code{
+  font-family: Courier, monospace;
+  font-size: 13px;
+}
+a {
+  text-decoration: none;
+}
+a:link {
+  color:#36a;
+}
+a:visited  {
+  color:#47a;
+}
+a:active, a:hover {
+  color:#69c;
+}
+#legend li.externalLink {
+  background: url(../images/external.png) left top no-repeat;
+  padding-left: 18px;
+}
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+  background: url(../images/external.png) right center no-repeat;
+  padding-right: 18px;
+}
+#legend li.newWindow {
+  background: url(../images/newwindow.png) left top no-repeat;
+  padding-left: 18px;
+}
+a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
+  background: url(../images/newwindow.png) right center no-repeat;
+  padding-right: 18px;
+}
+h2 {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #999;
+  color: #900;
+  background-color: #ddd;
+  font-weight:900;
+  font-size: x-large;
+}
+h3 {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #aaa;
+  color: #900;
+  background-color: #eee;
+  font-weight: normal;
+  font-size: large;
+}
+h4 {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #bbb;
+  color: #900;
+  background-color: #fff;
+  font-weight: normal;
+  font-size: large;
+}
+h5 {
+  padding: 4px 4px 4px 6px;
+  color: #900;
+  font-size: medium;
+}
+p {
+  line-height: 1.3em;
+  font-size: small;
+}
+#breadcrumbs {
+  border-top: 1px solid #aaa;
+  border-bottom: 1px solid #aaa;
+  background-color: #ccc;
+}
+#leftColumn {
+  margin: 10px 0 0 5px;
+  border: 1px solid #999;
+  background-color: #eee;
+}
+#navcolumn h5 {
+  font-size: smaller;
+  border-bottom: 1px solid #aaaaaa;
+  padding-top: 2px;
+  color: #000;
+}
+
+table.bodyTable th {
+  color: white;
+  background-color: #bbb;
+  text-align: left;
+  font-weight: bold;
+}
+
+table.bodyTable th, table.bodyTable td {
+  font-size: 1em;
+}
+
+table.bodyTable tr.a {
+  background-color: #ddd;
+}
+
+table.bodyTable tr.b {
+  background-color: #eee;
+}
+
+.source {
+  border: 1px solid #999;
+}
+dl {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #aaa;
+  background-color: #ffc;
+}
+dt {
+  color: #900;
+}
+#organizationLogo img, #projectLogo img, #projectLogo span{
+  margin: 8px;
+}
+#banner {
+  border-bottom: 1px solid #fff;
+}
+.errormark, .warningmark, .donemark, .infomark {
+  background: url(../images/icon_error_sml.gif) no-repeat;
+}
+
+.warningmark {
+  background-image: url(../images/icon_warning_sml.gif);
+}
+
+.donemark {
+  background-image: url(../images/icon_success_sml.gif);
+}
+
+.infomark {
+  background-image: url(../images/icon_info_sml.gif);
+}
+

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/maven-theme.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/png-fix.htc
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/png-fix.htc?rev=607710&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/png-fix.htc (added)
+++ myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/png-fix.htc Mon Dec 31 02:17:03 2007
@@ -0,0 +1,57 @@
+<public:component lightWeight="true">
+<public:attach event="onpropertychange" onEvent="propertyChanged()" />
+<script>
+/*
+ * Based on
+ * http://www.mongus.net/pngInfo/
+ * and
+ * http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
+ *
+ */
+
+       var gNeedFix = needFix();
+
+       var transparentImage = "transparent.gif";
+
+       pngFix();
+
+       function propertyChanged() {
+               if (event.propertyName == "src") {
+                       pngFix();
+         }
+       }
+
+       function pngFix() {
+               if (!gNeedFix) {
+                       return;
+               }
+
+               var src = element.src;
+
+               if (src.indexOf(transparentImage) != -1) {
+                       return;
+               }
+
+               if (src.indexOf(".png") == -1) {
+                       return;
+               }
+
+   var w = element.width;
+   var h = element.height;
+               element.src = src.substring(0, src.lastIndexOf('/') + 1)  + transparentImage;
+   element.width = w;
+   element.height = h;
+               element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
+       }
+
+       function needFix() {
+               var pos = navigator.userAgent.indexOf("MSIE ");
+               if (pos == -1) {
+                       return false;
+               }
+               var version = navigator.userAgent.substring(pos + 5);
+               return (((version.indexOf("5.5") == 0) || (version.indexOf("6") == 0)) && (navigator.platform == ("Win32")));
+       }
+
+</script>
+</public:component>
\ No newline at end of file

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css?rev=607710&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css (added)
+++ myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css Mon Dec 31 02:17:03 2007
@@ -0,0 +1,198 @@
+body {
+        background-color: #fff;
+	font-family: Verdana, Helvetica, Arial, sans-serif;
+	margin-left: auto;
+	margin-right: auto;
+	background-repeat: repeat-y;
+	font-size: 13px;
+	padding: 0px;
+}
+td, select, input, li{
+	font-family: Verdana, Helvetica, Arial, sans-serif;
+	font-size: 12px;
+	color:#333333;
+}
+code{
+  font-size: 12px;
+}
+a {
+  text-decoration: none;
+}
+a:link {
+  color:#47a;
+}
+a:visited  {
+  color:#666666;
+}
+a:active, a:hover {
+  color:#990000;
+}
+#legend li.externalLink {
+  background: url(../images/external.png) left top no-repeat;
+  padding-left: 18px;
+}
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+  background: url(../images/external.png) right center no-repeat;
+  padding-right: 18px;
+}
+#legend li.newWindow {
+  background: url(../images/newwindow.png) left top no-repeat;
+  padding-left: 18px;
+}
+a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
+  background: url(../images/newwindow.png) right center no-repeat;
+  padding-right: 18px;
+}
+h2 {
+	font-size: 17px;
+	color: #333333;  
+}
+h3 {
+	padding: 4px 4px 4px 24px;
+	color: #666666;
+	background-color: #CECECE;
+	font-weight: bold;
+	font-size: 14px;
+	background-image: url(../images/h3.jpg);
+	background-repeat: no-repeat;
+	background-position: left bottom;
+}
+p {
+  line-height: 1.3em;
+  font-size: 12px;
+  color: #000;
+}
+#breadcrumbs {
+	color: #DDDDDD;
+	padding: 5px 5px 5px 5px;
+}
+
+* html #breadcrumbs {
+	padding-bottom: 8px;
+}
+#leftColumn {
+  background-color: #B2C4E0;
+}
+#navcolumn h5 {
+	font-size: smaller;
+	border-bottom: 1px solid #aaaaaa;
+	padding-top: 2px;
+	padding-left: 9px;
+	color: #49635a;
+	background-image: url(../images/h5.gif);
+	background-repeat: no-repeat;
+	background-position: left bottom;
+}
+
+table.bodyTable th {
+  color: white;
+  background-color: #999999;
+  text-align: left;
+  font-weight: bold;
+}
+
+table.bodyTable th, table.bodyTable td {
+  font-size: 11px;
+}
+
+table.bodyTable tr.a {
+  background-color: #ddd;
+}
+
+table.bodyTable tr.b {
+  background-color: #eee;
+}
+
+.source {
+  border: 1px solid #999;
+  overflow:auto
+}
+dt {
+	padding: 4px 4px 4px 24px;
+	color: #333333;
+	background-color: #ccc;
+	font-weight: bold;
+	font-size: 14px;
+	background-image: url(../images/h3.jpg);
+	background-repeat: no-repeat;
+	background-position: left bottom;
+}
+.subsectionTitle {
+	font-size: 13px;
+	font-weight: bold;
+	color: #666;
+
+}
+
+table {
+	font-size: 10px;
+}
+.xright a:link, .xright a:visited, .xright a:active {
+  color: #666;
+}
+.xright a:hover {
+  color: #003300;
+}
+#banner {
+	background-color: #B5C8CF;
+	border-bottom: 1px solid #B5C8CF;
+}
+#navcolumn ul {
+	margin: 5px 0 15px -0em;
+}
+#navcolumn ul a {
+	color: #333333;
+}
+#navcolumn ul a:hover {
+	color: red;
+}
+#intro {
+	border: solid #ccc 1px;
+	margin: 6px 0px 0px 0px;
+	padding: 10px 40px 10px 40px;
+}
+.subsection {
+	margin-left: 3px;
+	color: #333333;
+}
+
+.subsection p {
+	font-size: 12px;
+}
+#footer {
+  padding: 10px;
+  margin: 20px 0px 20px 0px;
+  border-top: solid #ccc 1px; 
+  color: #333333;
+}
+
+
+dl {
+  padding: 0px 0px 5px 0px;
+  border: 0px;
+  background: url(../images/dl.jpg) left top no-repeat
+}
+
+dt {
+  padding: 0px 0px 0px 25px;
+  border: 0px;
+  background-color: #FFFFFF;
+}
+
+div#leftColumn {
+  background: #F0F0F0;
+  border-color: #999 #999 #999 #999;
+  border-width: 1px;
+  border-style: solid;
+}
+
+
+
+#breadcrumbs{
+  background: #F0F0F0;
+  color: #000000; 
+}
+
+#banner img {
+ behavior: url(css/png-fix.htc);
+}

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/css/site.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/dl.jpg
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/dl.jpg?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/dl.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/external.png
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/external.png?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/external.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/h3.jpg
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/h3.jpg?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/h3.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_error_sml.gif
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_error_sml.gif?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_error_sml.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_info_sml.gif
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_info_sml.gif?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_info_sml.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_success_sml.gif
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_success_sml.gif?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_success_sml.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_warning_sml.gif
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_warning_sml.gif?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/icon_warning_sml.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/myfaces-logo.png
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/myfaces-logo.png?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/myfaces-logo.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/newwindow.png
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/newwindow.png?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/newwindow.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/transparent.gif
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/transparent.gif?rev=607710&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/maven/trunk/myfaces-site-skin/src/main/resources/images/transparent.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream