forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: [DEVOTE] Solving the skinconf riddle
Date Wed, 05 May 2004 12:27:38 GMT
David Crossley wrote:
> I tried to apply the new format to the content of the
> current "fresh-site" skinconf.xml and attached the file
> http://issues.cocoondev.org/jira/secure/ViewIssue.jspa?key=FOR-144
> 
> Time expired before i could complete it. There are still
> some difficult ones remaining: colors, extra-css, pdf.


first try...

<feature name="extra-css">

       <!-- extra css here -->

</feature>

<feature name="colors">
   <element>
     <property name="header">#294563</property>
     <property name="tab-selected">#294563</property>
     <property name="tab-selected-link">#0F3660</property>
     <property name="tab-selected-vlink">#0F3660</property>
     <property name="tab-selected-hlink">#0F3660</property>
     <property name="tab-unselected">#294563</property>
     ...etc
   </element>
</feature>

<feature name="pdf">
   <element>
     <property name="page-size">#letter</property>
     <property name="page-orientation">portrait</property>
     <property name="margins-double-sided">false</property>
     <property name="margins-top">lin</property>
     <property name="margins-bottom">lin</property>
     <property name="margins-inner">1.25in</property>
     <property name="margins-outer">lin</property>
   </element>
</feature>

On second thought though, maybe keeping with the structure and adding 
names to elements is better:

<feature name="extra-css">
   <element>
     <property name="contents">

       <!-- extra css here -->

     </property>
   </element>
</feature>

<feature name="colors">
   <element name="header">
              ^^^^^^^
     <property name="color">#294563</property>
   </element>
   <element name="tab-selected">
              ^^^^^^^
     <property name="color">#294563</property>
     <property name="link">#0F3660</property>
     <property name="vlink">#0F3660</property>
     <property name="hlink">#0F3660</property>
   </element>
   <element name="tab-unselected">
              ^^^^^^^
     <property name="color">#294563</property>
   </element>

   <!-- etc -->
</feature>

<feature name="pdf">
   <element name="page">
     <property name="size">#letter</property>
     <property name="orientation">portrait</property>
   </element>
   <element name="margins">
     <property name="double-sided">false</property>
     <property name="top">lin</property>
     <property name="bottom">lin</property>
     <property name="inner">1.25in</property>
     <property name="outer">lin</property>
   </element>
</feature>


-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message