Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Mixins do not work within media queries #199

Open
simonsmith opened this issue Sep 26, 2012 · 1 comment
Open

Mixins do not work within media queries #199

simonsmith opened this issue Sep 26, 2012 · 1 comment

Comments

@simonsmith
Copy link

Hi,

This works as expected:

.test {
    color: #000;
}

.hello {
    .test;
}

However this:

@media only screen and (min-width: 42em) {
    .test {
        color: #000;
    }
}

.hello {
    .test;
}

does not.

Any thoughts?

Thanks!

@blowsie
Copy link

blowsie commented Feb 12, 2013

I ran into this issue a while back, I ended up flipping the code to accomodate for it.

.tablet {
    .hello{
        .test {
           color: #000;
        }
    }
}
@media only screen and (min-width: 42em) {
  .tablet;
}


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

No branches or pull requests

2 participants