mardi 20 mars 2012
Starting guide with scss - the new way to code css efficiently [SASS rocks !]
Par Ivan solart, mardi 20 mars 2012 à 08:08 :: CSS - Utiliser au mieux les feuilles de style
Installing Ruby extension (for Windows)
- RubyInstaller for Windows: http://rubyinstaller.org/downloads/
- when installed: click on "Start Command Prompt with Ruby"
- type "gem install sass" to get the fresh scss working
Play with scss:
- create a new .scss file (style.scss)
- To watch the changes and auto generate the css file start the prompt command with Ruby: sass>sass --watch style.scss:style.css
Syntax coloration with eclipse:
install Aptana Studio 3 plugin:
- Go to Eclipse > Help > Install New Software)
- insert the url: http://download.aptana.com/studio3/plugin/install
- restart eclipse
To start the convertiser:
sass --watch style.scss:style.css
To convert an existant css file to scss:
sass-convert -F css -T scss style.css style.scss
MORE INFO ON http://sass-lang.com
Enjoy ;)


