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

node-pixrem not working properly with nested rules #25

Closed
meritt opened this issue Jul 9, 2015 · 5 comments
Closed

node-pixrem not working properly with nested rules #25

meritt opened this issue Jul 9, 2015 · 5 comments

Comments

@meritt
Copy link

meritt commented Jul 9, 2015

Input source

body {
  font-size: 1.4rem;
  line-height: 1.2em;
}

dd {
  margin-left: 0;
  padding-left: 1.75rem;

  & + dt {
    margin-top: 2rem;
  }
}

Output

body {
  font-size: 22px;
  font-size: 1.4rem;
  line-height: 1.2em;
}

dd {
>>    margin-top: 32px;
  margin-left: 0;
  padding-left: 28px;
  padding-left: 1.75rem;
}

dd + dt {
  margin-top: 32px;
  margin-top: 2rem;
}

Example of configuration

@ai
Copy link
Member

ai commented Jul 9, 2015

The solution is very easy: put nested before cssnext.

Nested syntax is not really standard syntax. So you should fix it first.

@ai ai closed this as completed Jul 9, 2015
@ai
Copy link
Member

ai commented Jul 9, 2015

But I found a mistake inside pixrem, wait a second, I will make a goood report about it.

@ai
Copy link
Member

ai commented Jul 9, 2015

Done. Fix is very small, it is just misunderstanding of PostCSS API: robwierzbowski/node-pixrem#41

@ai
Copy link
Member

ai commented Jul 9, 2015

node-pixrem was fixed robwierzbowski/node-pixrem@9aa8c88

@meritt
Copy link
Author

meritt commented Jul 9, 2015

Thank you

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