You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2008/12/08 09:21:33 UTC

svn commit: r724284 - in /myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles: minimal-pda.xss simple-pda.xss

Author: matzew
Date: Mon Dec  8 00:21:32 2008
New Revision: 724284

URL: http://svn.apache.org/viewvc?rev=724284&view=rev
Log:
TRINIDAD-1336 - PDA Simple Skin generates CSS file that is too large for many phone browsers

Thanks to Tadashi Enomori for the patch

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/minimal-pda.xss
    myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-pda.xss

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/minimal-pda.xss
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/minimal-pda.xss?rev=724284&r1=724283&r2=724284&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/minimal-pda.xss (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/minimal-pda.xss Mon Dec  8 00:21:32 2008
@@ -19,6 +19,7 @@
 	   
 -->
 <styleSheetDocument xmlns="http://myfaces.apache.org/uix/style">
+  <import href="simple-desktop.xss"/>
   <import href="minimal-desktop.xss"/>
 
   <!-- A custom style sheet which overrides AFDefaultFontFamily -->
@@ -35,7 +36,6 @@
      <property name="font-family"/>
    </style>
 
-
    <!-- The default font -->
    <style name="AFDefaultFont">
      <includeStyle name="AFDefaultFontFamily"/>
@@ -78,6 +78,16 @@
      <property name="font-size">+3pt</property>
    </style>
 
+
+    <!-- darken to make visible on lcd displays -->
+    <style name="AFLightAccentBackground">
+      <property name="background-color">#ffffcc</property>
+    </style>
+       
+    <style name="AFEndPadding">
+      <property name="padding">0px 2px 0px 0px</property>
+    </style> 
+
     <!-- set the text style on the body so that it doesn' -->
     <!-- have to be repeated -->
     <style selector="BODY">
@@ -102,10 +112,43 @@
     </style>
     
     <!-- Header Text -->
-    <!-- this is the same as simple-pda, so we don't need to define it here -->
+    <!-- for pda, this is the level-one style -->
+     <style name="AFHeaderText">
+        <property name="padding"/>
+        <property name="border-style"/>
+        <property name="border-color"/>
+        <property name="border-width"/>
+        <property name="font-weight">bold</property>
+        <includeStyle name="AFDarkForeground"/>
+        <property name="margin-top">0px</property>
+    </style> 
+    <style selector=".AFHeaderLevelTwo">
+      <property name="margin-top">4px</property>
+    </style> 
+    <style selector=".AFHeaderLevelThreePlus">
+      <includeStyle name="AFSmallFont"/>
+      <property name="margin-top">4px</property>
+    </style> 
 
+   <style selector="af|panelHeader::error">
+      <property name="margin-top">0px</property>
+   </style>
     
-
+  <style selector="af|messages::error">
+    <includeStyle name="AFDefaultFont"/>
+    <includeStyle name="AFErrorTextForeground"/>
+  </style> 
+  
+  <style selector="af|messages::header">
+    <includeStyle name="AFDefaultFont"/>
+    <includeStyle name="AFDarkForeground"/>
+  </style>  
+  
+  <!--PH:include styling for body background of a message box-->
+  <style selector="af|messages::body">
+      <includeStyle name="AFLightAccentBackground"/>
+  </style>  
+  
     <!-- Page Sub Header Text TBD -->
     <!-- Page Content Header TBD -->
     <!-- Instruction Text == .AFInstructionText, OK -->
@@ -113,18 +156,19 @@
     <!-- Subtext TBD -->
 
     <!-- Label -->
-
-    <style selector=".AFLabelText"> 
+    <style selector=".AFLabelText">
       <includeStyle name="AFVerySmallFont"/>
       <property name="font-weight">bold</property>
     </style>
-
-    <style selector=".AFLabelTextDisabled"> 
+    
+    <!-- Label -->
+    <style selector=".AFLabelTextDisabled">
       <includeStyle name="AFVerySmallFont"/>
       <property name="font-weight">bold</property>
-    </style>
+    </style>    
 
     <!-- Link == A:link, OraLinkText, OK -->
+    <!-- MicroLink == .OraGlobalButtonText..., Others? -->
     <!-- Column Header == af|column::header-text, OK -->
     <!-- Error! == OraErrorNameText, OK --> 
     <!-- Error Message Font == OraMessageBoxErrorText, OK --> 
@@ -144,6 +188,42 @@
       <property name="color">#000000</property>
     </style>
 
+    <!-- menuButtons -->
+  
+    <style selector="af|menuButtons::text">
+      <includeStyle name="SmallLinkFont"/>
+      <includeStyle name="AFLinkForeground"/>
+      <property name="padding"/>
+      <property name="vertical-align"/>
+    </style>
+
+    <!-- Can't change link color, so setting to bold -->
+   <style selector="af|menuButtons::text-selected">
+      <includeStyle name="AFSmallFont"/>
+      <includeStyle name="AFDarkForeground"/>
+      <property name="font-weight">bold</property>
+      <property name="padding"/>
+      <property name="vertical-align"/>
+    </style>
+
+   <style selector="af|menuButtons::text-disabled">
+      <includeStyle name="AFSmallFont"/>
+      <includeStyle name="AFVeryDarkAccentForeground"/>
+      <property name="padding"/>
+      <property name="vertical-align"/>
+    </style>
+    
+    <!-- styles used in af|panelPage::privacy, copyright, and about -->
+    <style name="AFFooterMessageText">
+      <property name="text-align">center</property>
+      <property name="padding"/>
+    </style>
+  
+    <style name="AFFooterMessageLink">
+      <includeStyle name="AFLinkForeground"/>
+    </style>
+
+
     <style selector=".OraCrumbsSelected">
       <includeStyle name="AFVerySmallFont"/>
     </style>
@@ -211,8 +291,8 @@
       <includeStyle name="AFVeryDarkForeground"/>
     <property name="text-decoration">none</property>
     </style>
-          
-   <style selector="af|menuTabs::selected">
+      
+    <style selector="af|menuTabs::selected">
       <property name="background-color"/>
       <property name="border-color"/>
     </style>
@@ -221,6 +301,17 @@
       <includeStyle name="AFVeryDarkForeground"/>
     <property name="text-decoration">none</property>
     </style>
+  
+    <style selector="af|menuTabs::selected-active">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+  
+    <style selector="af|menuTabs::selected-visited">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+      
 
     <style selector="af|menuTabs::enabled">
       <property name="background-color"/>
@@ -230,7 +321,18 @@
       <includeStyle name="AFVeryDarkForeground"/>
     <property name="text-decoration">none</property>
     </style>
-
+  
+    <style selector="af|menuTabs::enabled-active">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+  
+    <style selector="af|menuTabs::enabled-visited">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+      
+    
     <style selector="af|menuBar::selected">
       <property name="background-color"/>
     </style>
@@ -239,6 +341,17 @@
       <includeStyle name="AFVeryDarkForeground"/>
     <property name="text-decoration">none</property>
     </style>
+  
+    <style selector="af|menuBar::selected-active">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+  
+    <style selector="af|menuBar::selected-visited">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+      
 
     <style selector="af|menuBar::enabled">
       <property name="background-color"/>
@@ -248,8 +361,17 @@
       <includeStyle name="AFVeryDarkForeground"/>
     <property name="text-decoration">none</property>
     </style>
- 
-    
+  
+    <style selector="af|menuBar::enabled-active">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+  
+    <style selector="af|menuBar::enabled-visited">
+      <includeStyle name="AFVeryDarkForeground"/>
+    <property name="text-decoration">none</property>
+    </style>
+         
     <style selector="af|table::control-bar-top">
       <property name="background-color"/>
       <property name="border-style"/>

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-pda.xss
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-pda.xss?rev=724284&r1=724283&r2=724284&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-pda.xss (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-pda.xss Mon Dec  8 00:21:32 2008
@@ -20,7 +20,7 @@
 -->
 <styleSheetDocument xmlns="http://myfaces.apache.org/uix/style">
 
-  <import href="simple-desktop.xss"/>
+  <!--import href="simple-desktop.xss"/-->
 
   <!-- A custom style sheet which overrides AFDefaultFontFamily -->
   <styleSheet>
@@ -43,490 +43,20 @@
      <property name="font-weight">bold</property>
    </style>
  
-   <!-- A very small font -->
-   <style name="AFVerySmallFont">
-     <includeStyle name="AFDefaultFont"/>
-     <property name="font-size">-2pt</property>
-   </style>
- 
-   <!-- A small font -->
-   <style name="AFSmallFont">
-     <includeStyle name="AFDefaultFont"/>
-     <property name="font-size">-1pt</property>
-   </style>
- 
-   <!-- A medium font - just slightly bigger than default -->
-   <style name="AFMediumFont">
-     <includeStyle name="AFDefaultFont"/>
-     <property name="font-size">+1pt</property>
-   </style>
- 
-   <!-- A large font -->
-   <style name="AFLargeFont">
-     <includeStyle name="AFDefaultFont"/>
-     <property name="font-size">+2pt</property>
-   </style>
- 
-   <!-- A very large font -->
-   <style name="AFVeryLargeFont">
-     <includeStyle name="AFDefaultFont"/>
-     <property name="font-size">+3pt</property>
-   </style>
-
-
-    <!-- darken to make visible on lcd displays -->
-    <style name="AFLightAccentBackground">
-      <property name="background-color">#ffffcc</property>
-    </style>
-       
-    <style name="AFEndPadding">
-      <property name="padding">0px 2px 0px 0px</property>
-    </style> 
-
-    <!-- set the text style on the body so that it doesn' -->
-    <!-- have to be repeated -->
-    <style selector="BODY">
-      <includeStyle name="AFTextBackground"/>
-      <includeStyle name="AFDefaultFont"/>
-    </style>
-
-    <!-- Page Header Text -->
-    <style selector=".OraGlobalPageTitle">
-      <includeStyle name="AFLargeFont"/>
-      <includeStyle name="AFDarkForeground"/>
-    </style>
-    
-    <!-- Header Text -->
-    <!-- for pda, this is the level-one style -->
-     <style name="AFHeaderText">
-        <property name="padding"/>
-        <property name="border-style"/>
-        <property name="border-color"/>
-        <property name="border-width"/>
-        <property name="font-weight">bold</property>
-        <includeStyle name="AFDarkForeground"/>
-        <property name="margin-top">0px</property>
-    </style> 
-    <style selector=".AFHeaderLevelTwo">
-      <property name="margin-top">4px</property>
-    </style> 
-    <style selector=".AFHeaderLevelThreePlus">
-      <includeStyle name="AFSmallFont"/>
-      <property name="margin-top">4px</property>
-    </style> 
-
    <style selector="af|panelHeader::error">
       <property name="margin-top">0px</property>
    </style>
     
-  <style selector="af|messages::error">
-    <includeStyle name="AFDefaultFont"/>
-    <includeStyle name="AFErrorTextForeground"/>
-  </style> 
-  
-  <style selector="af|messages::header">
-    <includeStyle name="AFDefaultFont"/>
-    <includeStyle name="AFDarkForeground"/>
-  </style>  
-  
-  <!--PH:include styling for body background of a message box-->
-  <style selector="af|messages::body">
-      <includeStyle name="AFLightAccentBackground"/>
-  </style>  
-  
-    <!-- Page Sub Header Text TBD -->
-    <!-- Page Content Header TBD -->
-    <!-- Instruction Text == .AFInstructionText, OK -->
-    <!-- Text == AFDefaultFont OK -->
-    <!-- Subtext TBD -->
-
-    <!-- Label -->
-    <style selector=".AFLabelText">
-      <includeStyle name="AFVerySmallFont"/>
-      <property name="font-weight">bold</property>
-    </style>
-    
-    <!-- Label -->
-    <style selector=".AFLabelTextDisabled">
-      <includeStyle name="AFVerySmallFont"/>
-      <property name="font-weight">bold</property>
-    </style>    
-
-    <!-- Link == A:link, OraLinkText, OK -->
-    <!-- MicroLink == .OraGlobalButtonText..., Others? -->
-    <!-- Column Header == af|column::header-text, OK -->
-    <!-- Error! == OraErrorNameText, OK --> 
-    <!-- Error Message Font == OraMessageBoxErrorText, OK --> 
-    <!-- Help Text == OraInlineInfoText, OK -->
-
-    <!-- navigation bar styles shrunken -->
-    <style selector=".OraNavBarActiveLink">
-      <includeStyle name="AFSmallFont"/>
-    </style>
-
-    <style selector=".OraNavBarInactiveLink">
-      <includeStyle name="AFSmallFont"/>
-    </style>
-
-    <style selector=".OraNavBarViewOnly">
-      <includeStyle name="AFSmallFont"/>
-      <property name="color">#000000</property>
-    </style>
-
-    <!-- menuButtons -->
-  
-    <style selector="af|menuButtons::text">
-      <includeStyle name="SmallLinkFont"/>
-      <includeStyle name="AFLinkForeground"/>
-      <property name="padding"/>
-      <property name="vertical-align"/>
-    </style>
-
-    <!-- Can't change link color, so setting to bold -->
-   <style selector="af|menuButtons::text-selected">
-      <includeStyle name="AFSmallFont"/>
-      <includeStyle name="AFDarkForeground"/>
-      <property name="font-weight">bold</property>
-      <property name="padding"/>
-      <property name="vertical-align"/>
-    </style>
-
-   <style selector="af|menuButtons::text-disabled">
-      <includeStyle name="AFSmallFont"/>
-      <includeStyle name="AFVeryDarkAccentForeground"/>
-      <property name="padding"/>
-      <property name="vertical-align"/>
-    </style>
-    
-    <!-- styles used in af|panelPage::privacy, copyright, and about -->
-    <style name="AFFooterMessageText">
-      <property name="text-align">center</property>
-      <property name="padding"/>
-    </style>
-  
-    <style name="AFFooterMessageLink">
-      <includeStyle name="AFLinkForeground"/>
-    </style>
-
-
-    <style selector=".OraCrumbsSelected">
-      <includeStyle name="AFVerySmallFont"/>
-    </style>
-
-    <style selector=".OraCrumbsEnabled">
-      <includeStyle name="VerySmallLinkFont"/>
-    </style>
-
-    <!-- don't change font-size of disabled links -->
-    <style selector=".p_OraDisabled">
-        <property name="font-size"/>
-    </style>  
- 
-    <style selector=".p_OraTabBar">
-      <includeStyle name="SmallLinkFont"/>
-      <includeStyle name="AFLightBackground"/>
-      <property name="border-width"/>
-      <property name="border-style"/>
-      <property name="padding"/>
-    </style>
-  
-    <style selector=".p_OraGlobalHeader">  
-        <includeStyle name="SmallLinkFont"/>
-        <includeStyle name="LightExtraAccentBackground"/>
-        <includeStyle name="AFTextForeground"/>        
-    </style>
-
-
-    <style selector="OraLinkSelected">
-      <property name="background-color"/>
-      <property name="border-color"/>
-    </style>
-
-    <style selector="OraLinkSelectedLink">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="OraLinkSelectedActive">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="OraLinkSelectedVisited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-      
-
-    <style selector="OraLinkEnabled">
-      <property name="background-color"/>
-    </style>    
-    
-    <style selector="OraLinkEnabledLink">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="OraLinkEnabledActive">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="OraLinkEnabledVisited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-      
-    <style selector="af|menuTabs::selected">
-      <property name="background-color"/>
-      <property name="border-color"/>
-    </style>
-
-    <style selector="af|menuTabs::selected-link">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuTabs::selected-active">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuTabs::selected-visited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-      
-
-    <style selector="af|menuTabs::enabled">
-      <property name="background-color"/>
-    </style>    
-    
-    <style selector="af|menuTabs::enabled-link">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuTabs::enabled-active">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuTabs::enabled-visited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-      
-    
-    <style selector="af|menuBar::selected">
-      <property name="background-color"/>
-    </style>
-
-    <style selector="af|menuBar::selected-link">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuBar::selected-active">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuBar::selected-visited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-      
-
-    <style selector="af|menuBar::enabled">
-      <property name="background-color"/>
-    </style>    
-    
-    <style selector="af|menuBar::enabled-link">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuBar::enabled-active">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-  
-    <style selector="af|menuBar::enabled-visited">
-      <includeStyle name="AFVeryDarkForeground"/>
-    <property name="text-decoration">none</property>
-    </style>
-         
-    <style selector="af|table::control-bar-top">
-      <property name="background-color"/>
-      <property name="border-style"/>
-      <property name="border-color"/>
-      <property name="padding"/>
-    </style>
-    
-    <style selector="af|treeTable::control-bar-top">
-      <property name="background-color"/>
-      <property name="border-style"/>
-      <property name="border-color"/>
-      <property name="padding"/>
-    </style>
-    
-    <style selector="af|column::sortable-header-text">
-      <property name="border-width">1px</property>
-    </style>    
-    <!-- @todo maybe have desktop and pda have the same keys for button -->
-    <style selector=".OraButtonText">
-        <includeStyle name="AFSmallFont"/>
-        <includeStyle name="AFLightAccentBackground"/>
-        <includeStyle name="AFTextForeground"/>
-      </style>
-      
-      <style selector=".AFFieldText">    
-        <includeStyle name="AFSmallFont"/>
-      </style>               
-      <style selector=".AFFieldTextDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>                
-      <style selector=".AFFieldNumber">    
-        <includeStyle name="AFSmallFont"/>
-      </style>               
-      <style selector=".AFFieldNumberDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>                 
-      <style selector=".AFDataText">    
-        <includeStyle name="AFSmallFont"/>
-      </style>
-      <style selector=".AFDataTextDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>       
-      <style selector=".AFDataNumber">    
-        <includeStyle name="AFSmallFont"/>
-      </style> 
-      <style selector=".AFDataNumberDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>          
-      <style selector=".AFPhoneFieldText">    
-        <includeStyle name="AFSmallFont"/>
-      </style> 
-      <style selector=".AFPhoneFieldTextDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>        
-      <style selector=".AFPostalCodeFieldText">    
-        <includeStyle name="AFSmallFont"/>
-      </style> 
-      <style selector=".AFPostalCodeFieldTextDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>       
-      <style selector=".AFAddressFieldText">    
-        <includeStyle name="AFSmallFont"/>
-      </style>
-      <style selector=".AFAddressFieldTextDisabled">    
-        <includeStyle name="AFSmallFont"/>
-      </style>      
-  
-  </styleSheet>
-  <styleSheet platforms="windows" browsers="ie">
-    <!-- use Tahoma for everything -->
-    <style name="AFDefaultFontFamily">
-      <property name="font-family">Tahoma</property>
-    </style>
-    
-   <style name="AFDefaultFont">
-      <includeStyle name="AFDefaultFontFamily"/>
-      <property name="font-size">x-small</property>
-    </style>
-
-    <style name="AFVerySmallFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>
-
-
-    <style name="AFSmallFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>
-
-    <style name="AFMediumFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">x-small</property>
-    </style>
-
-    <style name="AFLargeFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">small</property>
-    </style>
-
-    <style name="AFVeryLargeFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">medium</property>
-    </style>
-
-
-    <!-- If I include AFVerySmallFont, which is defined above, shouldn't that work? 
-         I'm getting the attributes in blaf.xss -->
-    <style name="VerySmallLinkFont">
-      <!--includeStyle name="AFVerySmallFont"/-->
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>    
+   <style selector="af|messages::error">
+     <includeStyle name="AFDefaultFont"/>
+     <includeStyle name="AFErrorTextForeground"/>
+   </style> 
 
-    <!-- Same problem as above -->
-    <style name="SmallLinkFont">
-      <!--includeStyle name="AFSmallFont"/-->
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>    
-    </style>    
-  </styleSheet>
+   <style selector="af|messages::header">
+     <includeStyle name="AFDefaultFont"/>
+     <includeStyle name="AFDarkForeground"/>
+   </style>  
   
-  <styleSheet platforms="blackberry" browsers="blackberry">
-    
-   <style name="AFDefaultFont">
-      <includeStyle name="AFDefaultFontFamily"/>
-      <property name="font-size">x-small</property>
-    </style>
-
-    <style name="AFVerySmallFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>
-
-
-    <style name="AFSmallFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>
-
-    <style name="AFMediumFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">x-small</property>
-    </style>
-
-    <style name="AFLargeFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">small</property>
-    </style>
-
-    <style name="AFVeryLargeFont">
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">medium</property>
-    </style>
-
-
-    <!-- If I include AFVerySmallFont, which is defined above, shouldn't that work? 
-         I'm getting the attributes in blaf.xss -->
-    <style name="VerySmallLinkFont">
-      <!--includeStyle name="AFVerySmallFont"/-->
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>
-    </style>    
-
-    <!-- Same problem as above -->
-    <style name="SmallLinkFont">
-      <!--includeStyle name="AFSmallFont"/-->
-      <includeStyle name="AFDefaultFont"/>
-      <property name="font-size">xx-small</property>    
-    </style>    
   </styleSheet>  
   
 </styleSheetDocument>