Sass官方介紹(http://sass-lang.com/)css
Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.linux
SASS是最成熟的,穩定的,和在世界上強大的專業級的CSS擴展語言。編程
Sass is completely compatible with all versions of CSS. We take this compatibility seriously, so that you can seamlessly use any available CSS libraries.sass
SASS是徹底兼容全部版本的CSS。咱們十分看重這種兼容,這樣就能夠無縫地使用任何可用的CSS庫。 ruby
Sass boasts more features and abilities than any other CSS extension language out there. The Sass Core Team has worked endlessly to not only keep up, but stay ahead.less
Sass擁有比其餘任何CSS擴展語言有更多的功能和能力。咱們的核心團隊使sass一直處於發展與領先編程語言
Sass has been actively supported for over 9 years by its loving Core Team.函數
Sass的核心團隊9年來不斷活躍地支持着這個項目
this
Over and over again, the industry is choosing Sass as the premier CSS extension language.編碼
一遍又一遍,行業選擇Sass做爲首要的CSS擴展語言。
Sass is actively supported and developed by a consortium of several tech companies and hundreds of developers.
SASS是積極支持並由幾個高科技公司和數百名開發者聯盟開發。
Sass歷史
Sass與Scss
$font-stack: Helvetica, sans-serif //定義變量 $primary-color: #333 //定義變量 body /*sass不帶有括號*/ font: 100% $font-stack color: $primary-color
$font-stack: Helvetica, sans-serif; $primary-color: #333; body { /*scss帶有括號*/ font: 100% $font-stack; color: $primary-color; }
Sass安裝
我使用的是linux系統,直接在terminal中進行
# sudo apt install ruby
# sudo gem install sass
#sudo gem update sass
#sudo gem uninstall sass