Skip to content

nth-child and media query breaks system #91

@jklue

Description

@jklue

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions