stylecow-plugin-custom-media

2.0.0 • Public • Published

stylecow plugin custom-media

Build Status

Stylecow plugin to work with the @custom-media at-rule, available in CSS Media Queries Level 4.

You write:

@custom-media --small-viewport (max-width: 30em);
 
@media (--small-viewport) {
	body {
		color: blue;
	}
}

And stylecow converts to:

@media (max-width: 30em) {
	body {
		color: blue;
	}
}

More demos in the tests folder

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    8
    • latest

Version History

Package Sidebar

Install

npm i stylecow-plugin-custom-media

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • oscarotero