Compass-core box mixin undefined

僤鯓⒐⒋嵵緔 提交于 2019-12-02 13:25:01

问题


I am trying to use flexbox prefix. When using compass-core box mixin, with

@include display-box;` 

or any other box mixins, it gives:

Undefined mixin 'display-box'

However, if I do

@include opacity (1);
@include border-radius;

No compilation error.

Compass version:

compass (1.0.0.alpha.19, 0.12.6)
compass-core (1.0.0.alpha.19)
compass-import-once (1.0.4)

What did I miss out?


回答1:


Same here. After having a look at the compass-1.0.0.alpha.21 code I noticed the line @warn "The compass/css3/box module is DEPRECATED and will be removed in the next release. Please use compass/css3/flexbox instead."; I then wondered why the box module is then still listed in the official docs. Bottomline: The default documentation resource on the Compass website only covers the outdated release version 0.12.2, whereas we've been using the latest (still unreleased) dev version 1.x. There is another doc version at: http://beta.compass-style.org/reference/compass/. (Notice the "beta" subdomain!)



来源:https://stackoverflow.com/questions/24952635/compass-core-box-mixin-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!