Andreea Stefanescu wrote: > Hi Jean-Marc, > > Do you think it is possible/interesting to add in CPSSkins's themes > the possibility of defining a color as the result of a python script ? > > I have a rather complicated layout with tabs and I have a couple of > graphical elements that needs to change the color depending on the > selected tab. I don't want to create a page for each "tab" because > this would mean to maintain several pages which are otherwise > identical (except for the color). > > If you don't find this feature general enough for CPSSkins, do you > have any suggestion about the way I can do this quick and clean? > > Thanks > Hi! What we've done for the Chalmers site is that we've done several pages (4 pages) with a set of colors for each of them. The reason is that different sections of a site usually start that not only look different in terms of colors, but also the layout begins to change after a while. You never know how things evolve...
otherwise one solution is to add a local css file for each section that overrides the cpsskins settings (choose any CSS class name that applies to a box for instance that you want to create variations for) and overload it with your own colors (maybe add the '!important' css property to make sure that it will be overloaded). In the Zope3 version of cpsskins it is possible to do what you want by writing a simple color filter (so your use case is taken into account at least..). regards /JM _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
