尝试在pointer-events
上为compass1.0.0.alpha.16
创建mixin时,the existing mixin失败,并显示无法找到experimental
mixin:
@mixin pointer-events($type: none) {
$type: unquote($type);
@include experimental(pointer-events, $type,
-moz, -webkit, not -o, not -ms, -khtml, official
);
}
因此,在深入研究罗盘样式表之后,我发现大多数混音使用with-each-prefix()
和prefix-prop
的组合。我试图模仿,但失败了,出现以下错误:
Mixin prefix-prop缺少参数$ value。
/* =============================================================================
Pointer events mixin
========================================================================== */
@mixin pointer-events($type: none) {
$type: unquote($type);
@include with-each-prefix(pointer-events, $graceful-usage-threshold) {
@include prefix-prop(pointer-events, $type, -moz);
};
}
我在这里做错了什么?任何帮助表示赞赏。