Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit self selector with pseudo classes #7

Closed
jamesfoster opened this issue Apr 9, 2010 · 1 comment
Closed

implicit self selector with pseudo classes #7

jamesfoster opened this issue Apr 9, 2010 · 1 comment

Comments

@jamesfoster
Copy link
Contributor

From the original less.rb tests, you could just have a nested pseudo class without the self selector &.

a {
    :hover { color: red; }
}

this should do the same as

a {
    &:hover { color: red; }
}
@cloudhead
Copy link
Member

the behaviour for this has changed, to be more consistent. All nested selectors are now children by default. I should add this to the readme

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants