antonio     2003/12/10 04:23:11

  Modified:    src/blocks/woody/samples/resources
                        woody-calendar-styling.xsl
                        woody-samples-styling.xsl
  Added:       src/blocks/woody/samples/resources woody-calendar.css
  Log:
  Creating a separated .css for woody-calendar styling
  
  Revision  Changes    Path
  1.2       +1 -72     
cocoon-2.1/src/blocks/woody/samples/resources/woody-calendar-styling.xsl
  
  Index: woody-calendar-styling.xsl
  ===================================================================
  RCS file: 
/home/cvs//cocoon-2.1/src/blocks/woody/samples/resources/woody-calendar-styling.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- woody-calendar-styling.xsl        9 Dec 2003 21:18:04 -0000       1.1
  +++ woody-calendar-styling.xsl        10 Dec 2003 12:23:11 -0000      1.2
  @@ -28,78 +28,7 @@
     </xsl:template>
     
     <xsl:template name="woody-calendar-css">
  -    <style type="text/css">
  -      .woody_cpYearNavigation, .woody_cpMonthNavigation {
  -        background-color:#C0C0C0;
  -        text-align:center;
  -        vertical-align:center;
  -        text-decoration:none;
  -        color:#000000;
  -        font-weight:bold;
  -      }
  -      
  -      .woody_cpDayColumnHeader, .woody_cpYearNavigation, 
.woody_cpMonthNavigation, .woody_cpCurrentMonthDate, 
.woody_cpCurrentMonthDateDisabled, .woody_cpOtherMonthDate, 
.woody_cpOtherMonthDateDisabled, .woody_cpCurrentDate, 
.woody_cpCurrentDateDisabled, .woody_cpTodayText, .woody_cpTodayTextDisabled, 
.woody_cpText {
  -        font-family:arial;
  -        font-size:8pt;
  -      }
  -      
  -      TD.woody_cpDayColumnHeader {
  -        text-align:right;
  -        border:solid thin #C0C0C0;
  -        border-width:0 0 1 0;
  -      }
  -      
  -      .woody_cpCurrentMonthDate, .woody_cpOtherMonthDate, 
.woody_cpCurrentDate  {
  -        text-align:right;
  -        text-decoration:none;
  -      }
  -      
  -      .woody_cpCurrentMonthDateDisabled, .woody_cpOtherMonthDateDisabled, 
.woody_cpCurrentDateDisabled {
  -        color:#D0D0D0;
  -        text-align:right;
  -        text-decoration:line-through;
  -      }
  -      
  -      .woody_cpCurrentMonthDate, .woody_cpCurrentDate {
  -        color:#000000;
  -      }
  -      
  -      .woody_cpOtherMonthDate {
  -        color:#808080;
  -      }
  -      
  -      TD.woody_cpCurrentDate {
  -        color:white; background-color: #C0C0C0;
  -        border-width:1;
  -        border:solid thin #800000;
  -      }
  -      
  -      TD.woody_cpCurrentDateDisabled {
  -        border-width:1;
  -        border:solid thin #FFAAAA;
  -      }
  -      
  -      TD.woody_cpTodayText, TD.woody_cpTodayTextDisabled {
  -        border:solid thin #C0C0C0;
  -        border-width:1 0 0 0;
  -      }
  -      
  -      A.woody_cpTodayText, SPAN.woody_cpTodayTextDisabled {
  -        height:20px;
  -      }
  -      
  -      A.woody_cpTodayText {
  -        color:black;
  -      }
  -      
  -      .woody_cpTodayTextDisabled {
  -        color:#D0D0D0;
  -      }
  -      
  -      .woody_cpBorder {
  -        border:solid thin #808080;
  -      }
  -    </style>
  +    <link rel="stylesheet" type="text/css" 
href="{$resources-uri}/woody-calendar.css"/>
     </xsl:template>
   
     <!--+
  
  
  
  1.5       +7 -7      
cocoon-2.1/src/blocks/woody/samples/resources/woody-samples-styling.xsl
  
  Index: woody-samples-styling.xsl
  ===================================================================
  RCS file: 
