SCSS Study Notes

Source: Internet
Author: User

Sass for suffix: Write without curly braces and semicolons;

Example: Body

font-size:12px

Files with scss suffix: curly braces and semicolons when writing as CSS;

Import:

The Sass Import (@import) rule differs from CSS in that the @import scss file is merged in to generate only one CSS file. But if you import CSS files in the Sass file like @import ' Reset.css ', the effect is the same as the normal CSS import style file, the imported CSS file will not be merged into the compiled file, but in the @import way. All Sass import files can ignore the suffix name. Scss. Generally speaking, the underlying file name method begins with _, such as _mixin.scss. This kind of file can not be underlined when importing, can write @import ' mixin '

Comments:

/**/: Multiline Comment

: single-line comment, not escaped when escaping into CSS

Variable: $fontS: 12px!default; (!default means default value, not writable)

SCSS Study Notes

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.