https://github.com/stylecow/stylecow-plugin-nested-rules
Stylecow plugin to add support for nested rules.
https://github.com/stylecow/stylecow-plugin-nested-rules
css deno nested-rules preprocessor stylecow
Last synced: about 2 months ago
JSON representation
Stylecow plugin to add support for nested rules.
- Host: GitHub
- URL: https://github.com/stylecow/stylecow-plugin-nested-rules
- Owner: stylecow
- License: mit
- Created: 2014-08-03T21:08:49.000Z (almost 12 years ago)
- Default Branch: deno
- Last Pushed: 2020-09-12T21:49:28.000Z (almost 6 years ago)
- Last Synced: 2025-03-26T17:51:55.788Z (over 1 year ago)
- Topics: css, deno, nested-rules, preprocessor, stylecow
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stylecow plugin nested-rules
Stylecow plugin to add support for nested rules.
More info:
* https://drublic.de/blog/the-css-hierarchies-module-level-3/
* http://lists.w3.org/Archives/Public/www-style/2011Jun/0022.html
You write:
```css
body {
& p {
color: blue;
}
& > section {
& h1,
& h2 {
color: red;
&.green {
color: green;
}
}
}
& div,
& span {
& a {
color: orange;
}
}
}
```
And stylecow converts to:
```css
body p {
color: blue;
}
body > section h1,
body > section h2 {
color: red;
}
body > section h1 .green,
body > section h2.green {
color: green;
}
body div a,
body span a {
color: orange;
}
```