forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scher...@wyona.com>
Subject Re: How to change color of NOTE-tag?
Date Thu, 07 Sep 2006 10:57:39 GMT
El jue, 07-09-2006 a las 12:51 +0200, Thorsten Scherler escribió:
> El jue, 07-09-2006 a las 12:18 +0200, G.Verhaag@lrcb.umcn.nl escribió:
> > Hoi Forrest users,
> > 
> > How do I modify the colors of for example the NOTE-tag? I've tried to
> > use <color name="note" value="red"/> in my skinconf.xml file, but this
> > seems to change only the color of the border!
> 
> Of the border, hmm? That is weird, isn't it?
> 
> Regarding
> http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/pelt/css/profile.css.xslt?view=markup
> ...
> <xsl:template match="color[@name='note']"> 
> .note         { border-color: <xsl:value-of select="@value"/>;} 
> </xsl:template> 
> 
> you are absolutely right and it seems the wanted behavior.
> 
> However you may want to send a patch where you change this behavior like:
> <color name="note" border="red" value="black" background="yellow"/> (in skinconf)
> and in above file change:
> <xsl:template match="color[@name='note']"> 
> .note         { 
> border-color: <xsl:value-of select="@border"/>;
> color: <xsl:value-of select="@value"/>;
> background-color: <xsl:value-of select="@background"/>;
> } 
> </xsl:template> 
> 
> BTW best to use HEX code for colors. Some code (like the round-corner images are only
working for hex).
> 
> HTH
> 
> salu2
> 
> > 
> > I also tried to add note { color: red } to the section extra-css in
> > the skinconf.xml, but this doens't have the desired effect!
> > 


Yeah, because it should read:
.note
^ the "." since it is a class.

salu2

> > Anybody any suggestions? (I use apache-forrest-0.7 in combination with
> > Java 1.5!)
> > 
> > Regards,
> > 
> > Verhaag, Gerard
> > 

-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


Mime
View raw message