Skip to content

Media Query Support

Compare
Choose a tag to compare
@ChristianMurphy ChristianMurphy released this 03 Dec 04:07
· 2065 commits to main since this release

@media selectors are now processed separately from global selectors. (#6 thanks to @kristoferjoseph)

Meaning

.example {
  color: blue;
}
.example {
  background: green;
}


@media print {
  .example {
    color: red;
  }
  .example {
    background: yellow;
  }
}

will correctly reduce to

.example {
  color: blue;
  background: green;
}


@media print {
  .example {
    color: red;
    background: yellow;
  }
}