Wednesday 15 June 2011

css - Why doesn't this sass mixin with pseudo selectors work? -



css - Why doesn't this sass mixin with pseudo selectors work? -

this question has reply here:

passing css property:value mixins argument 1 reply

why doesn't work:

@mixin link($props) { &:link, &:visited { $props }; }

i maintain getting error:

invalid css after "...sited { $props ": expected ":", "};"

the syntax bit off couple of places, seek like:

@mixin link ($props) { &:hover, &:visited { color: $props; } }

where 'color' css rule. sense article has few sass mixin examples reference: http://zerosixthree.se/8-sass-mixins-you-must-have-in-your-toolbox/

css sass

No comments:

Post a Comment