compass scss blueprint

來源:互聯網
上載者:User

標籤:

【轉載】

今天在執行compass create my-grid –using blueprint 命令時發現報錯

 

google了一下,說是新版compass已經不包括compass-bluprint了。

所以我嘗試執行命令 “gem install compass-blueprint”,自己手動安裝compass-blueprint。雖然裝上了,但是執行 “compass compile” 編譯scss的時候還是報了個異常:

“Undefined mixin ‘experimental‘”

上面是我在虛擬機器系統中測試的。

我自己的機器因為是很久之前裝的compass,可以正常編譯scss,我運行 “compass -v” 查看我的compass版本,是0.12.2,。

所以我嘗試在虛擬機器中安裝以前版本的compass,最後終於成功了。

 

解決辦法:

1、如果你試過 “gem install compass-blueprint” 安裝compass-blueprint,那麼你一定要先卸載了:

gem uninstall compass-blueprint

2、卸載sass,這個是compass安裝的時候附帶安裝的,需要自己卸載掉

gem uninstall sass

3、卸載compass

4、安裝3.2.12版本的sass

gem install sass -v 3.2.12

5、安裝0.12.2版本的compass

gem install compass --version 0.12.2
 
sass 基本用法
1. 使用變數
sass 讓人們受益的一個重要特性就是他為css引用了變數
1.1 變數聲明
$highlight-color: #absdef;

compass scss blueprint

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.