tags:

views:

443

answers:

1

I'm trying to put together a selector in SASS that will operate on the visted, hovered state of a link, but I can't quite seem to get the markup right, can someone enlighten me? I was writing it like this:

 &:visited:hover
     attribute: foo
+2  A: 
a
 &:visited:hover
    :attribute foo

Try that - note that identation is two spaces, and the colon goes before attribute not after.

I realise after coming back to this question after some time that it was indeed an indentation issue. This is sass after all :). Colon doesn't have to go before the attribute though, sass will accept either way of writing. I use the colon after as I find it easier to read.
Sam Murray-Sutton