more icon indicating copy to clipboard operation
more copied to clipboard

parent (&) selector broken

Open glennfu opened this issue 14 years ago • 1 comments

Using this:

    a {
      color: #038EA1;
      text-decoration: none;
      &:hover { text-decoration: underline; }
    }

Gives the error:

    expected one of @import * - @ :: : . # [ @media @font-face /* // } got & after:

Reading this post: https://less.tenderapp.com/discussions/questions/39-does-less-have-a-parent-selector-ala-sasss-operator

suggests that it works properly in the JS version, but has never worked in the ruby gem.

glennfu avatar Apr 19 '11 16:04 glennfu

It took me 1h to figure out that more doesn't support the & selector. Would be nice to have a notice in README.markdown.

heygambo avatar Apr 26 '11 14:04 heygambo