Documentation non-officielle, exploration des concepts
En français
- SASS guidelines (fr) par Hugo Giraudel la référence française sur SASS : Un guide de style engagé pour du code Sass sain, maintenable et extensible.
En anglais
- http://thesassway.com/
- hugogiraudel.com
- Les tags sass et scss sur clubmate.fi – About frontend web development
The SASS ampersand (&)
- The Sass Ampersand – The & is an extremely useful feature in Sass (and Less). It’s used when nesting. It can be a nice time-saver when you know how to use it, or a bit of a time-waster when you’re struggling and could have written the same code in regular CSS. Let’s see if we can really understand it.
Outils en ligne
- www.sassmeister.com – The sassiest way to play with Sass, Compass, & LibSass
SassMeister is a playground for Sass, Compass, and LibSass. Add some Sass and SassMeister will show you the rendered CSS. SassMeister supports both Sass and SCSS syntaxes, all output styles, and an ever-expanding list of Sass libraries.
Outils hors ligne
Installation, mise à jour, maintenance
Mettre à jour SASS (SCSS)
$ sass -v
pour connaître la version installée.
$ sudo gem update sass
$ sudo gem update compass
pour mettre à jour les packages SASS et compass.
Mettre à jour Ruby vers la version 2.0.0
Sera nécessaire à partir de la version SASS 3.5 qui ne supportera plus Ruby 1.9.x.
Source : How to install Ruby 2.1.4 on Ubuntu 14.04.
Installer les librairies pré-requises :
1 2 |
sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev |
Installer rbenv qui sert à installer Ruby :
1 2 3 4 5 6 7 8 9 10 11 12 13 |
cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL rbenv install 2.2.0 rbenv global 2.2.0 ruby -v |
Optionnel : ne pas installer la documentation de Ruby
1 |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc |