You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by jw...@apache.org on 2007/04/02 17:29:43 UTC
svn commit: r524846 - in
/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp:
WEB-INF/trinidad-skins.xml skins/purple/purpleBigFontSkin.css
Author: jwaldman
Date: Mon Apr 2 10:29:42 2007
New Revision: 524846
URL: http://svn.apache.org/viewvc?view=rev&rev=524846
Log:
Add an example to the demo bundle of how you can extend another skin besides the simple.desktop skin.
Added:
incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/skins/purple/purpleBigFontSkin.css
Modified:
incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/WEB-INF/trinidad-skins.xml
Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/WEB-INF/trinidad-skins.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/WEB-INF/trinidad-skins.xml?view=diff&rev=524846&r1=524845&r2=524846
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/WEB-INF/trinidad-skins.xml (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/WEB-INF/trinidad-skins.xml Mon Apr 2 10:29:42 2007
@@ -36,6 +36,25 @@
org.apache.myfaces.trinidaddemo.resource.SkinBundle
</bundle-name>
</skin>
+ <!-- You can extend any skin you want. Here we want the purple
+ skin, but with a bigger font size -->
+ <skin>
+ <id>
+ purpleBigFont.desktop
+ </id>
+ <family>
+ purpleBigFont
+ </family>
+ <extends>
+ purple.desktop
+ </extends>
+ <render-kit-id>
+ org.apache.myfaces.trinidad.desktop
+ </render-kit-id>
+ <style-sheet-name>
+ skins/purple/purpleBigFontSkin.css
+ </style-sheet-name>
+ </skin>
<skin>
<id>
beach.desktop
Added: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/skins/purple/purpleBigFontSkin.css
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/skins/purple/purpleBigFontSkin.css?view=auto&rev=524846
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/skins/purple/purpleBigFontSkin.css (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/skins/purple/purpleBigFontSkin.css Mon Apr 2 10:29:42 2007
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+
+
+/** This skin extends the purple.desktop skin, but makes the font size bigger **/
+
+.AFDefaultFont:alias {
+ font-size: 18pt;
+}
\ No newline at end of file