Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

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

Closed
brillout opened this issue Sep 12, 2016 · 2 comments
Closed

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

brillout opened this issue Sep 12, 2016 · 2 comments

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-cssnext btw, I really like it.

(cross issue: csstools/postcss-nesting#22)

@MoOx
Copy link
Owner

MoOx commented Nov 10, 2016

You are right, we should add this as an example.

@MoOx
Copy link
Owner

MoOx commented May 29, 2018

postcss-cssnext has been deprecated in favor of postcss-preset-env. Read more at https://moox.io/blog/deprecating-cssnext/

@MoOx MoOx closed this as completed May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants