stylecow-plugin-custom-selector

2.0.0 • Public • Published

stylecow plugin custom-selector

Build Status

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

You write:

@custom-selector --heading h1h2h3h4h5h6;
@custom-selector --main-world strong.main;
 
body --heading --main-world {
    color: blue;
}

And stylecow converts to:

body :matches(h1h2h3h4h5h6) strong.main {
    color: blue;
}

More demos in the tests folder

Readme

Keywords

none

Package Sidebar

Install

npm i stylecow-plugin-custom-selector

Weekly Downloads

34

Version

2.0.0

License

MIT

Last publish

Collaborators

  • oscarotero