stylecow-plugin-nested-rules

5.0.1 • Public • Published

stylecow plugin nested-rules

Build Status

Stylecow plugin to add support for nested rules.

More info:

You write:

body {
    p {
        color: blue;
    }
    > section {
        h1, h2 {
            color: red;
 
            &.green {
                color: green;
            }
        }
    }
    divspan {
        a {
            color: orange;
        }
    }
}

And stylecow converts to:

body p {
    color: blue;
}
body>section h1body>section h2 {
    color: red;
}
body>section h1 .greenbody>section h2.green {
    color: green;
}
body div abody span a {
    color: orange;
}

More demos in the tests folder

Readme

Keywords

none

Package Sidebar

Install

npm i stylecow-plugin-nested-rules

Weekly Downloads

20

Version

5.0.1

License

MIT

Last publish

Collaborators

  • oscarotero