开发者

LESS equivalent for selector variable evaluation

Is it already possible to do something like this in LESS:

SASS:

$theme: a

.myselector-#{$theme}
  padding: 3px

This would evaluate in

.myselector-a开发者_StackOverflow社区
{
  padding: 3px;
}


I'm afraid that this kind of feature is not supported yet...

I've just searched for it looking at LESS test files available on github (https://github.com/cloudhead/less.js/tree/master/test/less) and didn't find such functionality.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