官术网_书友最值得收藏!

Sass instead of Less

Both Less and Sass (Syntactically Awesome Stylesheets) are CSS extension languages—that is, they are languages that extend the CSS vocabulary with the objective of making the development of many, large, and complex stylesheets easier. Although Less and Sass are fundamentally different languages, the general manner in which they extend CSS is the same—both rely on a preprocessor. As you produce your build, the preprocessor is run, parsing the Less/Sass script and turning your Less or Sass instructions into plain CSS.

Less is the official Bootstrap 3 build, while Bootstrap 4 has been developed from scratch, and is written entirely in Sass. Both Less and Sass are compiled into CSS to produce bootstrap.css. Along with that, it also produces its minified version—bootstrap.min.cssand map files. It is this CSS file that we will be primarily referencing throughout this book (with the exception of Chapter 3, Building the Layout). Consequently, you will not be required to know Sass in order to follow this book. However, we do recommend that you take a 20-minute introductory course on Sass if you are completely new to the language. Rest assured if you already know CSS; you will not need more time than this. The language's syntax is very close to normal CSS, and its elementary concepts are similar to those contained within any other programming language.

主站蜘蛛池模板: 聂荣县| 荔波县| 南投县| 宁城县| 衢州市| 吴川市| 石河子市| 佳木斯市| 宜阳县| 历史| 香格里拉县| 开封县| 华安县| 佛冈县| 遂溪县| 五峰| 思茅市| 松滋市| 静乐县| 本溪| 阿鲁科尔沁旗| 辽阳市| 碌曲县| 乌什县| 吴旗县| 文化| 兴文县| 那坡县| 玉山县| 通河县| 夏河县| 宁明县| 临颍县| 凉城县| 福贡县| 庆城县| 琼海市| 手机| 扬州市| 苏尼特右旗| 崇礼县|