Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 使用波旁纯威士忌时未定义混合_Css_Sprockets_Bourbon_Neat - Fatal编程技术网

Css 使用波旁纯威士忌时未定义混合

Css 使用波旁纯威士忌时未定义混合,css,sprockets,bourbon,neat,Css,Sprockets,Bourbon,Neat,我正在使用和,并且有以下代码 @include direction-context(right-to-left) { div.actions { @include shift(3); @include shift(10); } } 我得到了以下错误: Undefined mixin 'direction-context'. 我已经仔细检查了相关文件,但是我不明白为什么这样做不起作用。请注意,我在框架中成功地使用了其他mixin 更新 我有以下版本: neat (1.5.1) bo

我正在使用和,并且有以下代码

@include direction-context(right-to-left) {
  div.actions { @include shift(3); @include shift(10); }
}
我得到了以下错误:

Undefined mixin 'direction-context'.
我已经仔细检查了相关文件,但是我不明白为什么这样做不起作用。请注意,我在框架中成功地使用了其他mixin

更新

我有以下版本:

  neat (1.5.1)
  bourbon (>= 3.1)
  sass (~> 3.2.19)

directioncontext
mixin是在1.7.0中引入的。如果您想使用Sass堆栈,您需要更新它,因为1.7.1仅适用于Sass 3.3及更高版本


或者,您可以使用
@include行($direction:RTL)在Neat 1.5.1中更改方向,然后调用
@include reset-direction()完成后(通常在文件的底部)。

请找到
neat.scss文件并查看顶部的版本号,好吗?如果您在Rails上,那么应该在Gemfile.lock中。最近添加了
方向上下文
,您可能使用了过时的版本。@Kaishin-谢谢您的回复,请查看我的更新问题。