Skip to content

Important on mixin not working on embedded media queries. #2917

Open

Description

@Giwayume

This:

.mixin() {
  .classname {
    color: green;
    @media screen and(max-width: 500px) {
      color: red;
    }
  }
}
.mixin() !important;

Generates:

.classname {
  color: green !important;
}
@media screen and (max-width: 500px) {
  .classname {
    color: red;
  }
}

Shouldn't the media query have color: red !important ?

Activity

  1. 10derloin commented on Jul 19, 2016

    @10derloin

    +1

  2. henriknorberg commented on Nov 8, 2016

    @henriknorberg

    +1

  3. Collins1892 commented on Feb 3, 2017

    @Collins1892

    +1

  4. muli commented on May 24, 2017

    @muli

    +1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions