문제

While transforming some code to lessphp from the classic less code; an incompatibility I discovered from the classic less css is that there is no support for multi-block mixins with nesting levels > 2. The classic less seems to be fully in support of mixins having many nested blocks in them.

Is this intentional - the support for just two nesting levels inside mixings?

Example:

 @some_mixin{
  height: 22px;
    ul{
    height: 20px;
    li{
    height: 10px;
    }
    }
 }

what happens above with lessphp is that the third nesting level; which contains css code for the li tag is totally ignored!

도움이 되었습니까?

해결책

I don't have this issue, are you using latest version of lessphp ? get it here : https://github.com/leafo/lessphp

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top