Day 8: Sass & BEM
BEM With Sass
Being able to extend classes and use nesting in Sass helps keep our BEM named CSS styles organized. We are able to nest our elements in the same code block and we can use the ampersand(&) sign to link our elements to their respective blocks. In Sass, we can also add pseudo classes right inside of the code block by using the ampersand too. Pseudo-classes allow us to change the style of element based on its state, for example, we could change the cursor to a pointer when the element is being hovered over.