many thanks Chris, that's what I needed.

On Wed, Apr 6, 2011 at 10:39 AM, Chris Eppstein <[email protected]> wrote:

> You can only store values in sass variables and selectors are only dynamic
> if you add scripting within #{}. So the following would work for you:
>
> $selectors: ".leftColumn, .rightColumn, .mainColumn";
>
> #{$selectors} {
> background:red;
> }
>
>
> Hunt & pecked on my iPhone... Sorry if it's brief!
>
> On Apr 6, 2011, at 7:48 AM, gmclelland <[email protected]> wrote:
>
> Is there anyway to store a set of selectors in a SASS variable?
>
> I have a list of selectors that have to be repeated in several css files.
>  I was hoping to store this list of selectors in a variable and then just
> use something like:
>
> $selectors: .leftColumn, .rightColumn, .mainColumn
>
> $selectors {
> background:red;
> }
>
> I tried it in the online tester, but it didn't work.
>
> Do variables have to contain css properties or can it contain any text
> string?
>
> Thanks,
> -Glenn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to