Stylecow plugin to add support for Media Queries Level 4 syntax
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

stylecow plugin media-queries

Build Status

Stylecow plugin to add support for some syntax of Media Queries Level 4

You write:

@media (width < 500px) {
	body {
		color: blue;
	}
}
@media (500px <= width <= 800px) {
	body {
		color: red;
	}
}

And stylecow converts to:

@media (max-width: 499.999px) {
	body {
		color: blue;
	}
}
@media (min-width: 500px) and (max-width: 800px) {
	body {
		color: red;
	}
}

More demos in the tests folder