Skip to content

Inheriting with selectors #2335

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

Closed
mailvidi opened this issue Dec 12, 2014 · 3 comments
Closed

Inheriting with selectors #2335

mailvidi opened this issue Dec 12, 2014 · 3 comments

Comments

@mailvidi
Copy link

parent.css
.their-divA .their-divB {
  display: inline-block;
}
child.less
@import (less, reference) 'parent.css';

.myFunction() {
  .my-divA:extend(.their-divA all) {}

  .my-divB:extend(.their-divB all) {}
}

.myFunction();
Current Output
.my-divA .their-divB,
.their-divA .my-divB {
  display: inline-block;
}
Desired Output
.my-divA .my-divB {
  display: inline-block;
}

Any pointers please?

Thanks!
~VS

@seven-phases-max
Copy link
Member

See #1851 and #1952 (+ #1641 for wider examples).

@mailvidi
Copy link
Author

Ah, ok! Thanks!

@seven-phases-max
Copy link
Member

Closing as duplicate of #1851 and #1952.

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