开发者

LESS equivalent for selector variable evaluation

开发者 https://www.devze.com 2023-03-15 06:49 出处:网络
Is it already possible to do something like this in LESS: SASS: $theme: a .myselector-#{$theme} padding: 3px

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

精彩评论

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

关注公众号