How to install and convert SASS to CSS_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:28
Original
1035 people have browsed it

SASS installation method:


1. Install Ruby first, download address: http://download.csdn.net/detail/hzf2257/3334439. The installation precautions are as shown below. It is better to install it on the C drive, but it can also be installed on other drives.

2. Open the Ruby command panel and enter: gem install haml and gem install sass

How to convert SASS files to CSS files:


For example: Create a SASS folder on drive D , there is a style.scss file under the folder (both scss and sass are acceptable. Sass files have very strict requirements for code layout, and there are no braces or semicolons. scss does not have such high requirements for code.) Use the following The method can convert sass or scss into css files.

First output D: means finding the D drive;

Then output cd sass means finding the sass folder, where cd is necessary;

Finally output sass>sass --watch style.scss:style.css Convert style.scss to style.css in the sass folder. sass --watch means that it is always monitoring style.scss. As long as scss is updated in the editor, style.css will be automatically updated.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!