Skip to content

Media query not always captured when parsing Sass #12

Description

@zastrow

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);
      }
    }
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions