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

@media gets overridden by default styles #7

Open
mlshv opened this issue Dec 2, 2017 · 1 comment
Open

@media gets overridden by default styles #7

mlshv opened this issue Dec 2, 2017 · 1 comment

Comments

@mlshv
Copy link

mlshv commented Dec 2, 2017

This code

Button {
  display: block;
  
  @media screen and (min-width: 48rem) {
    display: none;
  }
}

gets parsed into

@media screen and (min-width: 48rem) {
    .__Button__hash__ {
        display: none;
    }
}

.__Button__hash__ {
    display: block;
}

which results in display: block on any screen, because @media gets overridden by .__Button__hash__

@mlshv mlshv changed the title @media gets overrided by default styles @media gets overridden by default styles Dec 3, 2017
@tuchk4
Copy link
Owner

tuchk4 commented Dec 4, 2017

sorry for long reply.

will fix this and a lot of other bugs in next release (~ 8 - 12 Oct)

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

No branches or pull requests

2 participants