The main difference of sass and scss

What is syntactic sugar

"Syntactic sugar (Syntactic sugar), also translated as icing grammar, terminology invention by a British computer scientist Peter John Landa (Peter J. Landin), refers to some kind of computer language syntax added, this grammar It does not affect the function of language, but more programmers to use. in general, the use of syntactic sugar can increase the readability of the program, the program code to reduce the chance of error. "

scss is an upgraded version of sass

sass is a nested relationship by indentation, scss is braces.

 

  • SCSS  (Sassy CSS), a pre-css language, SCSS Sass 3 is the introduction of new grammar, the syntax is fully compatible with CSS3, and inherited the powerful features of Sass. That is, any standard CSS3 style sheets are valid SCSS file has the same semantics. SCSS requires the use of semicolons and curly braces instead of line breaks and indentation. SCSS is not sensitive to blank sign, in fact, css3 and grammar as its suffix is respectively .scss.
Published 36 original articles · won praise 17 · views 1149

Guess you like

Origin blog.csdn.net/qq_26386437/article/details/103995984
Recommended