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

Chapter 3. Nesting Rules

If you have spent any time developing with preprocessors, then you will likely have come across nested properties—instead of writing multiple style rules with repeated references to the same elements, we can use nesting to create concise style rules that compile to valid CSS.

In this chapter, we'll delve into using the power of nesting, show you how you can transition from using preprocessors such as SASS or Less, and explore some of the tricks we can use that are not available with preprocessors such as SASS:

  • Exploring the use of BEM (Block, Element, Modifier) or standard nesting
  • Creating nested rules and BEM equivalents using existing preprocessors
  • Transitioning to using PostCSS plugins
  • Understanding the pitfalls of nesting and how we can improve our code

Let's make a start…!

主站蜘蛛池模板: 互助| 河南省| 崇阳县| 文成县| 平陆县| 连山| 彩票| 阳信县| 社会| 铅山县| 鄂托克旗| 隆安县| 隆化县| 建宁县| 韩城市| 辽阳市| 长泰县| 吴旗县| 福鼎市| 丘北县| 定边县| 永城市| 澜沧| 垣曲县| 沈阳市| 塘沽区| 光山县| 阳山县| 渝北区| 德州市| 政和县| 游戏| 水城县| 洪江市| 望奎县| 丰镇市| 铅山县| 阿图什市| 岳池县| 诸城市| 金华市|