Here's a neat trick using the parent expression, "&" in Sass:
#nav .selected a
color: black
&:hover
color: white
background: black
This trick is necessary when doing :focus, :hover, :first-child and stuff.
The "&" expression is also useful for hacks such as this:
#nav .selected
background: lemonchiffon
* html &
width: 99%
The inner selector becomes "* html #nav .selected". Neat
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---