- 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…!
推薦閱讀
- Dependency Injection in .NET Core 2.0
- Raspberry Pi for Secret Agents(Third Edition)
- Servlet/JSP深入詳解
- 新一代SDN:VMware NSX 網絡原理與實踐
- Learning Docker Networking
- Java并發編程:核心方法與框架
- 物聯網系統架構設計與邊緣計算(原書第2版)
- Spring Data JPA從入門到精通
- Deep Learning for Natural Language Processing
- Clojure for Finance
- React.js實戰
- Enterprise Application Architecture with .NET Core
- 計算機軟件項目實訓指導
- Java EE應用開發及實訓
- C++教程