sparkbox / splinter

🐭 Parse and split SCSS files based on functions and mixins.
2 stars 0 forks source link

Media query not always captured when parsing Sass #12

Open zastrow opened 7 years ago

zastrow commented 7 years ago

Had the following in my code. With this setup the media query was not captured setting the background color at all screen sizes, not just those under the max-width.

.element {
  @media (max-width: 600px) {
    &.modifier {
      @include brand(brand1) {
         background-color: brand-color(color2);
      }
      @include brand(brand1) {
         background-color: brand-color(color3);
      }
    }
  }
}
zastrow commented 7 years ago

This may have more to do with the local variable and the media query together.