- Sass and Compass Designer's Cookbook
- Bass Jobsen
- 108字
- 2021-07-16 10:56:47
Chapter 4. Nested Selectors and Modular CSS
In this chapter, you will learn the following topics:
- Using nested selectors
- Creating more intuitive code and making inheritance clear
- Referencing parent selectors with the & sign
- Using multiple & signs to refer to the parent selector more than once
- Using the & operator to change the selector order
- Utilizing the @extend directive
- Using placeholder selectors with the @extend directive
- Using the @extend directive together with the @media at-rule
- Using the @extend directive with care
- Emitting rules at the root of the document
- Avoiding nested selectors too deeply for more modular CSS
- Applying the OOCSS, SMACSS, and BEM methodologies
推薦閱讀
- C語言程序設(shè)計(第2 版)
- Maven Build Customization
- 深入理解Django:框架內(nèi)幕與實(shí)現(xiàn)原理
- Java Web及其框架技術(shù)
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- Oracle數(shù)據(jù)庫從入門到運(yùn)維實(shí)戰(zhàn)
- Unity 5.x By Example
- Python+Office:輕松實(shí)現(xiàn)Python辦公自動化
- Spark技術(shù)內(nèi)幕:深入解析Spark內(nèi)核架構(gòu)設(shè)計與實(shí)現(xiàn)原理
- Web程序設(shè)計與架構(gòu)
- Getting Started with Backbone Marionette
- CorelDRAW X6中文版應(yīng)用教程(第二版)
- 接口自動化測試持續(xù)集成:Postman+Newman+Git+Jenkins+釘釘
- 零基礎(chǔ)HTML+CSS+JavaScript學(xué)習(xí)筆記
- Hands-On Artificial Intelligence on Google Cloud Platform