Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

[doc] @nest with several rules/selectors #22

Closed
brillout opened this issue Sep 12, 2016 · 1 comment
Closed

[doc] @nest with several rules/selectors #22

brillout opened this issue Sep 12, 2016 · 1 comment

Comments

@brillout
Copy link

From reading the doc I was expecting following to work

div {
  @nest .c1 &,
  @nest .c2 & {
    color: red;
  }
}

but the correct usage is

div {
  @nest
  .c1 &,
  .c2 & {
    color: red;
  }
}

A note or example about that would have saved me 30mn.

Thanks for postcss-nesting btw, I really like it.

@jonathantneal
Copy link
Collaborator

The at-rule nesting in the first example demonstrates this. Still, bummed you had to lose time on it.

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

No branches or pull requests

2 participants