Sass FunctionsLesson 13Free preview
Sass Selector
This lesson is part of SASS · All levels
Summary
The Function selector allows manipulating the selector as a data string, for example selector-unify to combine two selectors, selector-append to add suffix, and selector-nest to form a cluster selector. And there are selectors that replace the selector part. This is useful in mixtures that need to build a selector dynamically.
Key points
- Selector-unify combines two selectors into a valid slice
- Selector-append adds the selector part to the end of the target
- Selector-nest forming a cluster selector of several parts
- Selector-replace removes certain parts of the selector
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.