media queries are duplicated #69

Closed
fschulze opened this Issue Apr 11, 2012 · 1 comment

Projects

None yet

2 participants

I added a test in my branch https://github.com/fschulze/pyScss/tree/media-query-splitting which shows, that media queries are duplicated. This:

@media (max-width:1024px) {
  body {
    background: red;
  }
  div {
    background: blue;
  }
}

Currently becomes this:

@media (max-width:1024px) {
  body {
    background: #ff0000;
  }
}
@media (max-width:1024px) {
  div {
    background: #0000ff;
  }
}

But should be this:

@media (max-width:1024px) {
  body {
    background: #ff0000;
  }
  div {
    background: #0000ff;
  }
}

I tried to fix it myself, but have no clue what is going on in the code.

@eevee eevee added a commit to eevee/pyScss that referenced this issue Feb 20, 2013
@eevee eevee Don't duplicate @media blocks. Fixes #69, ported from rsternagel's pull a5d60e0
Collaborator
eevee commented Jul 10, 2013

Fixed in master.

@eevee eevee closed this Jul 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment