The all
keyword can be added at the end of the extend
argument to match all the instances of the selector. In this recipe, you can find that all the instances of a selector include merged and nested selectors. The all
keyword can also be used to extend pseudo classes that are nested with the &:pseudoclass
syntax, as discussed in the Referencing parent selectors with the & operator recipe.
You can compile the Less code in this recipe with the command-line lessc
compiler, as described in the Installing the lessc compiler with npm recipe in Chapter 1, Getting to Grips with the Basics of Less. Use your favorite text editor to create and edit an example Less file called all.less
.