[Seaside] CSS dynamically manipulated

Sebastian Sastre ssastre at seaswork.com
Fri May 25 19:20:41 UTC 2007


Yeah, that would do the trick. Also Lukas pointed that attribute style could
be used anytime if override of ccs is required.

	thanks guys,

Sebastian

 

> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre 
> de Avi Bryant
> Enviado el: Viernes, 25 de Mayo de 2007 14:13
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] CSS dynamically manipulated
> 
> On 5/25/07, Sebastian Sastre <ssastre at seaswork.com> wrote:
> 
> > Right, but when visual posibilities has a big combinatorial 
> then you 
> > can use the states and the dinamyc css classes's values as 
> multiplication factors.
> > This is not so crazy, take 6 font sizes by 6 colors, that's 
> 36 you can 
> > still using static css, but that goes to 216 if you allow 
> the user to 
> > choose also between 6 fonts.
> >
> > So I wonder for a convenient way to manage dynamic CSS
> 
> But you can use multiple classes on a given element - so have 
> one set of classes for font sizes, one for colors, one for 
> fonts, and then change which three classes the element has 
> when you render it.
> 
> html div
>          class: self fontClass;
>          class: self colorClass;
>          class: self fontSizeClass;
>          with: 'Hello World'
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list