Re: css variables

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: Re: css variables
Actually, this is for rails and I'm not really certain how I could
combine this with a fairly comprehensive css file to perform the
on-the-fly substitution since as you seem to be familiar with
ruby/rails, you probably realize that I am trying to implement this in a
template (view code). You may very well be on to something that is
beyond my understanding at the present time.

Craig

On Wed, 2007-02-07 at 21:42 -0700, Mike Garfias wrote:
> Craig -
>
> Why not use template for your css?
>
>     medblue = #<% medblue %>

>
> Then when you call the template funtion just make sure the medblue
> var in stuff into it is set to "466AD2".
>
> See: http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/ for more info
> (i'm pretty sure you know how to use template, just putting it in
> here so others can take a look)
>
> Mike
>
> On Feb 7, 2007, at 5:27 PM, Craig White wrote:
>
> > I can't find anything in w3.org specifications on stylesheets that
> > suggests that I can do this but is it possible to have a 'variable'
> > that
> > I could substitute within a single stylesheet?
> >
> > What I am looking for is to define a color - say medblue = #466AD2
> >
> > and then use &medblue; or whatever to refer to it in various
> > classes/id's
> >
> > Possible?
> >
> > --
> > Craig White <>
> >
> > ---------------------------------------------------
> > PLUG-discuss mailing list -
> > To subscribe, unsubscribe, or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss