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