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

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…!

主站蜘蛛池模板: 永春县| 青神县| 太原市| 尉氏县| 兰西县| 三门县| 英吉沙县| 高陵县| 绵竹市| 舞阳县| 廊坊市| 黔西| 晴隆县| 清徐县| 松溪县| 简阳市| 茶陵县| 行唐县| 合山市| 白城市| 金川县| 时尚| 蓝山县| 昆明市| 太原市| 海门市| 花垣县| 壤塘县| 古田县| 平阳县| 怀化市| 内乡县| 临颍县| 宜阳县| 营山县| 彰化市| 南汇区| 洪泽县| 思南县| 博客| 临安市|