Scss Style Guide Learning notes (i)

Source: Internet
Author: User

. Fuwo{Display:Block;//Use two spaces to represent indents instead of using the TAB key font-family:' Arial ';//String wrapped in quotation marks background:url ('/images/bg.jpg ');//url Better also wrap them in quotation marks opacity:0.5;//When the number is less than 1 o'clock, you should write 0 before the decimal point. Never show 0 of the trailing of decimals}$length: 0; When the length is defined, 0 is not required to add unit $value:5; $length: $value * 1px;//When adding a unit to a number, it is actually in the value of 1 units $value: $length/1px; /To delete a unit of value, divide by 1 units of the same type. FUWO{width:(100%/3);//The top-level operation should always be wrapped in parentheses in color:rgba (0, 0, 0, 0.1);//using HSL values or RGB values, a space is appended to the usual comma, instead of adding spaces between the parentheses and the value background:HSL (100%, 100%);}$main-theme-color: #c69;//When a color is called more than once, it is best to save it with a meaningful variable name

Scss Style Guide Learning notes (i)

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.