[Zope3-dev] Re: CSS-Style-Guide / looking for help

Roger Ineichen dev at projekt01.ch
Fri Feb 11 17:20:41 EST 2005


Hi Tonico

> -----Original Message-----
> From: zope3-dev-bounces+dev=projekt01.ch at zope.org 
> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On 
> Behalf Of Tonico Strasser
> Sent: Friday, February 11, 2005 6:15 PM
> To: zope3-dev at zope.org
> Cc: zope3-users at zope.org
> Subject: [Zope3-dev] Re: CSS-Style-Guide / looking for help
> 
> Roger Ineichen wrote:
> > The target whold be to use in all editforms, addforms and
> > other borwser pages/views allways the same CSS styles
> > for header, titles etc.
> 
> I have experimented with dynamically generated CSS names in 
> Z2. I wanted 
> to allow an CSS author to define whatever class and id names he wants.
> 
> The template author wouldn't need to care about class and id names. 
> Consider the following example:
> 
> <div tal:attributes="class elements/primary_section/class_name;"
>       metal:define-macro="primary_section">
>    Primary Section
> </div>
> 
> * The code could be easily reused, and:
> * no discussions about the ultimate class and id names.
> 
> In case of the ZMI that would mean, that somebody should 
> start to define 
> abstract elements of the UI.
> 
> Imaginary example:
> 
>    - page
>      - header
>      - body
>        - pre_section
>        - primary_section
>          - views
>          - primary_content
>            - header
>            - body
>        - secondary_section
>          - menu_items
>        - post_section
> 
> Sorry for not beeing Zope 3 specific.

That's ok

I really propose that everybody understand at least
the widget and forms in zope3 for a base where we use
for writing styles. That's actualy the default way how
Zope3 generates HTML based on interface fields.

Other concepts are adapteable or replace this pattern
and there are build from scratch. There you totaly free
useing new styles.

> Tonico

That looks great. And I now this has some ideas based on
your pagelet concept.

But this is not what we have to do now. 
That's a higher level concept where you should able to build
on top of our style's in zope3.

We have to make sure that we don't use styles in zope3 where
will break such higher level concepts.

I will provide a proposal later...

Regards
Roger Ineichen

Projekt01 GmbH
www.projekt01.ch
_____________________________
END OF MESSAGE    

 _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> 
> 



More information about the Zope3-dev mailing list