- Mastering PostCSS for Web Design
- Alex Libby
- 138字
- 2021-07-14 11:12:25
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…!
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- 極簡算法史:從數學到機器的故事
- Unreal Engine Physics Essentials
- 零基礎PHP學習筆記
- Docker技術入門與實戰(第3版)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Java從入門到精通(第4版)
- Python爬蟲開發與項目實戰
- 基于差分進化的優化方法及應用
- Banana Pi Cookbook
- bbPress Complete
- 劍指MySQL:架構、調優與運維
- R Data Analysis Cookbook(Second Edition)
- Scala程序員面試算法寶典
- RabbitMQ Essentials