Le Feb 28, 2007 à 10:36 AM, Jean-Marc Orliaguet a écrit :



about global styles and presets:

the style properties that apply to pages / sections / cells will be limited to:

- border
- background
- padding (although this goes to the layout)
if you think about it you don't need to set the font style inside a section or a cell, because a cell contains no text. The text is inside the fragment contained in the cell. So you really want to apply font styles to fragments, not to cells. The problem is that this normally involves a lot of duplication, so in CSS you'd usually apply the style to the parent object, or globally (which is worse).

here instead you'll define a preset (see org.nuxeo.theme.demo/OSGI- INF/nxthemes-demo-contrib.xml)

<extension target="org.nuxeo.theme.services.ThemeService" point="presets">
   <preset name="red" value="#f00" />
   <preset name="default font" value="12px Arial" />
 </extension>


and refer to the preset in your style but writing:

font:     preset:default font

, so to modify the default font globally for the entire theme, you will do that in OSGI-INF, not in CSS....

I hope this makes sense?

everything you said seems fine,
i can't wait to use all capabilities of NxThemes :-)

thanks,

++

tibo
--
Thibaut Soulcié – GraphicDesign – Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com & http://www.nuxeo.org


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to