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

"Parent" selector #1287

Closed
hilliuse opened this issue Apr 21, 2013 · 3 comments
Closed

"Parent" selector #1287

hilliuse opened this issue Apr 21, 2013 · 3 comments

Comments

@hilliuse
Copy link

Any chance there could be a "parent" selector that only goes 1 level up as opposed to the root of the nesting?

@jonschlinkert
Copy link
Contributor

Please create an example here: http://less2css.org/, or using GitHub flavored markdown so that we can discuss

@dmi3y
Copy link

dmi3y commented Apr 21, 2013

Hillius probably talking something about like :root css pseudo selector and actually sometimes it is really good to have something like this to the parents, guess the idea is the opposite nesting nature of CSS and could not be implemented in LESS without working on CSS engine itself

li.somethingNotable {
   color: red;

   &:parent(ul) {
     background: green;
   }
}

@lukeapage
Copy link
Member

uplicate of #1075 ?

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

No branches or pull requests

4 participants