postcss-alias-atrules
v0.0.0
Published
PostCSS plugin that creates aliases for at-rules
Downloads
329
Maintainers
Readme
PostCSS Alias Atrules
PostCSS plugin that creates aliases for at-rules.
@b nav { /* b is for block */
@e item { /* e is for element */
display: inline-block;
}
@m placement_header {
background-color: red;
}
}
@component nav { /* b is for block */
@descedent item { /* e is for element */
display: inline-block;
}
@modificator placement_header {
background-color: red;
}
}
Usage
postcss([ require('postcss-alias-atrules'){
rules: {
b: 'component',
e: 'descedent',
m: 'modificator'
}
} ])
See PostCSS docs for examples for your environment.