[Silva-general] override style definitions in silva.css
Andy Altepeter
aaltepet at altepeter.net
Tue Apr 7 04:45:47 CEST 2009
Hi Marc,
There is currently no mechanism to customize the SMI without "messing around
in the original source code".
I could see acquisitoin working your favor here. If, in
Silva/views/macro_index.pt, you added a stylesheet reference to a zope object
(pt, dtml, etc) in Zope, like:
<link rel="stylesheet" type="text/css" href="local-smi-styles.css" />
Then you can place a 'local-smi-styles.css' anywhere within the silva root to
customize that area of the site. That local-smi-styles.css could include an
@import directive to import a parent stylesheet, and the root could contain
an empty stylesheet. (or the link tag could display on a
tal:condition="exists:...")
Regards,
Andy
On Tuesday 24 February 2009 05:06:42 pm Marc Petitmermet wrote:
> hi all
>
> is there a possibility to override some of the default smi styles
> (silva.css) without messing around in the original source code and so
> that the overridden styles only apply to a specific subfolder in a
> silva site? maybe there is some hook?
>
> regards,
> marc
>
>
> _______________________________________________
> silva-general mailing list
> silva-general at lists.infrae.com
> https://lists.infrae.com/mailman/listinfo/silva-general
More information about the silva-general
mailing list