[Seaside] Re: CSS/JS libs
rrobbes
rrobbes at info.unicaen.fr
Wed Jun 23 09:56:20 CEST 2004
Avi Bryant writes:
>
> On Jun 22, 2004, at 12:37 PM, rrobbes wrote:
>
>> Hi Avi,
>> Would this have any incidence on CSSs generated dynamically ?
>> I have for example some components whose font size
>> vary roughly with their nesting level in the component tree.
>> Romain
>
> I don't think it's generally a good idea to generate CSS dynamically.
> It's friendlier to both your designers (in terms of editing) and your
> browser (in terms of caching) to keep the CSS static. What I would do in
> your case is have dynamic class attributes instead - you can have a
> surrounding div around your components whose class indicates the nesting
> level, and then several versions of the styles scoped to that class:
>
> .root .foo {/* big font*/}
> .nested .foo {/*small font*/}
> .deeply-nested .foo {/* tiny font */}
>
That should be a better solution indeed. We have indeed been bitted by
the online css editor a few times, as it overwrited our code a few times ...
> Avi
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
More information about the Seaside
mailing list