Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Giwayume opened this issue Jun 29, 2016 · 4 comments
Open

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

Giwayume opened this issue Jun 29, 2016 · 4 comments
Labels

Comments

@Giwayume
Copy link

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 ?

@10derloin
Copy link

+1

@henriknorberg
Copy link

+1

2 similar comments
@Collins1892
Copy link

+1

@muli
Copy link

muli commented May 24, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants