新指南针前缀Mixin语法不起作用

时间:2013-12-18 04:55:59

标签: css3 sass compass-sass

尝试在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);
    };
}

我在这里做错了什么?任何帮助表示赞赏。

0 个答案:

没有答案