使用 OR 运算符的警卫更少

Less guards with an OR operator

我知道 Less guards 可以使用 and 运算符,例如

when (@width > 50) and (@height > 50) { ... }

但是有没有办法做一个 or 声明?当用单词 or 尝试上面的操作时,我得到错误 CSS guard can only be used at the end of selector。我也试过:

when (@width > 50), when (@height > 50) { ... }

但这会导致错误 Guards are currently allowed on a single selector.

只用一个逗号,没有额外的 when:

.mixin (@a) when (@width > 50), (@height > 50) { ... }

来源:http://lesscss.org/features/#mixin-guards-feature-guard-logical-operators