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

nth-child not support #15

Open
vincehi opened this issue Sep 24, 2018 · 2 comments
Open

nth-child not support #15

vincehi opened this issue Sep 24, 2018 · 2 comments

Comments

@vincehi
Copy link

vincehi commented Sep 24, 2018

.class { &:nth-child(3n + 1) { } }

After scssfmt :

.class { false { } }

@wendeavontuur
Copy link

wendeavontuur commented Nov 1, 2018

nth-child(2n) works
nth-child(2n-1) works
nth-child(odd) works
nth-child(even) works
last-child works
first-child works

nth-child(2n+1) does not work

It looks like the error only occurs by using a '+' sign.

@wendeavontuur
Copy link

@souricevincent in your case you can use the next line:

.class { &:nth-child(3n-2) { } }

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