I have a rule that I only want to apply to direct descendants of a
certain class, but I'm not sure how to express this in SASS. In plain
css I would use a direct child selector, like so:
table.fancy > tr {
// do fancy stuff
}
This rule only applies to tr-tags that are direct descendants of a
table with the class 'fancy' so it would not apply to tr-tags of a
nested table. (I know, I know).
How would I do this in SASS?
The only thing I could think of was this:
table.fancy > tr
// do fancy stuff
But that doesn't seem to work.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---