/home/cvs//cocoon-2.1/src/blocks/woody/samples/resources/woody-samples-styling.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- woody-samples-styling.xsl 9 Dec 2003 21:18:04 -0000       1.4
  +++ woody-samples-styling.xsl 10 Dec 2003 12:23:11 -0000      1.5
  @@ -2,10 +2,10 @@
   
   <xsl:stylesheet version="1.0"
                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  -  
  +
     <!-- Location of the resources directory, where JS libs and icons are 
stored -->
     <xsl:param name="resources-uri">resources</xsl:param>
  -  
  +
     <!-- Include styling stylesheets -->
     <!-- FIXME: xalan silently ignores non-existing stylesheets (such as when 
there's a typo in the name)
          ==> Is it in the XSLT spec? -->
  @@ -13,7 +13,7 @@
     <xsl:include href="woody-page-styling.xsl"/>
     <xsl:include href="woody-calendar-styling.xsl"/>
     <xsl:include href="woody-advanced-field-styling.xsl"/>
  -  
  +
     <xsl:template match="head">
       <xsl:copy>
         <xsl:apply-templates/>
  @@ -22,13 +22,13 @@
         <xsl:call-template name="woody-page-head"/>
         <xsl:call-template name="woody-calendar-head"/>
         <xsl:call-template name="woody-advanced-field-head"/>
  -      
  -      <link rel="stylesheet" type="text/css" href="resources/woody.css"/>
  -      
  +
  +      <link rel="stylesheet" type="text/css" 
href="{$resources-uri}/woody.css"/>
  +
         <xsl:call-template name="woody-calendar-css"/>
       </xsl:copy>
     </xsl:template>
  -  
  +
     <xsl:template match="body">
       <xsl:copy>
         <!--xsl:copy-of select="@*"/-->
  
  
  
  1.1                  
cocoon-2.1/src/blocks/woody/samples/resources/woody-calendar.css
  
  Index: woody-calendar.css
  ===================================================================
        .woody_cpYearNavigation, .woody_cpMonthNavigation {
          background-color:#C0C0C0;
          text-align:center;
          vertical-align:center;
          text-decoration:none;
          color:#000000;
          font-weight:bold;
        }
        
        .woody_cpDayColumnHeader, .woody_cpYearNavigation, 
.woody_cpMonthNavigation, .woody_cpCurrentMonthDate, 
.woody_cpCurrentMonthDateDisabled, .woody_cpOtherMonthDate, 
.woody_cpOtherMonthDateDisabled, .woody_cpCurrentDate, 
.woody_cpCurrentDateDisabled, .woody_cpTodayText, .woody_cpTodayTextDisabled, 
.woody_cpText {
          font-family:arial;
          font-size:8pt;
        }
        
        TD.woody_cpDayColumnHeader {
          text-align:right;
          border:solid thin #C0C0C0;
          border-width:0 0 1 0;
        }
        
        .woody_cpCurrentMonthDate, .woody_cpOtherMonthDate, 
.woody_cpCurrentDate  {
          text-align:right;
          text-decoration:none;
        }
        
        .woody_cpCurrentMonthDateDisabled, .woody_cpOtherMonthDateDisabled, 
.woody_cpCurrentDateDisabled {
          color:#D0D0D0;
          text-align:right;
          text-decoration:line-through;
        }
        
        .woody_cpCurrentMonthDate, .woody_cpCurrentDate {
          color:#000000;
        }
        
        .woody_cpOtherMonthDate {
          color:#808080;
        }
        
        TD.woody_cpCurrentDate {
          color:white; background-color: #C0C0C0;
          border-width:1;
          border:solid thin #800000;
        }
        
        TD.woody_cpCurrentDateDisabled {
          border-width:1;
          border:solid thin #FFAAAA;
        }
        
        TD.woody_cpTodayText, TD.woody_cpTodayTextDisabled {
          border:solid thin #C0C0C0;
          border-width:1 0 0 0;
        }
        
        A.woody_cpTodayText, SPAN.woody_cpTodayTextDisabled {
          height:20px;
        }
        
        A.woody_cpTodayText {
          color:black;
        }
        
        .woody_cpTodayTextDisabled {
          color:#D0D0D0;
        }
        
        .woody_cpBorder {
          border:solid thin #808080;
        }
  
  
  

Reply via email to