[Zope3-dev] Re: CSS-Style-Guide / looking for help
Tonico Strasser
contact_tonico at yahoo.de
Mon Feb 14 09:52:00 EST 2005
Jean-Marc Orliaguet wrote:
> Tonico Strasser wrote:
>
>> Peter Simmons wrote:
>>
>>> Does it somehow add some functionality because the css designer can
>>> decide whether there are 2 classes for an element or something like
>>> that?
>>
>>
>>
> Hi,
>
>> Don't understand your question, but it should be easily possible to
>> put two names in the class attribute.
>>
>
> indeed you can write:
>
> <div class="blueArea redFont orangeBox fancyFormStyle">
> ...
> </div>
>
> because usually you want to define font shapes, area colors, etc for
> your entire site and re-use them inside many widgets, portlets. etc...
>
> This makes it possible to mix together CSS classes and avoid useless
> duplications in case only the color of a widget changes and not the
> fonts that it uses, CPSSkins uses that method of combining many CSS
> class names together, (font shapes, colors, area shapes, colors, form
> styles, etc...) to create composite styles for each object. It is a bit
> like impressionism in a sense...
>
> Which makes me wonder why one would want to set widget names in CSS
> class names...
If you are refering to my example in a previos post, I don't want widget
names in CSS class names, quite the contrast; the name(s) in the class
attribute should be independent of the widget name if created dynamically.
Tonico
More information about the Zope3-dev
mailing list