csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

wrong sort order when using BEM methodology

Open arozwalak opened this issue 10 years ago • 0 comments

when I have sass file like below:

.block {
    &__elem {
               // some styles
    }

    @include media($tablet) {
        &__elem {
               // some styles
        }
    }
}

after running csscomb @include mixin is above &__elem so this way I can't overwrite styles for particular media queries.

.block {
    @include media($tablet) {
        &__elem {
               // some styles
        }
    }

    &__elem {
               // some styles
    }
}

Is it possible to set in .csscomb.json how &__elem should be sorted?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

arozwalak avatar May 17 '15 15:05 arozwalak