html - LESS nested rule with inherit parameters -
i know if less admit kind of operation variables:
.class(@a, @b) { color: @a; background: @b; &:hover { color: @b; background: @a; } } because when doing it, web matrix 3 throws me following error inside :hover section: "undeclared variable"
if not admitted, can possible solution?
thank in advance. cheers.
that's bug in webmatrix; less valid.
you can make shorter this:
.class(@a, @b) { &, &:hover { color: @b; background: @a; } }
Comments
Post a Comment