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 and media query breaks system #91

Open
jklue opened this issue Apr 5, 2016 · 0 comments
Open

nth-child and media query breaks system #91

jklue opened this issue Apr 5, 2016 · 0 comments

Comments

@jklue
Copy link

jklue commented Apr 5, 2016

Thanks for the awesome framework. I'm having an issue where only the first class with an nth-child() selector is compiled into the final css stylesheet, when there are 2 or more elements with nth-child() and the same csswizardy grid class.

This code:

.core-product:nth-child(1), .core-product:nth-child(2) {
    @extend %desk--two-thirds;
}

.. results in only the first mentioned class:nth-child getting the property-value pair in the resultant .css:

.core-product:nth-child(1){
    width: 66.666%; 
}

Am I doing something wrong? Thanks.

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

1 participant