Download and installation of sass and Compass in Ruby and references to CSS styles

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.