ecomfe / est

EFE Styling Toolkit based on Less
http://ecomfe.github.io/est
MIT License
397 stars 70 forks source link

颜色值编译后为什么不对? #47

Closed xiamu14 closed 7 years ago

xiamu14 commented 7 years ago

编译前:颜色值是 #ccc @support-ie-version: 8; @use-autoprefixer: false;

.comment:after { .triangle(top left, #cccccc, 10px, corner); } 编译后:颜色值是 #666 .comment:after { position: absolute; width: 0; height: 0; border: #666666 solid 10px; border-bottom-color: transparent; border-right-color: transparent; }

Justineo commented 7 years ago

这个 mixin 的调用方式是 .triangle(@direction, @size, @color, @origin),你 @size@color 写反了。 参考:http://ecomfe.github.io/est/#triangle-1

xiamu14 commented 7 years ago

谢谢,我在estFiddle里调试的,没仔细看文档的api介绍。