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

Can media queries be grouped in css? #179

Open
RustBeard opened this issue Feb 9, 2017 · 1 comment
Open

Can media queries be grouped in css? #179

RustBeard opened this issue Feb 9, 2017 · 1 comment

Comments

@RustBeard
Copy link

Already with this sass eg.:

.foo {
  @include breakpoint($large) {
    color: #333;
  }
}
.bar {
  @include breakpoint($large) {
    display: none;
  }
}

compiles to css:

@media (min-width: 1200px) {
  .foo {
    color: #333;
  }
}
@media (min-width: 1200px) {
  .bar {
    display: none;
  }
}

So - can it be grouped and compiled to:

@media (min-width: 1200px) {
  .foo {
    color: #333;
  }
  .bar {
    display: none;
  }
}

It saves some css file size.

@intermundos
Copy link

I use css-mqpacker, works really well with breakpoint.

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