Skip to content

stylecow/stylecow-plugin-custom-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Stylecow plugin to add support for CSS @Custom-Media

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages