postcss / postcss-simple-vars

PostCSS plugin for Sass-like variables
MIT License
415 stars 36 forks source link

add new function #36

Closed ILFront-End closed 8 years ago

ILFront-End commented 8 years ago

can you add support for this pattern: $borderDirection: top; .border-#{$borderDirection} { border-#{$borderDirection}: 1px solid #ccc; }

ai commented 8 years ago

Nope, becase { and } symbols is used in CSS syntax. So regular CSS parser (like PostCSS standard parser) wil not be able to parse it.

Why you need this syntax?