The sass site says that you need to install Ruby at the beginning. Installed using RubyInstaller . Next, you need to use the command line to install the actual sass and compass . How to do it? This is not the command line, which is initially in Windows, as I understand it. And then after that start working with Sass and Compass is also unclear ..

    2 answers 2

    That same command line.

    d:\> gem update --system d:\> gem install compass d:\> compass create myproject d:\> cd myproject d:\myproject> compass watch 

    then you create your own d:\myproject\sass in d:\myproject\sass style.scss , for example:

     @import "compass"; $base-border-radius: 5px; $base-color: #000066; $highlight-color: lighten($base-color, 50); div { @include border-radius($base-border-radius); color: $base-color; &.highlight { color: $highlight-color; } } 

    and in d:\myproject\stylesheets style.css will be created and will change with each change (saving) of style.scss . you get this result:

     /* line 5, ../sass/style.scss */ div { -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; color: #000066; } /* line 8, ../sass/style.scss */ div.highlight { color: #6666ff; } 

    in config.rb respectively, there are settings where to save css files ( css_dir ), compress css or add comments ( output_style ), etc.

    • then you can go for ready-made recipes compass-recipes.moox.fr - Yura Ivanov
    • When I start writing on the command line, it gives me "gem" is not an internal or external command used by the program or batch file. - Alexander Timofeev
    • paths must be set to c: \ ruby ​​<here is the version number of some> \ bin, for example, see . The commands in cmd do not work - Yura Ivanov

    If for dummies, why not use ready-made applications?

    For example: compass.app

    They downloaded, unpacked, launched and indicated the folder to listen. Everything)))

    There are only 2 nuances:

    1. Create config.rb handles, or through the application menu
    2. In Windows, the address to the application and to the folder you are listening to must not contain Cyrillic. Otherwise, when compiling ruby ​​will swear)