It is convenient to use SCSS to write CSS. The first is the download and installation of Ruby, which is http://rubyinstaller.org/downloads/. After downloading, we open the installation file, click Next installation, note
Check here to prevent you from running the command later.
After the installation is complete, click to open.
Run the command gem install Sass
Then wait for the installation to complete, the first installation may take longer, or it may be blocked, try a few more times
We can.
Next we install compass, run the command gem install Compass
Then also wait for the installation.
Run Sass-v and compass-v after the installation is complete. Indicates that the installation was successful.
For use, for example, you create a new project called Test under the E disk, first into the E-drive test.
We then built a folder in test to store CSS styles, using the command compass create style
Point to enter, will generate a lot of code, style file is built,
These files are generated in the style folder:
Then the black boxes above enter the following:
Indicates that the listener is successful, and then you can write the style in the file under the Sass folder (for example, in Ie.scss).
The reference style is also a CSS file under the StyleSheets folder, such as
<link style="stylesheet" href="style/stylesheets/ie.css">
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Download and installation of sass and Compass in Ruby and references to CSS styles