You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by jw...@apache.org on 2011/01/06 04:40:14 UTC

svn commit: r1055738 - in /myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles: base-desktop.css simple-desktop.css

Author: jwaldman
Date: Thu Jan  6 03:40:14 2011
New Revision: 1055738

URL: http://svn.apache.org/viewvc?rev=1055738&view=rev
Log:
TRINIDAD-1994 remove unused @locale selectors to improve skinning performance

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/base-desktop.css
    myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-desktop.css

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/base-desktop.css
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/base-desktop.css?rev=1055738&r1=1055737&r2=1055738&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/base-desktop.css (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/base-desktop.css Thu Jan  6 03:40:14 2011
@@ -3635,21 +3635,6 @@
        the necessary fonts have been installed.
   **/
 
-  /** This named style defines the font families to use when generating
-       images on the server-side.  Note, the UIX will try to locate fonts
-       for any of the families listed here, so the list should contain
-       valid font family names for the server environment. **/
-  .DefaultServerFontFamily:alias {
-    font-family: Albany WT J,Dialog;
-  }
-
-  /** A named style for the default server-side font definition **/
-  .DefaultServerFont:alias {
-    -tr-rule-ref: selector("DefaultServerFontFamily:alias");
-    font-size: 13pt;
-    text-antialias: true;
-  }
-
   .p_OraOnePixelLine {
     -tr-rule-ref: selector(".AFDarkAccentBackground:alias");
     font-size: 0pt;
@@ -3860,24 +3845,6 @@
   For now, we only use Dialog for English - other locales can be added
   here as desired.
 **/
-@locale en {
-
-  /** Use native fonts **/
-  .DefaultServerFontFamily:alias {
-    font-family: Dialog;
-  }
-
-
-  .DefaultServerFont:alias {
-    /** Turn off antialiasing **/
-    text-antialias: false;
-
-    /** We can also use a slightly smaller font, since non-antialiased
-         text is legible at smaller font sizes **/
-    font-size: -1pt;
-  }
-
-}
 
 /* start ltr */
   .AFPanelBorderLayoutStart:alias:ltr {
@@ -4228,60 +4195,14 @@
     We don't specify a font family for CJK languages, since most browsers
     (Netscape, ICE, IE) seem to have problems displaying CJK text with
     our default font-family list (Arial, Helvetica, etc...).  We're better
-    off letting the font-family default.  (However - that just causes
-    still more problems on Windows Netscape 4 - so we've got more overrides
-    below for that specific case.
+    off letting the font-family default.
   **/
   .AFDefaultFontFamily:alias {
     -tr-inhibit: font-family;
   }
 
-  /** In order for CJK glyphs rendered on the server to be
-       appear readable, we need to crank up the font size and
-       turn on antialiasing **/
-  .DefaultServerFont:alias {
-    font-size: +1pt;
-    text-antialias: true;
-  }
-
-}
-
-/** Style sheet just for Japanese-specific styles **/
-@locale ja {
-
-  .DefaultServerFontFamily:alias {
-    font-family: Albany WT J, Dialog;
-  }
-
 }
 
-/** Style sheet just for Korean-specific styles **/
-@locale ko {
-
-  .DefaultServerFontFamily:alias {
-    font-family: Albany WT K, Dialog;
-  }
-
-}
-
-/** Style sheet just for Traditional Chinese specific styles **/
-@locale zh_TW {
-
-  .DefaultServerFontFamily:alias {
-    font-family: Albany WT TC, Dialog;
-  }
-
-}
-
-/** Style sheet just for Simplified Chinese specific styles **/
-@locale zh_CN {
-
-  .DefaultServerFontFamily:alias {
-    font-family: Albany WT SC, Dialog;
-  }
-}
-
-
 /** But: in CJK, IE is having some bad problems with sizing lists
   and choices correctly - this is bug 2440402.  For the two styles
   that are relevant here, work around the problem using size 100%.  That's

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-desktop.css
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-desktop.css?rev=1055738&r1=1055737&r2=1055738&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-desktop.css (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/resources/META-INF/adf/styles/simple-desktop.css Thu Jan  6 03:40:14 2011
@@ -99,34 +99,6 @@ af|treeTable::content
   -tr-rule-ref: selector(".AFVeryDarkAccentBorder:alias");
   -tr-rule-ref: selector(".OraTableBorder1111");
 }
-/** 
-    Styles for dynamically generated images 
-   **/
-/** The style for dynamically generated button images **/
-.AFButtonServerText:alias
-{
-  -tr-rule-ref: selector(".DefaultServerFont:alias");
-  -tr-rule-ref: selector(".AFLightAccentBackground:alias");
-  -tr-rule-ref: selector(".AFTextForeground:alias");
-}
-/** The style for dynamically generated disabled button images **/
-.AFButtonServerTextDisabled:alias
-{
-  -tr-rule-ref: selector(".DefaultServerFont:alias");
-  -tr-rule-ref: selector(".AFLightAccentBackground:alias");
-  -tr-rule-ref: selector(".AFVeryDarkAccentForeground:alias");
-}
-/** Button padding for Albany WT J **/
-.AlbanyButtonPadding:alias
-{
-  padding-top: -3px;
-  padding-bottom: -2px;
-}
-
-.ButtonServerPaddingAlbany WT J:alias
-{
-  -tr-rule-ref: selector(".AlbanyButtonPadding:alias");
-}
 
 .AFLogo
 {
@@ -143,33 +115,3 @@ af|treeTable::content
     background-image: url('../../images/logo-dark.gif');
   }
 }
-
-/** Style sheet just for Korean-specific styles **/
-@locale ko{
-
-  /** Button padding for Albany WT K **/
-  .ButtonServerPaddingAlbany WT K:alias {
-    -tr-rule-ref: selector(".AlbanyButtonPadding:alias");
-  }
-
-}
-
-/** Style sheet just for Traditional Chinese specific styles **/
-@locale zh_TW{
-
-  /** Button padding for Albany WT TC **/
-  .ButtonServerPaddingAlbany WT TC:alias {
-    -tr-rule-ref: selector(".AlbanyButtonPadding:alias");
-  }
-
-}
-
-/** Style sheet just for Simplified Chinese specific styles **/
-@locale zh_CN{
-
-  /** Button padding for Albany WT SC **/
-  .ButtonServerPaddingAlbany WT SC:alias {
-    -tr-rule-ref: selector(".AlbanyButtonPadding:alias");
-  }
-
-}