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 in mixins #621

Open
egor-sorokin opened this issue Jan 18, 2016 · 0 comments
Open

@media in mixins #621

egor-sorokin opened this issue Jan 18, 2016 · 0 comments

Comments

@egor-sorokin
Copy link

Hi, I would like to make own mixin wtih mediaqueries like this.

.breakpoint(@maxWidth) {
  @media screen and (max-width: @maxWidth) {
    @content;
  }
}

But it doesn't work. Support it lessphp or not? If not, how can I fix it?
P.S. I don't want to make a lot of copies of this rule (@media screen and (max-width: @MaxWidth)) in my all .less files.
Thanks!

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

1 participant