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

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.

主站蜘蛛池模板: 建阳市| 肥西县| 那曲县| 甘德县| 焦作市| 乌什县| 建昌县| 丰县| 抚顺市| 全州县| 三台县| 恭城| 乡宁县| 元朗区| 封开县| 金湖县| 昌吉市| 芦山县| 铁岭县| 吴川市| 赣榆县| 蓝山县| 万全县| 清水县| 旅游| 杭锦后旗| 鱼台县| 丽江市| 武清区| 资溪县| 甘泉县| 枞阳县| 阳信县| 商水县| 藁城市| 潞西市| 大渡口区| 贵定县| 南郑县| 台前县| 沂南县|